[CMD] Position Sync with Exchange

0 72 Views 1 Comment 2 months 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)
    end
    Save('shortPosId', shortPosId)
    Save('longPosId', longPosId)

    HaasScript Code
    Sign in or Register to view
    • #2322
      Up
      0
      Down

      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