Links

Custom Trade Bot API

Custom bots information and maintainces
All the custom bot endpoints require a signature

Generic

Get all custom bots

Returns:
List of `BaseCustomBot` objects
Example URL:
http://127.0.0.1:8050/AllCustomBots

Get custom bot

Required input:
  • botGuid : the guid of the bot.
Returns:
`BaseCustomBot` object of the bot.
Example URL:
http://127.0.0.1:8050/GetCustomBot?botGuid=fa6158c1-7a35-4688-91a4-ed0f94a4532b

New custom bot

Required input:
  • botType : string of 'EnumCustomBotType'
  • botName : string
  • accountGuid : guid of the account
  • primaryCoin : primary coin of the market.
  • secondaryCoin : secondary coin of the market.
  • contractName : contract name of the market (optional)
Returns:
`BaseCustomBot` object of the bot.
Example URL:
http://127.0.0.1:8050/NewCustomBot?botType=ZoneRecoveryBot&botName=LocalAPIBot&accountGuid=43b1c5f8-31d4-45c0-9163-81b1443146b4&primaryCoin=BTC&secondaryCoin=USDT&contractName=

Activate custom bot

Required input:
  • botGuid : guid of the bot
  • extra : boolean. Only relevant for the Crypto Index Box. When true, excessive balance will be reallocate.
Returns:
`BaseCustomBot` object of the bot.
Example URL:
http://127.0.0.1:8050/ActivateCustomBot?botGuid=03f028e9-2c98-4028-9288-e21a1f08604c&extra=true

Deactivate custom bot

Required input:
  • botGuid : guid of the bot
  • extra : boolean. Relevant for the Flash Crash, Market Making, & Order bot. When true, all open orders will be canceled.
Returns:
`BaseCustomBot` object of the bot.
Example URL:
http://127.0.0.1:8050/DeactivateCustomBot?botGuid=03f028e9-2c98-4028-9288-e21a1f08604c&extra=true

Remove custom bot

Required input:
  • botGuid : guid of the bot
Returns:
`BaseCustomBot` object of the bot.
Example URL:
http://127.0.0.1:8050/RemoveCustomBot?botGuid=03f028e9-2c98-4028-9288-e21a1f08604c

Backtest custom bot

Required input:
  • botGuid : guid of the bot
  • minutesToTest : minutes to test
Returns:
`BaseCustomBot` object of the bot.
Example URL:
http://127.0.0.1:8050/BacktestCustomBot?botGuid=1c3949e1-6144-47fc-8829-cf02dba35236&minutesToTest=120

Backtest custom bot specific dates

Required input:
  • startUnix : start unix time in seconds
  • endUnix : end unix time in seconds
Returns:
`BaseCustomBot` object of the bot.
Example URL:
http://127.0.0.1:8050/BacktestCustomBotSpecific?botGuid=1c3949e1-6144-47fc-8829-cf02dba35236&startUnix=152961117&endUnix=1529622217

Backtest custom bot specific markets

This endpoint will clone the bot, adjust the market, run a backtest and destroy the bot. Use this to backtest on multiple markets without triggering the market tracking. Required input:
  • botGuid : guid of the bot
  • minutesToTest : minutes to test
  • accountGuid : the guid of the account
  • primaryCoin : primary coin of the market.
  • secondaryCoin : secondary coin of the market.
  • contractName : contract name of the market (optional)
Returns:
`BaseCustomBot` object of the bot.
Example URL:
http://127.0.0.1:8050/BacktestCustomBotOnMarket?botGuid=1c3949e1-6144-47fc-8829-cf02dba35236&minutesToTest=120&accountGuid=43b1c5f8-31d4-45c0-9163-81b1443146b4&primaryCoin=LTC&secondaryCoin=BTC&contractName=

Clear custom bot

Required input:
  • botGuid : guid of the bot
Returns:
`BaseCustomBot` object of the bot.
Example URL:
http://127.0.0.1:8050/ClearCustomBot?botGuid=6bcc0aa4-c0da-498f-99f0-0942c1145704

Clone custom bot

Required input:
  • botGuid : guid of the bot
  • botName : name of the new bot
  • accountGuid : the guid of the account
  • primaryCoin : primary coin of the market.
  • secondaryCoin : secondary coin of the market.
  • contractName : contract name of the market (optional)
  • leverage : the leverage of the bot
Returns:
`TradeBot` object of the bot.
Example URL:
http://127.0.0.1:8050/CloneCustomBot?botGuid=1ac120fe-0cfc-47cf-af8f-1e7ec64874eb&botName=LocalAPIBot2&accountGuid=43b1c5f8-31d4-45c0-9163-81b1443146b4&primaryCoin=LTC&secondaryCoin=BTC&contractName=&leverage=1

Clone custom bot simple

Required input:
  • botGuid : guid of the bot
  • botName : name of the new bot
  • accountGuid : the guid of the account
Returns:
`TradeBot` object of the bot.
Example URL:
http://127.0.0.1:8050/CloneCustomBotSimple?botGuid=32320095-6921-41c8-9dbe-e2f8f9b1acc7&botName=LocalAPIBot2&accountGuid=43b1c5f8-31d4-45c0-9163-81b1443146b4

Setup

Setup Accumulation Bot

Required input:
  • botName : new name of the bot
  • botGuid : guid of the bot
  • accountGuid : the guid of the account
  • primaryCoin : primary coin of the market.
  • secondaryCoin : secondary coin of the market.
  • stopTypeValue : number
  • randomOrderSizeX : number
  • randomOrderSizeY : number
  • randomOrderTimeX : number
  • randomOrderTimeY : number
  • triggerValue : number
  • triggerWhenHigher : bool
  • triggerOnPrice : number
  • stopType : string of 'EnumAccumulationBotStopType'
  • direction : string of 'EnumOrderType'
Returns:
`AccumulationBot` object of the bot.
Example URL:
http://127.0.0.1:8050/SetupAccumulationBot?botName=RenamedLocalApi&botGuid=724e6582-8779-41c8-92b9-53c72779a8fd&accountGuid=43b1c5f8-31d4-45c0-9163-81b1443146b4&primaryCoin=LTC&secondaryCoin=BTC&stopTypeValue=20&randomOrderSizeX=10.5&randomOrderSizeY=20.5&randomOrderTimeX=30&randomOrderTimeY=40&triggerValue=10000&triggerWhenHigher=True&triggerOnPrice=True&stopType=Timer&direction=Sell

Setup Crypto Index Bot

Required input:
  • botName : new name of the bot
  • botGuid : guid of the bot
  • accountGuid : the guid of the account
  • templateGuid : string of the template guid to execute
  • baseCoin : string
  • totalIndexValue : number
  • individualGrowth : boolean
  • allocateProfits : boolean
  • index : list of 'CryptoIndexBotIndexSaveObject'
Returns:
`CryptoIndexBot` object of the bot.
Example URL:
http://127.0.0.1:8050/SetupCryptoIndexBot?botGuid=384bb7b4-54df-4773-af40-205116f31a12&botName=RenamedLocalApi&accountGuid=43b1c5f8-31d4-45c0-9163-81b1443146b4&templateGuid=LOCKEDMARKETORDERGUID&baseCoin=USDT&totalIndexValue=10000&individualGrowth=True&allocateProfits=True&index=[{"Coin":"ETH","Amount":50.0,"BuyThreshold":10.0,"SellThreshold":5.0,"StopLoss":30.0}]

Setup Email Bot

Required input:
  • botName : new name of the bot
  • botGuid : guid of the bot
  • accountGuid : the guid of the account
  • primaryCoin : primary coin of the market.
  • secondaryCoin : secondary coin of the market.
  • contractName : contract name of the market
  • position : primary or secondary currency for spot. long, short or noposition for margin/leverage
  • templateGuid : string of the template guid to execute
  • fee : number
  • leverage : number
  • tradeAmount : number
  • tradeAmountType : string of "EnumBotTradeAmount"
  • stopLoss : number
  • minChangeToBuy : number
  • minChangeToSell : number
  • emails : list of 'EmailBotAction' objects
Returns:
`EmailBot` object of the bot.
Example URL:
http://127.0.0.1:8050/SetupEmailBot?botGuid=f4125396-7ec7-49e5-9b73-370806de0356&botName=RenamedLocalApi&accountGuid=43b1c5f8-31d4-45c0-9163-81b1443146b4&primaryCoin=LTC&secondaryCoin=BTC&contractName=&position=BTC&templateGuid=LOCKETMARKETORDERGUID&fee=0.3&leverage=2&tradeAmount=12.3&tradeAmountType=Static&stopLoss=5.2&minChangeToBuy=0.3&minChangeToSell=0.4&emails=[{"Guid":"5683efd7-0d2b-4173-8e26-9343f37338be","ProviderGuid":"LOCKETMARKETORDERGUID","Messages":[{"Message":"Test-Message","LastReceivedTime":0}],"TimeoutInSeconds":100,"SpotAction":2,"LeverageAction":0}]

Setup Flash Crash Bot

Required input:
  • botName : new name of the bot
  • botGuid : guid of the bot
  • accountGuid : the guid of the account
  • primaryCoin : primary coin of the market.
  • secondaryCoin : secondary coin of the market.
  • fee : number
  • basePrice : number
  • priceSpreadType : string of 'EnumFlashSpreadOptions'
  • priceSpread : number
  • percentageBoost : number
  • minPercentage : number
  • maxPercentage : number
  • amountType : number
  • amountSpread : string of 'EnumCurrencyType'
  • sellAmount : number
  • buyAmount : number
  • refillDelay : number
  • fttEnabled : boolean
  • fttOffset : number
  • fttRange : number
  • fttTimeout : number
  • safetyTriggerLevel : number
  • safetyEnabled : boolean
  • safetyMoveInOut : boolean
Returns:
`FlashCrashBot` object of the bot.
Example URL:
http://127.0.0.1:8050/SetupFlashCrashBot?botName=RenamedLocalApi&botGuid=6927d0ac-ee3d-4c6b-ac9c-150e3da136c0&accountGuid=43b1c5f8-31d4-45c0-9163-81b1443146b4&primaryCoin=ETH&secondaryCoin=BTC&fee=0&basePrice=100&priceSpreadType=FixedAmount&priceSpread=5&percentageBoost=10&minPercentage=1&maxPercentage=5&amountType=Base&amountSpread=10&sellAmount=0&buyAmount=100&refillDelay=10&fttEnabled=True&fttOffset=10&fttRange=1&fttTimeout=100&safetyTriggerLevel=15&safetyEnabled=True&safetyMoveInOut=True

Setup Intellibot Alice

Required input:
  • botName : new name of the bot
  • botGuid : guid of the bot
  • accountGuid : the guid of the account
  • primaryCoin : primary coin of the market.
  • secondaryCoin : secondary coin of the market.
  • contractName : contract name of the market (optional)
  • leverage : number
  • position : primary or secondary currency for spot. long, short or noposition for margin/leverage
  • fee : number
  • tradeAmount : number
  • tradeAmountType : string of "EnumBotTradeAmount"
  • templateGuid : string of the template guid to execute
Returns:
`BaseCustomBot`` object of the bot.
Example URL:
http://127.0.0.1:8050/SetupIntellibotAlice?botGuid=5430b1eb-c0a0-4456-952c-a39e16883569&botName=RenamedLocalApi&accountGuid=43b1c5f8-31d4-45c0-9163-81b1443146b4&primaryCoin=LTC&secondaryCoin=BTC&contractName=&leverage=2&tradeAmount=12.13&tradeAmountType=Static&templateGuid=TESTLIMITORDERGUID&position=BTC&fee=0.5

Setup InterExchange Arbitrage Bot

Required input:
  • botName : new name of the bot
  • botGuid : guid of the bot
  • accountGuid : the guid of the account
  • primaryCoin : primary coin of the market.
  • secondaryCoin : secondary coin of the market.
  • accountGuid2 : the guid of the second account
  • primaryCoin2 : primary coin of the seconds market.
  • secondaryCoin2 : secondary coin of the seconds market.
  • tradeAmount : number
  • triggerLevel : number
  • templateGuid : string of the template guid to execute
  • maxAmount : number
  • maxTrades : number
Returns:
'InterExchangeArbitrageBot' object of the bot.
Example URL:
http://127.0.0.1:8050/SetupInterExchangeArbitrageBot?botGuid=703a2c45-11f7-4e55-af41-f5eb7cd402d6&botName=RenamedLocalApi&accountGuid=43b1c5f8-31d4-45c0-9163-81b1443146b4&primaryCoin=LTC&secondaryCoin=BTC&accountGuid2=43b1c5f8-31d4-45c0-9163-81b1443146b4&primaryCoin2=ETH&secondaryCoin2=USDT&tradeAmount=12.13&triggerLevel=2.3&templateGuid=TESTLIMITORDERGUID&maxAmount=123.123&maxTrades=123

Setup MadHatter Bot

Required input:
  • botName : new name of the bot
  • botGuid : guid of the bot
  • accountGuid : the guid of the account
  • primaryCoin : primary coin of the market.
  • secondaryCoin : secondary coin of the market.
  • position : primary or secondary currency for spot. long, short or noposition for margin/leverage
  • fee : number
  • leverage: number
  • tradeAmount : number
  • useTwoSignals : boolean
  • interval : number
  • disableAfterStopLoss : boolean
  • includeIncompleteInterval : boolean
  • templateGuid: string
  • mappedBuySignal: enumFundsPosition
  • mappedSellSignal: enumFundsPosition
  • mappedSellSignal: enumBotTradeAmount
Returns:
`MadHatterBot`` object of the bot.
Example URL:
http://127.0.0.1:8050/SetupMadHatterBot?botName=RenamedLocalApi&botGuid=354ab64c-d6df-4629-a275-4fefb0cc53b3&accountGuid=43b1c5f8-31d4-45c0-9163-81b1443146b4&primaryCoin=LTC&secondaryCoin=BTC&templateGuid=TESTORDERLIMITGUID&position=BTC&fee=0.5&tradeAmount=12.13&useTwoSignals=True&disableAfterStopLoss=True&includeIncompleteInterval=True&interval=15

Setup Market Making Bot

Required input:
  • botName : new name of the bot
  • botGuid : guid of the bot
  • accountGuid : the guid of the account
  • primaryCoin : primary coin of the market.
  • secondaryCoin : secondary coin of the market.
  • contractName: the contract name of the market.
  • fee : number
  • leverage: number
  • templateGuid: the guid of the template used by the bot
  • stopLossGuid: the template used by stop loss orders.
  • leverageStartSide: enumFundsPosition
  • slots: MarketMakingBotSlot
Returns:
`MarketMarkingBot`` object of the bot.
Example URL:
http://127.0.0.1:8050/SetupMarketMakingBot?botGuid=03f028e9-2c98-4028-9288-e21a1f08604c&botName=RenamedLocalApi&accountGuid=43b1c5f8-31d4-45c0-9163-81b1443146b4&primaryCoin=LTC&secondaryCoin=BTC&tradeAmount=12.13&tradeAmountType=Static&fee=0.5&priceOffset=1.2&resetTimer=9&useSecondOrder=True&secondOrderPriceOffset=2.4&mappedBuySignal=Long&mappedSellSignal=Short

Setup Order Bot

Required input:
  • botName : new name of the bot
  • botGuid : guid of the bot
  • accountGuid : the guid of the account
  • primaryCoin : primary coin of the market.
  • secondaryCoin : secondary coin of the market.
Returns:
`OrderBot`` object of the bot.
Example URL:
http://127.0.0.1:8050/SetupOrderBot?botName=RenamedLocalApi&botGuid=074b9895-5bf8-4424-adf9-6566cc2ab9ad&accountGuid=43b1c5f8-31d4-45c0-9163-81b1443146b4&primaryCoin=LTC&secondaryCoin=BTC

Setup PingPong Bot

Required input:
  • botName : new name of the bot
  • botGuid : guid of the bot
  • accountGuid : the guid of the account
  • primaryCoin : primary coin of the market.
  • secondaryCoin : secondary coin of the market.
  • contractName : contract name of the market (optional)
  • position : primary or secondary currency for spot. long, short or noposition for margin/leverage
  • fee : number
  • tradeAmount : number
  • tradeAmountType : string of "EnumBotTradeAmount"
  • templateGuid : string of the template guid to execute
  • leverage : number
Returns:
`BaseCustomBot`` object of the bot.
Example URL:
http://127.0.0.1:8050/SetupPingPongBot?botGuid=f9a93739-93d8-4762-85b3-06c7255a54be&botName=RenamedLocalApi&accountGuid=43b1c5f8-31d4-45c0-9163-81b1443146b4&primaryCoin=LTC&secondaryCoin=BTC&contractName=&leverage=2&tradeAmount=12.13&tradeAmountType=Static&templateGuid=TESTLIMITORDERGUID&position=BTC&fee=0.5

Setup Scalping Bot

Required input:
  • botName : new name of the bot
  • botGuid : guid of the bot
  • accountGuid : the guid of the account
  • primaryCoin : primary coin of the market.
  • secondaryCoin : secondary coin of the market.
  • contractName : contract name of the market (optional)
  • leverage : number
  • tradeAmountType : string of "EnumBotTradeAmount"
  • tradeAmount : number
  • position : primary or secondary currency for spot. long, short or noposition for margin/leverage
  • fee : number
  • targetProc : number
  • safetyThreshold : number
Returns:
`ScalperBot`` object of the bot.
Example URL:
http://127.0.0.1:8050/SetupScalpingBot?botGuid=0f4c552a-ba7f-44b9-8fd4-f107a9744db9&botName=RenamedLocalApi&accountGuid=43b1c5f8-31d4-45c0-9163-81b1443146b4&primaryCoin=LTC&secondaryCoin=BTC&contractName=&leverage=2&tradeAmount=12.13&tradeAmountType=Static&targetProc=5&safetyThreshold=6&position=BTC&templateGuid=LOCKEDLIMIT&fee=0.5

Setup Script Bot

Required input:
  • botName : new name of the bot
  • botGuid : guid of the bot
  • accountGuid : the guid of the account
  • primaryCoin : primary coin of the market.
  • secondaryCoin : secondary coin of the market.
  • contractName : contract name of the market (optional)
  • templateGuid : string
  • leverage : number
  • position : primary or secondary currency for spot. long, short or noposition for margin/leverage
  • fee : number
  • tradeAmount : number
  • scriptId : string
Returns:
`ScriptBot`` object of the bot.
Example URL:
http://127.0.0.1:8050/SetupScriptBot?botName=RenamedLocalApi&botGuid=bbff7e69-b493-4027-8c9c-491dc4f90297&accountGuid=43b1c5f8-31d4-45c0-9163-81b1443146b4&primaryCoin=LTC&secondaryCoin=BTC&contractName=&templateGuid=BTC&leverage=2&tradeAmount=12.13&fee=0.5&position=LOCKEDLIMIT&scriptId=TestScript

Setup Zone Recovery Bot

Required input:
  • botName : new name of the bot
  • botGuid : guid of the bot
  • accountGuid : the guid of the account
  • primaryCoin : primary coin of the market.
  • secondaryCoin : secondary coin of the market.
  • contractName : contract name of the market (optional)
  • leverage : number
  • tradeAmount : number,
  • maxTradeAmount : number,
  • factorShort : number,
  • factorLong : number,
  • targetProfit : number,
  • zone : number,
Returns:
`ZoneRecoveryBot`` object of the bot.
Example URL:
http://127.0.0.1:8050/SetupZoneRecoveryBot?botGuid=cbabfecd-5dab-49c7-a4f7-3b7cef4648e9&botName=RenamedLocalApi&accountGuid=55c658c6-aa81-4f08-9e24-e0db446d11cb&primaryCoin=XBT&secondaryCoin=USD&contractName=XBTUSD&leverage=2&tradeAmount=10&maxTradeAmount=10&factorShort=20&factorLong=30&targetProfit=40&zone=10

Accumulation Bot Specific

Flip Accumulation Bot

Required input:
  • botGuid : guid of the bot
Returns:
Boolean
Example URL:
http://127.0.0.1:8050/FlipAccumulationBot?botGuid=724e6582-8779-41c8-92b9-53c72779a8fd

Crypto Index Bot Specific

Add Index

Required input:
  • index : JSON string of "CryptoIndexBotIndex"
  • raiseBalance : boolean
  • relocateBalance : boolean
Returns:
`CryptoIndexBot`` object of the bot.
Example URL:
http://127.0.0.1:8050/CryptoIndexBotAddIndex?botGuid=6cd94ed3-eeaf-4044-b94f-a27e0925329f&index=&raiseBalance=true&relocateBalance-true

Remove Index

Required input:
  • index : string of coin
  • lowerBalance : boolean
Returns:
`CryptoIndexBot`` object of the bot.
Example URL:
http://127.0.0.1:8050/CryptoIndexBotAddIndex?botGuid=6cd94ed3-eeaf-4044-b94f-a27e0925329f&index=BTC&lowerBalance=true

Flash Crash Bot Specific

Live Order Edit Flash Crash Bot

Required input:
  • botGuid : guid of the bot
  • isBuyOrder : true for buy order, false for sell order
  • addOrder : true to add a order, false to remove a order
Returns:
`FlashCrashBot`` object of the bot.
Example URL:
http://127.0.0.1:8050/LiveOrderEditFlashCrashBot?botGuid=6cd94ed3-eeaf-4044-b94f-a27e0925329f&isBuyOrder=True&addOrder=False
http://127.0.0.1:8050/LiveOrderEditFlashCrashBot?botGuid=a231b8aa-18d0-4874-ba5f-039c3697015c&isBuyOrder=True&addOrder=True
http://127.0.0.1:8050/LiveOrderEditFlashCrashBot?botGuid=ae7d9c8f-efc6-4239-9539-b556f272acd4&isBuyOrder=False&addOrder=True
http://127.0.0.1:8050/LiveOrderEditFlashCrashBot?botGuid=fcc85901-f9cc-4e6c-b0b0-1ce36f238100&isBuyOrder=False&addOrder=False

Quick Start

Required input:
  • botGuid : guid of the bot. Not required for QuickStartAllFlashCrashBots
Returns:
`FlashCrashBot`` object of the bot.
Example URL:
http://127.0.0.1:8050/QuickStartAllFlashCrashBots
http://127.0.0.1:8050/QuickStartFlashCrashBot?botGuid=21d690ea-c577-4e97-8e83-cd5aeab35f93

MadHatter Bot Specific

Set Indicator Parameter

Required input:
  • botGuid : guid of the bot
  • type : string of 'EnumMadHatterIndicators'
  • fieldNo : the index value of the property
  • value : the new value of the property.
Returns:
`MadHatterBot`` object of the bot.
Example URL:
http://127.0.0.1:8050/MadHatterSetIndicatorParameter?botGuid=354ab64c-d6df-4629-a275-4fefb0cc53b3&type=Bbands&fieldNo=2&value=22
http://127.0.0.1:8050/MadHatterSetIndicatorParameter?botGuid=73bdf47c-839b-4bda-ab23-59f3b2066a98&type=Rsi&fieldNo=2&value=22
http://127.0.0.1:8050/MadHatterSetIndicatorParameter?botGuid=ac42b0de-1127-4b16-aa6f-91edf30aa17a&type=Macd&fieldNo=2&value=22

Set Safety Parameter

Required input:
  • botGuid : guid of the bot
  • type : string of 'EnumMadHatterSafeties'
  • value : the new value of the property.
Returns:
`MadHatterBot`` object of the bot.
Example URL:
http://127.0.0.1:8050/MadHatterSetSafetyParameter?botGuid=61e3e238-023b-4442-a9fb-3f751862ae34&type=StopLoss&value=22
http://127.0.0.1:8050/MadHatterSetSafetyParameter?botGuid=64e68e8d-d61e-46d0-b6a5-df5ce98ec8bd&type=PriceChangeToBuy&value=22
http://127.0.0.1:8050/MadHatterSetSafetyParameter?botGuid=f7226d29-d970-41fe-bd59-9f77d83bdfd1&type=PriceChangeToSell&value=22

Order Bot Specific

Add Order

Required input:
  • botGuid : guid of the bot
  • dependsOn : order id of other pre order
  • dependsOnNotExecuted : order id of other pre order
  • amount : number
  • price : number
  • orderTemplate :string of the template guid to execute
  • orderType : string of 'EnumOrderType'
  • triggerPrice : number (default 0)
  • triggerType : the new value of the property.
Returns:
`OrderBot`` object of the bot.
Example URL:
http://127.0.0.1:8050/OrderBotAddOrder?botGuid=431b5902-fbb2-4102-a370-d0b226804bdf&dependsOn=1&dependsOnNotExecuted=2&amount=12.5&price=123.123&triggerPrice=100.4&orderTemplate=LIMITORDER&orderType=Buy&triggerType=HigherThan

Edit Order

Required input:
  • botGuid : guid of the bot
  • orderGuid : order id of the order.
  • dependsOn : order id of other pre order
  • dependsOnNotExecuted : order id of other pre order
  • amount : number
  • price : number
  • orderTemplate :string of the template guid to execute
  • orderType : string of 'EnumOrderType'
  • triggerPrice : number (default 0)
  • triggerType : the new value of the property.
Returns:
`OrderBot`` object of the bot.
Example URL:
http://127.0.0.1:8050/OrderBotEditOrder?botGuid=fa6158c1-7a35-4688-91a4-ed0f94a4532b&orderGuid=5be5d122-883d-404f-b637-540047c113de&dependsOn=3&dependsOnNotExecuted=4&amount=102.5&price=1203.123&triggerPrice=99.5&orderTemplate=LIMITORDER2&orderType=Sell&triggerType=LowerThan

Remove Order

Required input:
  • botGuid : guid of the bot
  • orderGuid : order id of the order.
Returns:
`OrderBot`` object of the bot.
Example URL:
http://127.0.0.1:8050/OrderBotRemoveOrder?botGuid=8a2b1745-da74-4937-96a4-d08f0abd9677&orderGuid=ca72abee-37db-4b8e-95ec-5d7a1d72b06a

Remove All Orders

Required input:
  • botGuid : guid of the bot
Returns:
`OrderBot`` object of the bot.
Example URL:
http://127.0.0.1:8050/OrderBotRemoveAllOrders?botGuid=4808505c-6ec4-4019-ab92-01a25aa65063

Reset Order

Required input:
  • botGuid : guid of the bot
  • orderGuid : order id of the order.
Returns:
`OrderBot`` object of the bot.
Example URL:
http://127.0.0.1:8050/OrderBotResetOrder?botGuid=431b5902-fbb2-4102-a370-d0b226804bdf&orderGuid=021d5ab3-08e3-452e-a1d6-3e56c5d5ed4a