[CMD] Position Sync with Exchange

2 634 Views 1 Comment 3 years ago
  • A custom command you can easily add to any script to sync open positions with exchange on start for example.

    Tested working with Binance, not sure about others.

    Simple Usage – give the command the position Id’s for the positions you want to sync and save the id’s, done.

    local shortPosId = Load('shortPosId', NewGuid())
    local longPosId = Load('longPosId', NewGuid())
    if Load('syncdone', true) then
    CC_SyncPositions(true, shortPosId, longPosId)
    Save('syncdone', false)
    Save('shortPosId', shortPosId)
    Save('longPosId', longPosId)

    HaasScript Code
    Sign in or Register to download for free
  • Earn Up to $100,000 USDT Promotion Type: contest Expires: June 30, 2024 Exclusive
    Fire up your trade bots and earn up to $100,000 USDT, BitMEX VIP, free subscriptions, and more.
    • #2322

      this is great, Can it modify to work with hedge mode? so it can sync with SMM

Login or Register to Comment

Unlock your crypto trading potential

Create a free account and enjoy everything we have to offer.

Join for Free