however, the price shows correctly, but the order failed
"0.02003"
{'status': 'ok', 'response': {'type': 'order', 'data': {'statuses': [{'error': 'Order price cannot be more than 80% away from the reference price'}]}}}
and finally, i find the reason:
in exchange.py , self.coin_to_asset will convert @xx to asset id
on mainnet, asset id is 10000+xx
i want to use this sdk to buy
GUNJB
on testnetthis is the basic infomation:
then i want to find the real name to buy it
@794
looks like the right one and this is my code:however, the price shows correctly, but the order failed
and finally, i find the reason: in
exchange.py
,self.coin_to_asset
will convert@xx
to asset id on mainnet, asset id is10000+xx
but on testnet is not, 10715 is the newest and biggest one
this is what i capture on chrome dev mode:
i don't konw how to get
10794
using this sdkso can anybody help me ?