orderly.api
Documentation for eth_defi.orderly.api Python module.
Orderly API client implementation.
Functions
|
Classes
Orderly API client for deposit/withdrawals. |
|
|
- class OrderlyApiClient
Bases:
objectOrderly API client for deposit/withdrawals.
This client is responsible for registering accounts and keys with Orderly, so that we can delegate a vault to be a trading account on Orderly.
- Parameters
account – The local account to register the account for.
broker_id – The broker ID to register the account for.
chain_id – The chain ID to register the account for.
is_testnet – Whether to use the testnet API endpoint.
- __init__(*, account=None, broker_id=None, chain_id=None, is_testnet=False, orderly_account_id='', orderly_secret='')
- Parameters
account (eth_account.signers.local.LocalAccount | None) – The local account to register the account for.
broker_id (str | None) – The broker ID to register the account for.
chain_id (int | None) – The chain ID to register the account for.
is_testnet (bool) – Whether to use the testnet API endpoint.
orderly_account_id (str) –
orderly_secret (str) –
- register_account()
Register a new orderly account for the given account.
See also: https://orderly.network/docs/build-on-omnichain/user-flows/accounts
- Return type
- register_key(*, permissions='read,trading', delegate_contract=None)
Register a new orderly key for the given account.
See also: https://orderly.network/docs/build-on-omnichain/user-flows/wallet-authentication
- delegate_signer(*, delegate_contract, delegate_tx_hash)
Register a new orderly key for the given account.
See also: https://orderly.network/docs/build-on-omnichain/user-flows/wallet-authentication