Trade Actions (Unmanaged)
Last updated
Last updated
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
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
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
Places exit orders for a specific bot position.
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).
PlaceExitShortOrder(price, amount, [ market ], [ type ], [ note ], [ positionId ], [ timeout ], [ triggerPrice ])
Unique order identifier.
Return Type: String
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
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
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, 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
Parameter Name
Parameter Type
Required
Suggested
orderId
String
True
-
price
Number
False
BuyPrices, SellPrices, OpenPrices, HighPrices, LowPrices, ClosePrices, HLPrices, HLCPrices, OCPrices, OHLCPrices
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
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
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
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
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
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