Novopus GPT Other Problems
  • Deposit/Withdrawal
    • 🪙Recharge
    • ⛓️how to transfer money
    • 💡How to propose a cryptocurrency
    • ✨The deposit has not arrived?
  • 🔓How to view account assets
  • Tax related
    • 📪Tax Calculator
  • Other problems
    • 🛠️Unable to create policy
    • ❤️Strategy error problem
    • 💰Team advertising revenue
  • Open platform
    • ⚖️Conditional Order
      • 1️⃣Place a conditonal order
      • 2️⃣Cancel conditional orders (before triggering)
      • 3️⃣Query open conditional orders (before triggering)
      • 4️⃣Query conditional order history
      • 5️⃣Query a specific conditional order
      • 6️⃣Error Code
Powered by GitBook
On this page
  1. Open platform
  2. Conditional Order

Place a conditonal order

PreviousConditional OrderNextCancel conditional orders (before triggering)

Last updated 1 year ago

POST /v2/algo-orders

API Key Permissions: Transactions Frequency limit value (NEW): 20 times/2 seconds Order strategy orders can only be placed through this node, and cannot be placed through spot/margin trading related interfaces. The maximum number of untriggered OPEN orders supported is 100.

Request Parameter

Field
Data Type
Required
Default Value
Description
Valid Value

Note: • The gap between orderPrice and stopPrice shouldn't exceed the price limit ratio. For example, a limit buy order's price couldn't be higher than 110% of market price, this limitation should be also applicable to orderPrice/stopPrice ratio. • User has to make sure the clientOrderId's uniqueness. While the conditional order being triggered, if the clientOrderId is duplicated with another order (within 24hour) coming from same user, the conditional order will fail triggering. • User has to make sure the corresponding account has sufficient fund for triggering this conditional order, otherwise it would cause conditional order triggering failure. • timeInForce enum values: gtc - good till cancel,boc - book or cancel (also called as post only, or book only), ioc - immediate or cancel, fok - fill or kill

Response Content

Field
Data Type
Required
Description
⚖️
1️⃣

accountId

integer

TRUE

Account ID

At present only support spot account id, margin account id, super-margin account. C2C margin account id is not supported at this point of time.

symbol

string

TRUE

Trading symbol

orderPrice

string

FALSE

Order price (invalid for market order)

orderSide

string

TRUE

Order side

buy,sell

orderSize

string

FALSE

Order size (invalid for market buy order)

orderValue

string

FALSE

Order value (only valid for market buy order)

timeInForce

string

FALSE

gtc for orderType=limit; ioc for orderType=market

Time in force

gtc (invalid for orderType=market), boc (invalid for orderType=market), ioc, fok (invalid for orderType=market)

orderType

string

TRUE

Order type

limit,market

clientOrderId

string

TRUE

Client order ID (max length 64-char)

stopPrice

string

TRUE

Stop price

trailingRate

string

FALSE

Trailing rate (only valid for trailing stop order)

[0.001-0.050]

code

integer

TRUE

Status code

message

string

FALSE

Error message (if any)

<data>

object

TRUE

clientOrderId

string

TRUE

Client order ID

</data>