MUX
AppStatsForumArticles
  • Protocol
    • Overview
      • MUX V3 Trading Protocol
      • MUX Perpetual Aggregator
      • MUX V1 Trading Protocol
      • MUX V1 Degen Protocol
    • Liquidity
    • Tokenomics
    • Income Allocation
    • Referral Program
    • Fee Structure
    • Liquidation
    • Multiplexing Layer
    • Governance
    • Online Issues
    • Audit
    • Contracts
      • DAO Multi-sig
      • MUX V3 Protocol Contracts
      • MUX Leveraged Trading Protocol Contracts
      • MUX Aggregator Contracts
      • MUX Degen Contracts
      • MUXLP Tranches Contracts
    • MUX API
    • Bug Bounty
    • Terms
  • Tutorials
    • Trade
    • Provide Liquidity
    • Stake
    • Redeem
    • Referral
  • Website
    • Cookie Policy
Powered by GitBook
On this page
  • Endpoint
  • Response
  1. Protocol

MUX API

The API returns the MUXLP price and the liquidity distribution.

Endpoint

Get all assets liquidity info of MUX protocol.

https://app.mux.network/api/liquidityAsset

Response

Field
Description

status

0 for success. -1 for internal error. -2 for invalid request

totalValue

Total pool value in dollars

stableUtilization

%utilization of stable coins

muxLPPrice

MUXLP price in dollars

muxLPTotalBalance

MUXLP token balance in all chains

isLPPriceAvailable

true if add/remove liquidity is enabled

assets

Listed assets on MUX

distribution

Distribution of assets on each chain

Structure of "assets":

Field
Description

symbol

Asset symbol like "ETH", "BTC", ...

isStable

Is a stable coin

price

Asset price

value

Asset total value on all chains in US dollars

lpBalance

Asset amount in MUXLP pool

credit

Asset credit amount for MUX Aggregator

longs

Long position size

shorts

Short position size

targetWeight

Target weight of asset

actualWeight

Actual weight of asset in MUXLP pool

utility

Margin trading utilization

availableForLong

Available long position size

availableForShort

Available short position size

liquidityOnChains

Asset value on each chain and asset amount can be removed from each chain

Structure of "distribution":

Field
Description

muxMarginTrading

margin trading value (long positions and short positions) on all chains in US dollars

dexs

Third party DEXes list on MUX, in which "value" means total value in the DEX in US dollars, "targetWeight" means target weight of this DEX, "actualWeight" means actual weight of this DEX

PreviousMUXLP Tranches ContractsNextBug Bounty

Last updated 2 years ago