1
Follow
0
Followers
Il semble que GetPosition de l'échange APOLLOX renvoie un tableau vide. Pourriez-vous s'il vous plaît y jeter un œil ?
Created 2022-03-01 22:04:28
6
1031
J'ai un positionnement, mais avec GetPosition (() on obtient un tableau vide, et Binance semble pouvoir le faire.
function main() {
exchange.SetContractType('swap')
var pos = exchange.GetPosition()
Log(pos)
}
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 (6)
检查了一下,梦总说得对,后面小草用了pos = JSON.parse(exchange.GetRawJSON())来解析最后获得的账户全部交易对仓位信息。但是在APOLLOX上用这个GetRawJSON函数好像只能得到策略缺省的交易对的仓位信息,不能获得全部交易对仓位信息。我写了简单代码测试,最后只获得btcusdt的仓位。[{"symbol":"BTCUSDT","positionAmt":"0.000","entryPrice":"0.0" 。。。。。。。。。
function main() {
exchange.SetContractType('swap')
var account = exchange.GetAccount()
var pos = exchange.GetPosition()
pos = JSON.parse(exchange.GetRawJSON())
Log(account)
Log(pos)
4 years ago
- 1
