Read Scripts

Name Description Dependancy Status
get_available_liquidity Get liquidity for new positions get_oracle_prices, get_pool_tvl, get_open_interest
get_pool_tvl Get amount token and/or $ amount across markets get_oracle_prices
get_open_interest Get open interest across markets get_oracle_prices, get_markets
get_oracle_prices Get signed prices get_markets
get_funding_rates Get the long/short APRs across markets get_oracle_prices, get_markets, get_open_interest
get_price_impact Get the price impact for a given size/asset get_pool_tvl, get_oracle_prices
get_claimable_fees Get the fees collected across markets get_markets, get_oracle_prices
get_open_positions Get the live open positions for a given address get_oracle_prices
get_borrow_rates Get the current borrow rates across markets get_oracle_prices, get_markets, get_open_interest
get_markets Return formatted utility information for each market -
get_liquidity_positions Get current liquidity positions in GM get_oracle_prices
get_gm_price Get price for GM Tokens
get_utilisation get utilisation for each pool get_open_interest

Write Scripts

Name Description Status
create_increase_position
(market order) A market order to increase a long / short position ✅ (v1)
create_decrease_position
(market order) A market order to decrease a long / short position ✅ (v1)
create_limit_increase
(low priority A limit order to increase a long / short position
create_limit_decrease
(low priority A limit order to decrease a long / short position
create_deposit Add liquidity to a market ✅ (v1)
create_withdraw Remove liquidity from a market ✅ (v1)
create_swap
(market order) Execute a swap between two assets ✅ (v1)
create_limit_swap
(low priority Create limit swap
create_stop_loss
(low priority set stop loss/tp