OrderMatching
Order Matching
type
String
yes
OrderMatching
accountId
yes
Initiator's account id. Only specific accounts can initiate this type of transaction on Layer3
expectBaseAmount
yes
The maximum amount of base token that the initiator expects to be traded in this order matching, which cannot exceed the maximum amount that the maker and taker can actually trade. The value does not need to be packable
expectQuoteAmount
yes
The maximum amount of quote token that the initiator expects to be traded in this order matching, which cannot exceed the maximum amount that the maker and taker can actually trade. The value does not need to be packable
signature
yes
The pub key hash corresponding to the signature must be aligned with the initiator account
<a id="order>where the type Order
is
nonce
Nonce
yes
slot nonce, Value range: [0, 2^24 - 1]
amount
String
yes
The string format of BigUint, the amount request in this order
price
yes
The string format of BigUint, the price request in this order, the value can't be zero
isSell
u8
yes
1:seller, 0: buyer
feeRates
[u8, u8]
yes
the fee of [maker, taker], 100 means 1.0%, the maximum 2.56%
hasSubsidy
u8
yes
1: true, 0: false. If maker has subsidy, the submitter will give maker subsidy
For example:
Sign OrderMatching
For more detail please refer to Golang example in SDK
Last updated