Price
Price
Buy option sign
/api/defi/option/order/buy-sign
Method
POST
Parameter
Parameter name
Required
Type
Explain
index_no
Yes
uint256
index_no
pool_id
Yes
uint8
pool_id
is_call
Yes
0,1
1:is call option,0:is put option
Return example
Return parameter description
Parameter name
Type
Explain
signData
bytes
signature date
datetime
int
sign time
price
int
price,accuracy is divided 10^6
Remark
The signature time is about 40 seconds longer than the current time, within which options can be purchased by submitting to the blockchain
Sell option sign
/api/defi/option/order/sell-sign
Method
POST
Parameter
Parameter name
Required
Type
Explain
index_no
Yes
uint256
index_no
pool_id
Yes
uint8
pool_id
order_no
Yes
int
order_no
Return example
Return parameter description
Parameter name
Type
Explain
signData
bytes
sign date
datetime
int
sign time
price
int
price,accuracy is divided 10^6
Remark
The signature time is about 40 seconds longer than the current time, within which options can be purchased by submitting to the blockchain
Token list
/api/defi/oracle/token/price
Method
POST
Return example
Last updated