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
- Host: GitHub
- URL: https://github.com/lasvegascoder/binance-connect
- Owner: LasVegasCoder
- License: mit
- Created: 2023-10-19T21:21:29.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-10-19T21:24:03.000Z (over 2 years ago)
- Last Synced: 2025-03-01T10:16:35.290Z (over 1 year ago)
- Language: Python
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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}