ContractMatching
type ContractPrice
input:
pairId: The contract pair id defined by zkLink.
marketPrice: The market price of the contract pair
type SpotPriceInfo
input:
tokenId: The token id defined by zkLink.
price: The spot price of the token.
type Contract
The Contract struct of taker and maker in perpetual contract.
func sign
Sign contract with given ZkLinkSigner
func toJson
Get the json str of Contract
type ContractMatching
ContractMatching transaction type.
func sign
Sign transaction with given ZkLinkSigner
func toJson
Get the json str of ContractMatching
Last updated