Storm Trade
EN
EnglishРусскийNot available
Menu
On this page

πŸ“š Data API

The Data API is the read layer behind the Storm app. Use it for market discovery, prices, position and order history, vaults, referrals and leaderboards. All endpoints listed here are public GET requests.

  • Mainnet: https://api.storm.tg/api
  • Stage: https://api.stage.stormtrade.dev/api
  • Full schemas: Swagger

To place orders use the Trading API (V3).


πŸ“ˆ Markets and Prices

PathReturns
/marketsAll markets with current state: index price, reserves, open interest per side, funding
/markets/{address}One market
/markets/statsAggregated market statistics
/recent-trades, /recent-trades/{asset}Latest executed trades
/trade-status/market/{market}Whether trading is currently open on the market
/config/assets, /config/assets-configAsset list and per-asset parameters
/config/assets-scheduleTrading schedule for RWA markets
/config/dex-pricesUSD prices for assets without a signed oracle feed, 10^9 scaled
/config/settlement-ratesFactor converting settlement-token notional to USD, 10^9 scaled
/config, /config/time, /config/ui-bootstrapGlobal protocol and contract configuration

Market identifiers are vAMM contract addresses. Cache /markets and refresh it periodically rather than per request.


🧾 Positions and Orders

trader is the user's wallet address for v2 or Smart Account address for v3.

PathReturns
/positions/{trader}/activeOpen positions
/positions/{trader}/{asset}/activeOpen positions in one market
/positions/{trader}/{asset}/historyClosed positions in one market
/positions/{trader}/portfolio/historyPortfolio value over time
/positions/{id}One position by id
/positions/{id}/historyEvents of one position
/positions/{id}/close-statsRealized result of a closed position
/orders/{trader}/activeOpen orders
/orders/{trader}/{asset}/activeOpen orders in one market
/orders/{trader}/{asset}/historyOrder history in one market

πŸ’§ Vaults and Liquidity

PathReturns
/vaultsAll vaults with current data
/vaults/{vault}One vault
/vaults/{vault}/rates/{timeframe}Vault ROI and rate history over a timeframe
/liquidity-providers/{vault}/{trader}A provider's current state in a vault

πŸ† Trader Stats

PathReturns
/trader-stats/leaderboardLeaderboard
/trader-stats/{trader}/statsAggregate stats of one trader
/trader-stats/{trader}/pnl-historyPnL over time
/trader-stats/{trader}/first-trade-dateFirst trade timestamp
/stats/cumulativeProtocol-wide cumulative stats

πŸ’Ž Referrals

PathReturns
/referral/trader/{address}Referrer bound to a trader
/referral/referrer/{owner}Referrer NFT info by owner
/referral/referrer/{owner}/earningsReferral earnings, split by v2 and v3
/referral/referrer/{owner}/tradersTrading stats of referred traders
/referral/nft/{address}, /referral/nft/by-id/{refId}Referral NFT details

See Referral Program for how referral NFTs work.


πŸŒ€ STORM Token and Supply

PathReturns
/storm-token/summaryToken summary
/storm-token/staking, /lp, /vesting, /vouchers, /leaderboardStaking, LP, vesting and voucher data
/supply/total, /supply/circulatingSupply figures
/coingecko/contractsCoinGecko derivatives feed
Last updated