The resource loading... loading...

Binance's API has a huge flaw!!!

Author: han1223, Created: 2021-08-16 00:59:24, Updated: 2021-08-16 01:00:06

I tried it one day, and I found two bugs.

  1. The exchange's IO can't access market data, such asexchange.IO(API, "GET, /api/v3/exchangeInfo) Error reported

Futures_OP 4: 400: {“code”:-1104,“msg”:“Not all sent parameters were read; read ‘0’ parameter(s) but was sent ‘2’.”}

  1. The second parameter is explicitly the amount, but it's actually the holding value of buying the currency.

More

The grassThe documentation is very clear on the use of IO. The second parameter of the exchange.Buy function is the number of currencies purchased.

moyouAccess exchangeInfo with httpQuery

The grassWhat's strange is that the market price list is set in this way, and the market price is not the same as the buy and sell list.

han1223I've tested it myself, for example, if the spot transaction is for ETH_USDT, if it's a market listing, it's not the number of ETHs purchased, but the number of USDTs. But the deal is the amount of ETH.

han1223I've tested it myself, for example, if the spot transaction is for ETH_USDT, if it's a market listing, it's not the number of ETHs purchased, but the number of USDTs.