
π₯Program ABI
This is Zeta's cross-program integration ecosystem - fully open-sourced.
The objective of this page is to give a brief overview of the Zeta Cross Program Invocation (CPI) interface. For a more detailed view please refer to the Github Repository.
Cross Program Invocations
Instructions
The instructions currently supported are as follows:
The instructions currently supported are as follows:
initialize_cross_margin_account- create and initialize a user's margin accountinitialize_cross_margin_account_manager- create and initialize a user's margin account managerinitialize_open_orders_v3- create and initialize user's open orders accountdeposit_v2- deposit USDC collateral into the margin accountwithdraw_v2- withdraw USDC collateral from the margin accountplace_perp_order_v3- place a perp order of (price, size, side) on the relevant marketcancel_order_xxx- collection of order cancellation functions, by orderId, clientOrderId, market, etcclose_open_orders- close open orders accountliquidate_v2- trigger liquidation
Accounts
The accounts and relevant data that is currently supported (non-exhaustive):
State- contains global parameters relating to all marketsFee percentages
Admin pubkeys
Platform limits
Halt state
Pricing- global mark prices, pricing params and funding informationMark Prices
Funding rates
Perp and margin params
CrossMarginAccount- individual user margin accountsBalance
Positions
Orders
For a more detailed view please refer to the Github Repository.
Ready to start trading?
Last updated
Was this helpful?