Type/to search
0
Follow
0
Followers
ordid=exchange.Buy(-1, float(dictParam["amount"])) 这个语法,怎么是按照输入的金额购买,而不是币的数量
Help
Created 2021-02-13 08:09:22  
 3
 1216

ordid=exchange.Buy(-1, float(dictParam["amount"])) 这个语法,怎么是按照输入的金额购买,而不是币的数量,请教?

Related Recommendations
Comment
All comments (3)

    根据交易所识别的自己转换一下就可以了

    6 years ago

    如果我指定价格买 也是金额吗 测试是币数量 ordid=exchange.Buy(ticker.sell, float(dictParam["amount"])) 目前火币现货

    6 years ago

    一般市价买单是买入的金额,市价卖单是卖出的量.你碰到哪个交易所不符合规范

    6 years ago
  • 1
Forums
PINE Language
Get the app
iPhone Download
© 2015 - ∞ INVENTOR PTE LTD (SG)