"apiBaseUrl"
| "klineDataUrl"
| "privateWsUrl"
| "publicWsUrl"
| "operatorUrl"
| "domain"
| "brokerId"
| "networkId"
| "env"
| "PROD_URL"
| "markets"
Object
Name | Type |
---|---|
data? | any |
method | "GET" | "POST" | "PUT" | "DELETE" |
url | string |
Object
Name | Type |
---|---|
orderly-account-id? | string |
orderly-key | string |
orderly-signature | string |
orderly-timestamp | string |
Object
Name | Type |
---|---|
address | string |
chain | { id : number } |
chain.id | number |
provider | any |
options
: WalletAdapterOptions
) => WalletAdapter
options
): WalletAdapter
Name | Type |
---|---|
options | WalletAdapterOptions |
WalletAdapter
inputs
): readonly [{ brokerId
: string
; chainId
: number
; expiration
: number
; orderlyKey
: string
= publicKey; scope
: string
= “read,trading”; timestamp
: number
}, { domain
: { chainId
: number
; name
: string
= “Orderly”; verifyingContract
: string
; version
: string
= “1” } ; message
: { brokerId
: string
; chainId
: number
; expiration
: number
; orderlyKey
: string
= publicKey; scope
: string
= “read,trading”; timestamp
: number
} ; primaryType
: "Registration"
| "EIP712Domain"
| "Withdraw"
| "AddOrderlyKey"
| "SettlePnl"
; types
: { EIP712Domain
: readonly [{ name
: "name"
= “name”; type
: "string"
= “string” }, { name
: "version"
= “version”; type
: "string"
= “string” }, { name
: "chainId"
= “chainId”; type
: "uint256"
= “uint256” }, { name
: "verifyingContract"
= “verifyingContract”; type
: "address"
= “address” }] = definedTypes.EIP712Domain } = typeDefinition }]
generate addOrderlyKey
data and to be signed message structure
Name | Type |
---|---|
inputs | Object |
inputs.brokerId | string |
inputs.chainId | number |
inputs.expiration? | number |
inputs.primaryType | "Registration" | "EIP712Domain" | "Withdraw" | "AddOrderlyKey" | "SettlePnl" |
inputs.publicKey | string |
inputs.timestamp? | number |
brokerId
: string
; chainId
: number
; expiration
: number
; orderlyKey
: string
= publicKey; scope
: string
= “read,trading”; timestamp
: number
}, { domain
: { chainId
: number
; name
: string
= “Orderly”; verifyingContract
: string
; version
: string
= “1” } ; message
: { brokerId
: string
; chainId
: number
; expiration
: number
; orderlyKey
: string
= publicKey; scope
: string
= “read,trading”; timestamp
: number
} ; primaryType
: "Registration"
| "EIP712Domain"
| "Withdraw"
| "AddOrderlyKey"
| "SettlePnl"
; types
: { EIP712Domain
: readonly [{ name
: "name"
= “name”; type
: "string"
= “string” }, { name
: "version"
= “version”; type
: "string"
= “string” }, { name
: "chainId"
= “chainId”; type
: "uint256"
= “uint256” }, { name
: "verifyingContract"
= “verifyingContract”; type
: "address"
= “address” }] = definedTypes.EIP712Domain } = typeDefinition }]
inputs
): readonly [{ brokerId
: string
; chainId
: number
; registrationNonce
: number
; timestamp
: number
}, { domain
: { chainId
: number
; name
: string
= “Orderly”; verifyingContract
: string
; version
: string
= “1” } ; message
: { brokerId
: string
; chainId
: number
; registrationNonce
: number
; timestamp
: number
} ; primaryType
: string
; types
: { EIP712Domain
: readonly [{ name
: "name"
= “name”; type
: "string"
= “string” }, { name
: "version"
= “version”; type
: "string"
= “string” }, { name
: "chainId"
= “chainId”; type
: "uint256"
= “uint256” }, { name
: "verifyingContract"
= “verifyingContract”; type
: "address"
= “address” }] = definedTypes.EIP712Domain; Registration
: readonly [{ name
: "brokerId"
= “brokerId”; type
: "string"
= “string” }, { name
: "chainId"
= “chainId”; type
: "uint256"
= “uint256” }, { name
: "timestamp"
= “timestamp”; type
: "uint64"
= “uint64” }, { name
: "registrationNonce"
= “registrationNonce”; type
: "uint256"
= “uint256” }] } = typeDefinition }]
generate registerAccount
data and to be signed message structure
Name | Type |
---|---|
inputs | Object |
inputs.brokerId | string |
inputs.chainId | number |
inputs.registrationNonce | number |
inputs.timestamp? | number |
brokerId
: string
; chainId
: number
; registrationNonce
: number
; timestamp
: number
}, { domain
: { chainId
: number
; name
: string
= “Orderly”; verifyingContract
: string
; version
: string
= “1” } ; message
: { brokerId
: string
; chainId
: number
; registrationNonce
: number
; timestamp
: number
} ; primaryType
: string
; types
: { EIP712Domain
: readonly [{ name
: "name"
= “name”; type
: "string"
= “string” }, { name
: "version"
= “version”; type
: "string"
= “string” }, { name
: "chainId"
= “chainId”; type
: "uint256"
= “uint256” }, { name
: "verifyingContract"
= “verifyingContract”; type
: "address"
= “address” }] = definedTypes.EIP712Domain; Registration
: readonly [{ name
: "brokerId"
= “brokerId”; type
: "string"
= “string” }, { name
: "chainId"
= “chainId”; type
: "uint256"
= “uint256” }, { name
: "timestamp"
= “timestamp”; type
: "uint64"
= “uint64” }, { name
: "registrationNonce"
= “registrationNonce”; type
: "uint256"
= “uint256” }] } = typeDefinition }]
inputs
): readonly [{ brokerId
: string
; chainId
: number
= chainId; settleNonce
: string
= settlePnlNonce; timestamp
: number
= timestamp }, { domain
: SignatureDomain
; message
: { brokerId
: string
; chainId
: number
= chainId; settleNonce
: string
= settlePnlNonce; timestamp
: number
= timestamp } ; primaryType
: string
; types
: { EIP712Domain
: readonly [{ name
: "name"
= “name”; type
: "string"
= “string” }, { name
: "version"
= “version”; type
: "string"
= “string” }, { name
: "chainId"
= “chainId”; type
: "uint256"
= “uint256” }, { name
: "verifyingContract"
= “verifyingContract”; type
: "address"
= “address” }] = definedTypes.EIP712Domain; SettlePnl
: readonly [{ name
: "brokerId"
= “brokerId”; type
: "string"
= “string” }, { name
: "chainId"
= “chainId”; type
: "uint256"
= “uint256” }, { name
: "settleNonce"
= “settleNonce”; type
: "uint64"
= “uint64” }, { name
: "timestamp"
= “timestamp”; type
: "uint64"
= “uint64” }] } = typeDefinition }]
generate settle
data and to be signed message structure
Name | Type |
---|---|
inputs | Object |
inputs.brokerId | string |
inputs.chainId | number |
inputs.domain | SignatureDomain |
inputs.settlePnlNonce | string |
brokerId
: string
; chainId
: number
= chainId; settleNonce
: string
= settlePnlNonce; timestamp
: number
= timestamp }, { domain
: SignatureDomain
; message
: { brokerId
: string
; chainId
: number
= chainId; settleNonce
: string
= settlePnlNonce; timestamp
: number
= timestamp } ; primaryType
: string
; types
: { EIP712Domain
: readonly [{ name
: "name"
= “name”; type
: "string"
= “string” }, { name
: "version"
= “version”; type
: "string"
= “string” }, { name
: "chainId"
= “chainId”; type
: "uint256"
= “uint256” }, { name
: "verifyingContract"
= “verifyingContract”; type
: "address"
= “address” }] = definedTypes.EIP712Domain; SettlePnl
: readonly [{ name
: "brokerId"
= “brokerId”; type
: "string"
= “string” }, { name
: "chainId"
= “chainId”; type
: "uint256"
= “uint256” }, { name
: "settleNonce"
= “settleNonce”; type
: "uint64"
= “uint64” }, { name
: "timestamp"
= “timestamp”; type
: "uint64"
= “uint64” }] } = typeDefinition }]
BaseSigner
BaseSigner
secretKey?
): BaseSigner
Name | Type |
---|---|
secretKey? | string |
BaseSigner