The resource loading... loading...

What's wrong with the spelling of the information that a coin gets in a contract?

Author: allpot, Created: 2020-11-15 08:57:36, Updated:

x=exchange.IO("api", "GET", "/linear-swap-api/v1/swap_contract_info","&contract_code=BSV-USDT")
Log(x)    
火币获取某个合约的信息写法错在哪了?我上面获取到的是全部合约的信息,而不是指定合约的。
附:下面是官方的API说明
GET linear-swap-api/v1/swap_contract_info
contract_code	false	string	合约代码,不填查询所有合约	BTC-USDT

More

The grassUse the httpQuery

Xueqiu BotThis is how bitcoin works, it's easy to use requests directly from the mouth. Import requests import json The result = requests.get (('https://api.hbdm.com/linear-swap-api/v1/swap_contract_info?contract_code=BSV-USDT') data = result.json (()) Log ((data))