8
Follow
21
Followers
一键平所有永续合约仓位
Source
JavaScript
function main(){
exchange.SetContractType('swap')
exchange.SetCurrency('BNB_USDT')
Log(exchange.GetPosition())
acc = exchange.GetAccount()
//Log(exchange.GetAccount().Info)
var pos = exchange.GetAccount().Info.positions
var positioned = false
for(var i=0;i<pos.length;i++){
if (pos[i].positionAmt != 0){
positioned = true
var symbol = pos[i].symbol.replace('USDT','_USDT')Related strategies
Comment
All comments (1)
- 1

