bitshares python - accounttrades 方法踩坑记录

in #cn6 years ago

bb768539b6b5c78bc358b0ee1721054e.png

今天使用 bitshares python 库时, 想要查询自己的交易历史, 看了下有 accounttrades(account=None, limit=25) 这么个方法可用, 然而调这个方法返回的交易记录却始终为空, 反复换了几个交易对都是空, 这真是不应该了, 明明我这些个交易对是有交易的.

看 bitshares python 的源码时才发现, 这个方法的注释里有这么一行字:

note:: This call goes through the trade history and searches for your account, if there are no orders within limit trades, this call will return an empty array.

也就是说, 方法第二个参数默认值 25 限定的是所有交易的数量, 而不是我的交易数量...

这就不太友好了啊...

其它文章

数字货币

数据分析

编程系列

Coin Marketplace

STEEM 0.30
TRX 0.11
JST 0.033
BTC 64243.42
ETH 3152.93
USDT 1.00
SBD 4.28