Unmanaged Trade Commands
Last updated
Last updated
Places a (limit) buy order for the given amount and price. Returns the order identifier (text).
Syntax: PlaceBuyOrder(price, amount, [ market ], [ type ], [ note ], [ positionId ], [ timeout ], [ triggerPrice ], [ reduceOnly ], [ hiddenOrder ])
Unique order identifier.
Return type: String
Parameter Name | Parameter Type | Required | Suggestions |
---|---|---|---|
Executes the remaining amount of a canceled order.
Syntax: PlaceCancelledOrder(orderId, [ price ])
Returns an new order identifier. Empty if no order is executed.
Return type: String
Places a (limit) exit long order for the given amount and price. Returns the order identifier (text).
Syntax: PlaceExitLongOrder(price, amount, [ market ], [ type ], [ note ], [ positionId ], [ timeout ], [ triggerPrice ], [ reduceOnly ], [ hiddenOrder ])
Unique order identifier.
Return type: String
Places exit orders for a specific bot position.
Syntax: PlaceExitPositionOrder([ positionId ], [ price ], [ type ], [ note ], [ timeout ])
Returns an order identifier.
Return type: String
Places a (limit) exit short order for the given amount and price. Returns the order identifier (text).
Syntax: PlaceExitShortOrder(price, amount, [ market ], [ type ], [ note ], [ positionId ], [ timeout ], [ triggerPrice ], [ reduceOnly ], [ hiddenOrder ])
Unique order identifier.
Return type: String
Places a (limit) go long order for the given amount and price. Returns the order identifier (text).
Syntax: PlaceGoLongOrder(price, amount, [ market ], [ type ], [ note ], [ positionId ], [ timeout ], [ triggerPrice ], [ reduceOnly ], [ hiddenOrder ])
Unique order identifier.
Return type: String
Places a (limit) go short order for the given amount and price. Returns the order identifier (text).
Syntax: PlaceGoShortOrder(price, amount, [ market ], [ type ], [ note ], [ positionId ], [ timeout ], [ triggerPrice ], [ reduceOnly ], [ hiddenOrder ])
Unique order identifier.
Return type: String
Places a (limit) sell order for the given amount and price. Returns the order identifier (text).
Syntax: PlaceSellOrder(price, amount, [ market ], [ type ], [ note ], [ positionId ], [ timeout ], [ triggerPrice ], [ reduceOnly ], [ hiddenOrder ])
Unique order identifier.
Return type: String
Parameter Name | Parameter Type | Required | Suggestions |
---|---|---|---|
Parameter Name | Parameter Type | Required | Suggestions |
---|---|---|---|
Parameter Name | Parameter Type | Required | Suggestions |
---|---|---|---|
Parameter Name | Parameter Type | Required | Suggestions |
---|---|---|---|
Parameter Name | Parameter Type | Required | Suggestions |
---|---|---|---|
Parameter Name | Parameter Type | Required | Suggestions |
---|---|---|---|
Parameter Name | Parameter Type | Required | Suggestions |
---|---|---|---|
price
Number
True
GetBuyPrices,GetSellPrices,GetOpenPrices,GetHighPrices,GetLowPrices,GetClosePrices,GetHighLowPrices,GetHighLowClosePrices,GetOpenClosePrices,GetOpenHighLowClosePrices,GetBodyHighPrices,GetBodyLowPrices
amount
Number
True
TradeAmount,Number,Input,MaxBuyAmount
market
String
False
InputAccountMarket,InputMarket,InputPriceSourceMarket,PriceMarket
type
Enum
False
MarketOrderType,LimitOrderType,MakerOrCancelOrderType,NoTimeOutOrderType,StopLimitOrderType,StopMarketOrderType,TakeProfitLimitOrderType,TakeProfitMarketOrderType,TrailingStopMarketOrderType
note
String
False
Text,Input,SessionGet,Load
positionId
String
False
Load,NewGuid
timeout
Number
False
Input,Number,SessionGet
triggerPrice
Number
False
Input,Number,SessionGet
reduceOnly
Boolean
False
True,False
hiddenOrder
Boolean
False
True,False
orderId
String
True
price
Number
False
GetBuyPrices,GetSellPrices,GetOpenPrices,GetHighPrices,GetLowPrices,GetClosePrices,GetHighLowPrices,GetHighLowClosePrices,GetOpenClosePrices,GetOpenHighLowClosePrices,GetBodyHighPrices,GetBodyLowPrices
price
Number
True
GetBuyPrices,GetSellPrices,GetOpenPrices,GetHighPrices,GetLowPrices,GetClosePrices,GetHighLowPrices,GetHighLowClosePrices,GetOpenClosePrices,GetOpenHighLowClosePrices,GetBodyHighPrices,GetBodyLowPrices
amount
Number
True
TradeAmount,Number,Input,LongAmount
market
String
False
InputAccountMarket,InputMarket,InputPriceSourceMarket,PriceMarket
type
Enum
False
MarketOrderType,LimitOrderType,MakerOrCancelOrderType,NoTimeOutOrderType,StopLimitOrderType,StopMarketOrderType,TakeProfitLimitOrderType,TakeProfitMarketOrderType,TrailingStopMarketOrderType
note
String
False
Text,Input,SessionGet,Load
positionId
String
False
Load,NewGuid
timeout
Number
False
Input,Number,SessionGet
triggerPrice
Number
False
Input,Number,SessionGet
reduceOnly
Boolean
False
True,False
hiddenOrder
Boolean
False
True,False
positionId
String
False
Load
price
Number
False
GetBuyPrices,GetSellPrices,GetOpenPrices,GetHighPrices,GetLowPrices,GetClosePrices,GetHighLowPrices,GetHighLowClosePrices,GetOpenClosePrices,GetOpenHighLowClosePrices,GetBodyHighPrices,GetBodyLowPrices
type
Enum
False
MarketOrderType,LimitOrderType,MakerOrCancelOrderType,NoTimeOutOrderType,StopLimitOrderType,StopMarketOrderType,TakeProfitLimitOrderType,TakeProfitMarketOrderType,TrailingStopMarketOrderType
note
String
False
Text,Input,SessionGet,Load
timeout
Number
False
Input,Number,SessionGet
price
Number
True
GetBuyPrices,GetSellPrices,GetOpenPrices,GetHighPrices,GetLowPrices,GetClosePrices,GetHighLowPrices,GetHighLowClosePrices,GetOpenClosePrices,GetOpenHighLowClosePrices,GetBodyHighPrices,GetBodyLowPrices
amount
Number
True
TradeAmount,Number,Input,ShortAmount
market
String
False
InputAccountMarket,InputMarket,InputPriceSourceMarket,PriceMarket
type
Enum
False
MarketOrderType,LimitOrderType,MakerOrCancelOrderType,NoTimeOutOrderType,StopLimitOrderType,StopMarketOrderType,TakeProfitLimitOrderType,TakeProfitMarketOrderType,TrailingStopMarketOrderType
note
String
False
Text,Input,SessionGet,Load
positionId
String
False
Load,NewGuid
timeout
Number
False
Input,Number,SessionGet
triggerPrice
Number
False
Input,Number,SessionGet
reduceOnly
Boolean
False
True,False
hiddenOrder
Boolean
False
True,False
price
Number
True
GetBuyPrices,GetSellPrices,GetOpenPrices,GetHighPrices,GetLowPrices,GetClosePrices,GetHighLowPrices,GetHighLowClosePrices,GetOpenClosePrices,GetOpenHighLowClosePrices,GetBodyHighPrices,GetBodyLowPrices
amount
Number
True
TradeAmount,Number,Input,MaxBuyAmount
market
String
False
InputAccountMarket,InputMarket,InputPriceSourceMarket,PriceMarket
type
Enum
False
MarketOrderType,LimitOrderType,MakerOrCancelOrderType,NoTimeOutOrderType,StopLimitOrderType,StopMarketOrderType,TakeProfitLimitOrderType,TakeProfitMarketOrderType,TrailingStopMarketOrderType
note
String
False
Text,Input,SessionGet,Load
positionId
String
False
Load,NewGuid
timeout
Number
False
Input,Number,SessionGet
triggerPrice
Number
False
Input,Number,SessionGet
reduceOnly
Boolean
False
True,False
hiddenOrder
Boolean
False
True,False
price
Number
True
GetBuyPrices,GetSellPrices,GetOpenPrices,GetHighPrices,GetLowPrices,GetClosePrices,GetHighLowPrices,GetHighLowClosePrices,GetOpenClosePrices,GetOpenHighLowClosePrices,GetBodyHighPrices,GetBodyLowPrices
amount
Number
True
TradeAmount,Number,Input,MaxSellAmount
market
String
False
InputAccountMarket,InputMarket,InputPriceSourceMarket,PriceMarket
type
Enum
False
MarketOrderType,LimitOrderType,MakerOrCancelOrderType,NoTimeOutOrderType,StopLimitOrderType,StopMarketOrderType,TakeProfitLimitOrderType,TakeProfitMarketOrderType,TrailingStopMarketOrderType
note
String
False
Text,Input,SessionGet,Load
positionId
String
False
Load,NewGuid
timeout
Number
False
Input,Number,SessionGet
triggerPrice
Number
False
Input,Number,SessionGet
reduceOnly
Boolean
False
True,False
hiddenOrder
Boolean
False
True,False
price
Number
True
GetBuyPrices,GetSellPrices,GetOpenPrices,GetHighPrices,GetLowPrices,GetClosePrices,GetHighLowPrices,GetHighLowClosePrices,GetOpenClosePrices,GetOpenHighLowClosePrices,GetBodyHighPrices,GetBodyLowPrices
amount
Number
True
TradeAmount,Number,Input,MaxSellAmount
market
String
False
InputAccountMarket,InputMarket,InputPriceSourceMarket,PriceMarket
type
Enum
False
MarketOrderType,LimitOrderType,MakerOrCancelOrderType,NoTimeOutOrderType,StopLimitOrderType,StopMarketOrderType,TakeProfitLimitOrderType,TakeProfitMarketOrderType,TrailingStopMarketOrderType
note
String
False
Text,Input,SessionGet,Load
positionId
String
False
Load,NewGuid
timeout
Number
False
Input,Number,SessionGet
triggerPrice
Number
False
Input,Number,SessionGet
reduceOnly
Boolean
False
True,False
hiddenOrder
Boolean
False
True,False