An open API service indexing awesome lists of open source software.

https://github.com/lasvegascoder/binance-connect

Connect and pull data from binance
https://github.com/lasvegascoder/binance-connect

Last synced: 9 months ago
JSON representation

Connect and pull data from binance

Awesome Lists containing this project

README

          

# binance-connect
Connect and pull data from binance
TO use this, just run the function and pass the symbol of the coins as the parameter
To check BITCOIN and USDT, do this:
getInfo('BTCUSDT')

RESULT:

opened connection, sending request, please wait...
Receiving data from binance, please wait ...
{'result': None, 'id': 1}
Receiving data from binance, please wait ...
{'e': '24hrTicker', 'E': 1697651551678, 's': 'BTCUSDT', 'p': '-87.20000000', 'P': '-0.307', 'w': '28482.52883944', 'x': '28432.08000000', 'c': '28350.00000000', 'Q': '0.00338000', 'b': '28342.67000000', 'B': '0.00948000', 'a': '28349.98000000', 'A': '0.04510000', 'o': '28437.20000000', 'h': '28941.84000000', 'l': '28140.00000000', 'v': '203.49885000', 'q': '5796161.86391790', 'O': 1697565151678, 'C': 1697651551678, 'F': 25448633, 'L': 25466705, 'n': 18073}
Receiving data from binance, please wait ...
{'e': '24hrTicker', 'E': 1697651552678, 's': 'BTCUSDT', 'p': '-87.20000000', 'P': '-0.307', 'w': '28482.52883944', 'x': '28432.08000000', 'c': '28350.00000000', 'Q': '0.00338000', 'b': '28342.67000000', 'B': '0.00948000', 'a': '28349.96000000', 'A': '0.04510000', 'o': '28437.20000000', 'h': '28941.84000000', 'l': '28140.00000000', 'v': '203.49885000', 'q': '5796161.86391790', 'O': 1697565152677, 'C': 1697651552677, 'F': 25448633, 'L': 25466705, 'n': 18073}
Receiving data from binance, please wait ...
{'e': '24hrTicker', 'E': 1697651553678, 's': 'BTCUSDT', 'p': '-87.20000000', 'P': '-0.307', 'w': '28482.52883944', 'x': '28432.08000000', 'c': '28350.00000000', 'Q': '0.00338000', 'b': '28342.67000000', 'B': '0.00948000', 'a': '28349.94000000', 'A': '0.04510000', 'o': '28437.20000000', 'h': '28941.84000000', 'l': '28140.00000000', 'v': '203.49885000', 'q': '5796161.86391790', 'O': 1697565153678, 'C': 1697651553678, 'F': 25448633, 'L': 25466705, 'n': 18073}