3
Follow
1503
Followers
Source
JavaScript
//第一个交易所添加OKX期货,第二个币安期货
var pos = {okx:0, bn:0}
exchanges[0].SetContractType('swap')
exchanges[1].SetContractType('swap')
function GetPosition(){
let position = _C(exchanges[0].GetPosition)
if(position.length == 0){
pos.okx = 0
}else if(position[0].Type == 0){
pos.okx = position[0].Amount
} else if(position[0].Type == 1){
pos.okx = -position[0].AmountStrategy parameters
Comment
All comments (0)
No data
- 1
