0
Follow
0
Followers
OKEx에서 exchange.GetPosition()을 사용할 때, 포지션 정보를 얻으려면 현재 거래 페어를 설정해야 합니까?
Created 2021-09-27 16:32:45
1
1167
예를 들어, OKex는 exchange.GetPosition을 사용한다. 포지션 정보를 얻기 위해 현재 거래 쌍을 설정해야 하는가?
exchange.SetCurrency ((<unk> 현재 거래된 쌍<unk>);
모든 거래자의 지분을 어떻게 알 수 있을까요?
Related Recommendations
How 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 engineHow to install ta-lib on linux docker?
Comment
All comments (1)
文档有介绍
注意:GetPosition函数获取的是所有持仓品种的持仓信息,如果没有持仓则返回空数组,所以使用该接口返回的数据前要先判断返回的数据是否为空数组
交易所设置为OKEX期货时,如果合约设置为交割合约,获取的是当周、次周、季度、次季度持仓数据,数据类型为position结构的数组
交易所设置为OKEX期货时,如果合约设置为永续合约,获取的是包含永续合约持仓数据的position结构的数组
5 years ago
- 1
