Trade Actions (Unmanaged)
Places a (limit) buy order for the given amount and price. Returns the order identifier (text).
- PlaceBuyOrder(price, amount, [ market ], [ type ], [ note ], [ positionId ], [ timeout ], [ triggerPrice ])
Unique order identifier.
Return Type: String
Parameter Name | Parameter Type | Required | Suggested |
price | Number | True | BuyPrices, SellPrices, OpenPrices, HighPrices, LowPrices, ClosePrices, HLPrices, HLCPrices, OCPrices, OHLCPrices |
amount | Number | True | TradeAmount, Number, Input, MaxLongAmount |
market | String | False | InputAccountMarket, InputMarket, InputPriceSourceMarket, PriceMarket |
type | Enum | False | MarketOrderType, LimitOrderType, MakerOrCancelOrderType, NoTimeOutOrderType, MakerOrCancelOrderType, StopLimitOrderType, StopMarketOrderType, TakeProfitLimitOrderType, TakeProfitMarketOrderType |
note | String | False | Text, Input, SessionGet, Load |
positionId | String | False | Load, NewGuid |
timeout | Number | False | Input, Number, SessionGet |
triggerPrice | Number | False | Input, Number, SessionGet |
Executes the remaining amount of a canceled order.
- PlaceCancelledOrder(orderId, [ price ])
Returns an new order identifier. Empty if no order is executed.
Return Type: String
Parameter Name | Parameter Type | Required | Suggested |
orderId | String | True | - |
price | Number | False | BuyPrices, SellPrices, OpenPrices, HighPrices, LowPrices, ClosePrices, HLPrices, HLCPrices, OCPrices, OHLCPrices |
Places a (limit) exit long order for the given amount and price. Returns the order identifier (text).
- PlaceExitLongOrder(price, amount, [ market ], [ type ], [ note ], [ positionId ], [ timeout ], [ triggerPrice ])
Unique order identifier.
Return Type: String
Parameter Name | Parameter Type | Required | Suggested |
price | Number | True | BuyPrices, SellPrices, OpenPrices, HighPrices, LowPrices, ClosePrices, HLPrices, HLCPrices, OCPrices, OHLCPrices |
amount | Number | True | TradeAmount, Number, Input, LongAmount |
market | String | False | InputAccountMarket, InputMarket, InputPriceSourceMarket, PriceMarket |
type | Enum | False | MarketOrderType, LimitOrderType, MakerOrCancelOrderType, NoTimeOutOrderType, MakerOrCancelOrderType, StopLimitOrderType, StopMarketOrderType, TakeProfitLimitOrderType, TakeProfitMarketOrderType |
note | String | False | Text, Input, SessionGet, Load |
positionId | String | False | Load, NewGuid |
timeout | Number | False | Input, Number, SessionGet |
triggerPrice | Number | False | Input, Number, SessionGet |
Places exit orders for a specific bot position.
- PlaceExitPositionOrder([ positionId ], [ price ], [ type ], [ note ], [ timeout ])
Returns an order identifier.
Return Type: String
Parameter Name | Parameter Type | Required | Suggested |
positionId | String | False | Load |
price | Number | False | BuyPrices, SellPrices, OpenPrices, HighPrices, LowPrices, ClosePrices, HLPrices, HLCPrices, OCPrices, OHLCPrices |
type | Enum | False | MarketOrderType, LimitOrderType, MakerOrCancelOrderType, NoTimeOutOrderType, MakerOrCancelOrderType, StopLimitOrderType, StopMarketOrderType, TakeProfitLimitOrderType, TakeProfitMarketOrderType |
note | String | False | Text, Input, SessionGet, Load |
timeout | Number | False | Input, Number, SessionGet |
Places a (limit) exit short order for the given amount and price. Returns the order identifier (text).
- PlaceExitShortOrder(price, amount, [ market ], [ type ], [ note ], [ positionId ], [ timeout ], [ triggerPrice ])
Unique order identifier.
Return Type: String
Parameter Name | Parameter Type | Required | Suggested |
price | Number | True | BuyPrices, SellPrices, OpenPrices, HighPrices, LowPrices, ClosePrices, HLPrices, HLCPrices, OCPrices, OHLCPrices |
amount | Number | True | TradeAmount, Number, Input, ShortAmount |
market | String | False | InputAccountMarket, InputMarket, InputPriceSourceMarket, PriceMarket |
type | Enum | False | MarketOrderType, LimitOrderType, MakerOrCancelOrderType, NoTimeOutOrderType, MakerOrCancelOrderType, StopLimitOrderType, StopMarketOrderType, TakeProfitLimitOrderType, TakeProfitMarketOrderType |
note | String | False | Text, Input, SessionGet, Load |
positionId | String | False | Load, NewGuid |
timeout | Number | False | Input, Number, SessionGet |
triggerPrice | Number | False | Input, Number, SessionGet |
Places a (limit) go long order for the given amount and price. Returns the order identifier (text).
- PlaceGoLongOrder(price, amount, [ market ], [ type ], [ note ], [ positionId ], [ timeout ], [ triggerPrice ])
Unique order identifier.
Return Type: String
Parameter Name | Parameter Type | Required | Suggested |
price | Number | True | BuyPrices, SellPrices, OpenPrices, HighPrices, LowPrices, ClosePrices, HLPrices, HLCPrices, OCPrices, OHLCPrices |
amount | Number | True | TradeAmount, Number, Input, MaxLongAmount |
market | String | False | InputAccountMarket, InputMarket, InputPriceSourceMarket, PriceMarket |
type | Enum | False | MarketOrderType, LimitOrderType, MakerOrCancelOrderType, NoTimeOutOrderType, MakerOrCancelOrderType, StopLimitOrderType, StopMarketOrderType, TakeProfitLimitOrderType, TakeProfitMarketOrderType |
note | String | False | Text, Input, SessionGet, Load |
positionId | String | False | Load, NewGuid |
timeout | Number | False | Input, Number, SessionGet |
triggerPrice | Number | False | Input, Number, SessionGet |
Places a (limit) go short order for the given amount and price. Returns the order identifier (text).
- PlaceGoShortOrder(price, amount, [ market ], [ type ], [ note ], [ positionId ], [ timeout ], [ triggerPrice ])
Unique order identifier.
Return Type: String
Parameter Name | Parameter Type | Required | Suggested |
price | Number | True | BuyPrices, SellPrices, OpenPrices, HighPrices, LowPrices, ClosePrices, HLPrices, HLCPrices, OCPrices, OHLCPrices |
amount | Number | True | TradeAmount, Number, Input, MaxShortAmount |
market | String | False | InputAccountMarket, InputMarket, InputPriceSourceMarket, PriceMarket |
type | Enum | False | MarketOrderType, LimitOrderType, MakerOrCancelOrderType, NoTimeOutOrderType, MakerOrCancelOrderType, StopLimitOrderType, StopMarketOrderType, TakeProfitLimitOrderType, TakeProfitMarketOrderType |
note | String | False | Text, Input, SessionGet, Load |
positionId | String | False | Load, NewGuid |
timeout | Number | False | Input, Number, SessionGet |
triggerPrice | Number | False | Input, Number, SessionGet |
Places a (limit) sell order for the given amount and price. Returns the order identifier (text).
- PlaceSellOrder(price, amount, [ market ], [ type ], [ note ], [ positionId ], [ timeout ], [ triggerPrice ])
Unique order identifier.
Return Type: String
Parameter Name | Parameter Type | Required | Suggested |
price | Number | True | BuyPrices, SellPrices, OpenPrices, HighPrices, LowPrices, ClosePrices, HLPrices, HLCPrices, OCPrices, OHLCPrices |
amount | Number | True | TradeAmount, Number, Input, MaxShortAmount |
market | String | False | InputAccountMarket, InputMarket, InputPriceSourceMarket, PriceMarket |
type | Enum | False | MarketOrderType, LimitOrderType, MakerOrCancelOrderType, NoTimeOutOrderType, MakerOrCancelOrderType, StopLimitOrderType, StopMarketOrderType, TakeProfitLimitOrderType, TakeProfitMarketOrderType |
note | String | False | Text, Input, SessionGet, Load |
positionId | String | False | Load, NewGuid |
timeout | Number | False | Input, Number, SessionGet |
triggerPrice | Number | False | Input, Number, SessionGet |
Last modified 2yr ago