[CMD] Position Sync with Exchange

1 378 Views 1 Comment 2 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
  • Mandala Trading Competition Promotion Type: contest Expires: June 9, 2023 Exclusive
    Trading volume competition, win up to $10,000 USDT and bounties.
  • Earn Up to 200 BMEX Tokens Promotion Type: contest Expires: March 31, 2023
    15 BMEX @ $20,000, 25 BMEX @ $50,000, 50 [email protected] $200,000, 100 BMEX @ $400,000, 200 BMEX @ $600,000 in monthly derivatives volume
    • #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