MultiversX Tracker is Live!

Why Binance API uses different structure for successful or failed requests?

Binance

Cryptocoins Exchanges / Binance 109 Views

Am I lacking something or is it the default behaviour where AllOrders API returns an array of transactions on the root degree when successful; nevertheless on failure it returns a single object with error message. It will have been approach easier to make use of the API if a single structure supported both - for instance:


"code": "ERROR_CODE",
"msg": "ERROR_MESSAGE"
"status": "SUCEESS/ ERROR"

"assets":
[ , ]

-----
Due to two totally different buildings, its making it really arduous to handle the success or error knowledge buildings.

submitted by /u/omittedspider
[link] [comments]
Get BONUS $200 for FREE!

You can get bonuses upto $100 FREE BONUS when you:
πŸ’° Install these recommended apps:
πŸ’² SocialGood - 100% Crypto Back on Everyday Shopping
πŸ’² xPortal - The DeFi For The Next Billion
πŸ’² CryptoTab Browser - Lightweight, fast, and ready to mine!
πŸ’° Register on these recommended exchanges:
🟑 Binance🟑 Bitfinex🟑 Bitmart🟑 Bittrex🟑 Bitget
🟑 CoinEx🟑 Crypto.com🟑 Gate.io🟑 Huobi🟑 Kucoin.



Comments