What's wrong with the Binance API or my code? Can anyone help me in this case? Any positive comments are appreciated. Fixed a bug where some non-archived orders being queried would receive the error code that their order was archived. import os from binance.client import Client import pandas as pd import datetime, time def GetHistoricalData(self, howLong): self.howLong howLong Calculate the timestamps for the binance api function self.untilThisDate () self.sinceThisDate self.untilThisDate - datetime.timedelta(days self. I've tried to get it many times but all failed, it just returns any number of it, varying between times. The expect result is all symbols in a web socket response message, but almost is only a part of it. Solana is +1 in the last 24 hours with a circulating supply of 404.37M. SOL to USD price is updated in real-time. Youll need to use the WSS API, receive message for each trade real-time and aggregate them by each second. The live price of Solana is 25.18 per (SOL / USD) with a current market cap of 10.18B USD. Var rps = JsonConvert.DeserializeObject>(strResponse) The lowest granularity that Binance REST API supports (for kline history) is 1 minute candles. Var strResponse = responseMessage.ToString() OnReceived event private async void OnReceived(ResponseMessage responseMessage) Init var url = new client = new WebsocketClient(url) Ĭ(OnReceived) Ģ. Get the latest Bitcoin (BTC / USD) real-time quote, historical performance, charts, and other cryptocurrency information to help you make more informed trading and investment decisions. So, I have a MarketTicker class public class MarketTickerġ. ![]() "q": "18", // Total traded quote asset volume Binance has updated the /api/v3/exchangeInfo endpoint recently to take a list of symbols in this format 'DOGEUSDT','ETHBTC', so maybe they will add that to other endpoints. This project only contains a selection of streams - more pairs exist. "v": "10000", // Total traded base asset volume New base url wss:///lvt-p for BLVT streams tokenNav and. Realtime trades and tickers for the most popular coins on Binance paired against USDT."x": "0.0009", // First trade(F)-1 price (first trade before the 24hr rolling window) ![]() I'm using Websocket.Client to get All Market Tickers Streams (document here).īut I can't figure out why each time the API only returns a different number of symbols. INX0.99 Cardano (ADA / USD) 0.3112 ADA0.73 XRP (XRP / USD) 0.7020 XRP1.57 ChainLink (LINK / USD) 7.4918 LINK4.69 Stellar (XLM / USD) 0.1551 XLM2.19 Top news U.Today Binance Coin.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |