delegateSigner
prior to interacting with Orderly.
Create delegate signer link
delegateSigner
function on the Orderly Vault contract.
The interface is described below:execAction
function, which allows arbitrary code execution.A minimal implementation of a Smart Contract will look like this:Accept the link from the Delegate Signer EOA
delegate_signer
API. You will also need to send the transaction hash from previous step.This step will optionally create the account for the Smart Contract, if it does not yet exist. If it already exists it will just update the linked EOA account.Add Orderly Key
Deploy funds
deposit
function of the Vault contract or you can call the depositTo
function from any address and deposit into your Smart Contract’s account wallet.
For the latter you will also require the account_id
from the registration step.Start Trading
Settle PnL/Withdraw