12
Follow
3
Followers
使用封装exchange.Buy,为啥老是报failed due to insufficient balance tag
Created 2022-01-19 21:05:36 Updated 2022-01-19 21:27:19
5
1090
是OK交易所,已经设了var ret = exchange.IO("api", "GET", "/api/v5/account/balance", "ccy=USDT")
指定了ETH-USDT,开单设定最小的1张合约
openLong(ticker.Last - 180, 1)
账户里还有680 usdt,足够开一手的ETH-USDT永续合约的,为啥一直报这个错呢
如果想下单时用usdt来设定仓位,而不是用张,应该如何设定呢?
谢谢!
Related Recommendations
Built-In Function_Cross Analysis and InstructionsHow to Specify Different Versions of Data for the Rented Strategy by Its Rental Code MetadataAdvanced Tutorial for FMZ Quant platform Strategy WritingElementary Tutorial for FMZ Quant platform Strategy WritingGet Started with FMZ Quant PlatformSECURITY BUGI keep getting error: Exchange_GetAccount: Invalid ContractTypeWe have an incredibly profitable market making algorithm for sideways markets on Bitmex - but need expert to help eliminate wait times during downward volatility in the marketError with deribitLimitations of the backtesting engine
Comment
All comments (5)
感觉var ret = exchange.IO("api", "GET", "/api/v5/account/balance", "ccy=USDT") 这句用的u本位计算权益;
但是下面的开单,好像却是币本位的方式开的单,如何转成为U本位的开单呢
5 years ago
- 1

