Chuyển đến nội dung chính
POST
https://api-oms.verolabs.co
/
api
/
v1
/
orders
/
new
Submit a new order
curl --request POST \
  --url https://api-oms.verolabs.co/api/v1/orders/new \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "account_id": "<string>",
  "symbol": "<string>",
  "side": "<string>",
  "qty": 123,
  "order_type": "<string>",
  "ref_order_id": "<string>",
  "price": "<string>",
  "algo_id": "<string>",
  "position_id": "<string>",
  "persis_state": "<string>"
}
'
{
  "isSuccess": true,
  "detail": "<string>",
  "data": {
    "msg_type": "<string>",
    "request_id": "<string>",
    "orig_request_id": "<string>",
    "client_id": "<string>",
    "hft_gateway": "<string>",
    "source_service": "<string>",
    "source_sequence": 123
  }
}

Ủy quyền

Authorization
string
header
bắt buộc

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Nội dung

application/json

New order request fields.

NewOrderRequest schema.

account_id
string
bắt buộc

Trading account. Required.

symbol
string
bắt buộc

Ticker. Required; rewritten to ISIN by risk routing.

side
string
bắt buộc

B or S. Required.

qty
integer<int64>
bắt buộc

Order quantity. Must be > 0.

order_type
string
bắt buộc

LO, PLO, ATO, ATC, MTL, MOK, MAK, or BUYIN.

ref_order_id
string

Client ClOrdID. Empty or - lets the API generate one.

price
string

Raw decimal price. No-price types ignore price and go out at 0.

algo_id
string

Algorithm identifier for the request.

position_id
string

Position identifier for the request.

persis_state
string

Requested order state.

Phản hồi

Accepted

AckResponse schema.

isSuccess
boolean

Indicates whether the operation completed successfully.

Ví dụ:

true

detail
string

Detailed information for the record.

data
object

Ack schema.