-
Creates a group of inputs for Firetron’s PlaceSpreadOrder.
Custom Command Dependencies:
Firetron’s GetAmountSpread
Firetron’s GetPriceSpread
Firetron’s InputAmountSpread
Firetron’s InputOrderOptions
Firetron’s InputPriceSpreadTest Code:
if not Load('done', false) then Log('==================================================') Log('Testing Alpha Spread Order') Log('==================================================') local alphaSpreadOrderOptions = CC_InputSpreadOrder('Alpha') local alphaOrderList = CC_PlaceSpreadOrder({listDynamic = alphaSpreadOrderOptions}) for i = 1, #alphaOrderList do Log('Alpha Order ID: '..alphaOrderList[i]) end Log('==================================================') Log('Testing Beta Spread Order') Log('==================================================') local betaSpreadOrderOptions = CC_InputSpreadOrder('Beta') local betaOrderList = CC_PlaceSpreadOrder({listDynamic = betaSpreadOrderOptions}) for i = 1, #betaOrderList do Log('Beta Order ID: '..betaOrderList[i]) end Save('done', true) end