5.7 Sửa lệnh

Sửa lệnh V2

1. Kiểm tra sức mua trước khi sửa lệnh

Path and query param

Field
Type
Description

account

Số tiểu khoản

price

Giá đặt mới

id

Số hiệu lệnh của lệnh cần sửa

Resquest header

Field
Type
Description

Authorization

Bearer <JWT token>

Response body

Field
Type
Description

qmaxLong

integer

Nếu lệnh sửa là lệnh Mua thì đây là khối lượng tối đa lệnh được sửa ở mức Giá đặt mới

qmaxShort

integer

Nếu lệnh sửa là lệnh Bán thì đây là khối lượng tối đa lệnh được sửa ở mức Giá đặt mới

2. Sửa lệnh V2

Path param

Field
Type
Description

id

Số hiệu lệnh của lệnh cần sửa

Query param

Field
Type
Description

account

Số tiểu khoản

Resquest header

Field
Type
Description

Authorization

Bearer <JWT token>

Trading-Token

Trading-token lấy ở xác thực bước 2 (Mục 2.2)

Resquest body

Field
Type
Description

price

Giá đặt mới

quantity

Khối lượng đặt mới

Response body

Field
Type
Description

id

integer

Số hiệu lệnh

side

string

Lệnh Mua/Bán thuộc các giá trị sau:

- NB: Mua

- NS: Bán

accountNo

string

Số tiểu khoản

investorId

string

Mã Khách hàng

symbol

string

price

number

Giá đặt

quantity

integer

Khối lượng đặt

orderType

string

Loại lệnh

orderStatus

string

Trạng thái lệnh

fillQuantity

integer

Khối lượng đã khớp

lastQuantity

integer

Khối lượng của lần khớp gần nhất của lệnh

lastPrice

number

Giá khớp của lần khớp gần nhất của lệnh

averagePrice

double

Giá khớp trung bình của lệnh

transDate

string

Ngày giao dịch, theo định dạng ISO UTC 8601 format date

Ví dụ: 2022-07-15

createdDate

string

Thời điểm (ngày giờ) đặt lệnh, theo định dạng ISO UTC 8601 format datetime

Ví dụ: 2022-07-

15T10:00:00.111+07:00

modifiedDate

string

Thời điểm (ngày giờ) thay đổi cuối cùng của lệnh

taxRate

double

Tỷ lệ thuế lệnh chịu

feeRate

double

Tỷ lệ phí lệnh chịu

leaveQuantity

integer

Khối lượng chưa khớp của lệnh

canceledQuantity

integer

Khối lượng đã huỷ của lệnh

priceSecure

double

Giá cọc cho lệnh

custody

string

Số lưu ký của tiểu khoản đặt lệnh

channel

string

Kênh đặt lệnh

loanPackageId

integer

Id gói vay

initialRate

number

Tỷ lệ ký quỹ theo gói vay tương ứng với lệnh

error

string

Mã lỗi

CURL

curl --location --request PUT ' https://services.entrade.com.vn/dnse-orderservice/v2/derivative/orders/?accountNo= ' --header 'content-type: application/json' --header 'authorization: Bearer <jwt_token_from_login_API_response_step_2.1>' --header 'trading-token: <trading_token_from_step_2.2>'

Last updated