- Forums
- Help
- So why is depth null?
So why is depth null?
Author:
lzhqlj, Created: 2023-02-15 23:49:07, Updated: 2023-03-14 10:16:37
var position = exchange.IO("api", "GET","/fapi/v2/positionRisk","timestamp="+Date.now()+"&symbol="+sym+"USDT")
var trades = exchange.IO("api", "GET","/fapi/v1/trades","limit=200×tamp="+Date.now()+"&symbol="+sym+"USDT")//获取最近成交
var depth = exchange.IO("IO", "api", "GET","/fapi/v1/depth","timestamp="+Date.now()+"&symbol="+sym+"USDT")//获取深度
Why is the depth empty? Thank you.
More
- Emergency web socket
- See also:
- Is there a problem with the accuracy of the ATR calculation in the inventor's quantified TA indicator database?
- Requests for substitution
- Suggestions when using the TradingViewWebHook signal execution strategy Futures trading not supported
- Weak and weak questions, how do u keep opening positions in percentage terms?
- So I want to ask you, what's the best way to buy at a certain time, say, I want to buy at the first time, I want to buy at the second time, I want to sell at the third time, I want to buy at the fourth time, I want to sell at the third time, I want to buy at the fourth time, and so on.
- In retrospect, two averages are used, but only one average is shown in the market data graph.
- Can't add customized transaction pairs
- How to write stop loss
- How can I connect to the administrator to download the log files?
- Ordersell issue
- Exchange.GetOrders is reported to have an error
- Binance switched base addresses
- What is the reason when the raw code of the tradingview indicator is copied over and over and the output of the retest is inconsistent
- The _N function is always wrong.
- Can't a timed executable like the apscheduler in python be used in backtest code?
- How do you write the price of the last time you bought a flat?
- How to query a stop loss order for a trading pair
- How did it come about when the review came out that selling Kido was a mistake?
lzhqljThank you both.
Inventors quantify - small dreams 是的,exchange.IO是用于调用私有函数(即需要鉴权验证的),公共函数(例如行情接口)使用HttpQuery调用。
The bone knifedepth does not require authorization, and is accessed using httpQuery ().
Inventors quantify - small dreams 一样的,GetAccount用的和exchange.IO一样的底层封装。
lzhqljThank you for your reply, is it faster than exchange.IO or exchange.GetAccount?
Inventors quantify - small dreams/upload/asset/1797fe06dd19053202dd.png This is a list of all the different ways Upload/asset/1797fe06dd19053202dd.png is credited in the database.
This interface of Binance has no parameters to specify a specific asset. After you have accessed all the asset information, you can go through it to find the one you need. The balances field is an array, go through this array to identify it based on the asset.
lzhqljI'm using var position = exchange.IO (("api", "GET", "/api/v3/account") to return the information of the current account, now I want to return the request of BTC separately.