Perps
The Perps Contract provides data for the Perpetual Futures platform. It returns all market states and is needed for the Credit Manager to be able to execute trigger orders.
Deployments
Neutron: neutron1g3catxyv0fk8zzsra2mjc0v4s69a7xygdjt85t54l7ym3gv0un4q2xhaf6 Perps Market API: https://backend.prod.mars-dev.net/v2/perps_market?chain=neutron
Types
The types of the Perps Contract can be found here.
For reference on the Queries and Methods:
type Decimal = string
type Uint128 = string
type Int128 = string
type SignedDecimal = stringQueries
config
Returns the Contracts configuration.
{
config: {}
}market
market_accounting
market_state
markets
opening_fee
owner
position
position_fees
positions
positions_by_account
realized_pnl_by_account_and_market
total_accounting
vault
vault_position
Methods
close_all_positions
deleverage
deposit
execute_order
unlock
withdraw
Audit
Last updated