# Ekiden Docs ## Docs - [Get Account Balance](https://docs.ekiden.fi/api-reference/account/get-account-balance.md): Query account balances. Returns all subaccounts' vault balances. - [Get Account Statistics](https://docs.ekiden.fi/api-reference/account/get-account-statistics.md): Returns historical snapshots of equity, PnL, volume, and ROI. When step is omitted, raw snapshots are returned, otherwise time bucketed by day/week/month. Optional sub_account_address: when set, the result includes only specified subaccount, otherwise all of the user's subaccounts;. Default limit 10… - [Post apiv1accountfund](https://docs.ekiden.fi/api-reference/account/post-apiv1accountfund.md) - [Withdraw from Trading](https://docs.ekiden.fi/api-reference/account/withdraw-from-trading.md): Initiate a withdrawal from a Trading vault to the Funding vault. - [Get apiv1competitions](https://docs.ekiden.fi/api-reference/competitions/get-apiv1competitions.md) - [Get apiv1competitions 1](https://docs.ekiden.fi/api-reference/competitions/get-apiv1competitions-1.md) - [Get apiv1competitions leaderboard](https://docs.ekiden.fi/api-reference/competitions/get-apiv1competitions-leaderboard.md) - [Conventions](https://docs.ekiden.fi/api-reference/conventions.md) - [Account Data ](https://docs.ekiden.fi/api-reference/integration/account-data.md) - [Account Statistics](https://docs.ekiden.fi/api-reference/integration/account-statistics.md) - [Closing Positions](https://docs.ekiden.fi/api-reference/integration/closing-position.md) - [Configuration](https://docs.ekiden.fi/api-reference/integration/configuration.md): This section lists the production and staging endpoint URLs for REST, WebSocket, and GraphQL connections, helping you configure your client for seamless integration with Ekiden’s services. - [Deposit & Withdraw Funds](https://docs.ekiden.fi/api-reference/integration/deposit-and-withdraw.md) - [Client Initialization](https://docs.ekiden.fi/api-reference/integration/initialization.md): This page explains how to initialize the Ekiden SDK in TypeScript, Python, and Rust. Initialization sets up your client to interact with Ekiden's REST and WebSocket APIs. You can operate in either public mode (read-only access) or authenticated mode (private endpoints and trading). - [Installation](https://docs.ekiden.fi/api-reference/integration/installation.md) - [Leaderboards & Competitions](https://docs.ekiden.fi/api-reference/integration/leaderboards-and-competitions.md) - [Market Data](https://docs.ekiden.fi/api-reference/integration/market-data.md) - [Market Maker Integration Guide](https://docs.ekiden.fi/api-reference/integration/market-maker-integration.md) - [Onboarding Signature & API Auth](https://docs.ekiden.fi/api-reference/integration/onboarding-auth.md) - [Orders](https://docs.ekiden.fi/api-reference/integration/orders.md) - [PnL, Margin & Funding](https://docs.ekiden.fi/api-reference/integration/pnl-margin-fr.md) - [Quick Start](https://docs.ekiden.fi/api-reference/integration/quick-start.md) - [Referrals & Rewards](https://docs.ekiden.fi/api-reference/integration/referrals-and-rewards.md) - [Insurance Pool & ADL](https://docs.ekiden.fi/api-reference/integration/risk-feeds.md) - [Root Whitelist](https://docs.ekiden.fi/api-reference/integration/root-whitelist.md) - [TP/SL, Triggers, and Reduce-Only](https://docs.ekiden.fi/api-reference/integration/tpsl.md) - [Troubleshooting & Best Practices](https://docs.ekiden.fi/api-reference/integration/troubleshooting.md): Description of your new file. - [introduction](https://docs.ekiden.fi/api-reference/introduction.md) - [Get Leaderboard](https://docs.ekiden.fi/api-reference/leaderboard/get-leaderboard.md): Returns a paginated leaderboard of subaccounts ranked by unrealised PnL for the given timeframe. Timeframe is required and relative to now (today, 7d, 30d, or all). Default limit 10, max 100; default offset 0. - [Get Leaderboard Placement](https://docs.ekiden.fi/api-reference/leaderboard/get-leaderboard-placement.md): Placement(s) for the authenticated user. When sub_account is omitted, returns one entry per user trading subaccount; otherwise exactly one entry. When the user has no trading subaccounts, data is an empty array. If the account is not ranked, ranked is false and place is "0". - [Get ADL Alert History](https://docs.ekiden.fi/api-reference/market/get-adl-alert-history.md): Get archived ADL alert snapshots for one symbol or all pools. - [Get ADL Alerts](https://docs.ekiden.fi/api-reference/market/get-adl-alerts.md): Get the latest ADL alert snapshot for one symbol or all pools. - [Get apiv1marketinstruments info](https://docs.ekiden.fi/api-reference/market/get-apiv1marketinstruments-info.md) - [Get Funding Rate History](https://docs.ekiden.fi/api-reference/market/get-funding-rate-history.md): Query for historical funding rates. Each symbol has a different funding interval. For example, if the interval is 8 hours and the current time is UTC 12, then it returns the last funding rate, which settled at UTC 8. - [Get Index Price Kline](https://docs.ekiden.fi/api-reference/market/get-index-price-kline.md): Query for historical index price klines. Charts are returned in groups based on the requested interval. - [Get Insurance Pool](https://docs.ekiden.fi/api-reference/market/get-insurance-pool.md): Get the latest insurance pool snapshot for one symbol or all pools. - [Get Insurance Pool History](https://docs.ekiden.fi/api-reference/market/get-insurance-pool-history.md): Get archived insurance pool snapshots for one symbol or all pools. - [Get Kline](https://docs.ekiden.fi/api-reference/market/get-kline.md): Query for historical klines (also known as candles/candlesticks). Charts are returned in groups based on the requested interval. - [Get Long Short Ratio](https://docs.ekiden.fi/api-reference/market/get-long-short-ratio.md): This refers to the net long and short positions as percentages of all position holders during the selected time. Long account ratio = Number of holders with long positions / Total number of holders Short account ratio = Number of holders with short positions / Total number of holders Long-short acco… - [Get Mark Price Kline](https://docs.ekiden.fi/api-reference/market/get-mark-price-kline.md): Query for historical mark price klines. Charts are returned in groups based on the requested interval. - [Get Open Interest](https://docs.ekiden.fi/api-reference/market/get-open-interest.md): Get historical open interest snapshots for one symbol. Values are returned as closed interval buckets sorted newest first. - [Get Order Price Limit](https://docs.ekiden.fi/api-reference/market/get-order-price-limit.md): Query for order price limit parameters. - [Get Orderbook](https://docs.ekiden.fi/api-reference/market/get-orderbook.md): Query for orderbook depth data. - [Get Recent Trades](https://docs.ekiden.fi/api-reference/market/get-recent-trades.md): Query for recent public trades, optionally filtered by symbol. - [Get Risk Limit](https://docs.ekiden.fi/api-reference/market/get-risk-limit.md): Query for the risk limit margin parameters. - [Get Tickers](https://docs.ekiden.fi/api-reference/market/get-tickers.md): Query for the latest price snapshot, best bid/ask price, and trading volume in the last 24 hours. - [Get Closed PnL](https://docs.ekiden.fi/api-reference/position/get-closed-pnl.md): Query user's closed profit and loss records - [Get Position Info](https://docs.ekiden.fi/api-reference/position/get-position-info.md): Query real-time position data, such as position size, cumulative realized PNL, etc. - [Set leverage](https://docs.ekiden.fi/api-reference/position/set-leverage.md): Set leverage for a symbol - [Set Trading Stop](https://docs.ekiden.fi/api-reference/position/set-trading-stop.md): Set the take profit, stop loss or trailing stop for the position. - [Rate Limits](https://docs.ekiden.fi/api-reference/rate-limits.md) - [Get system configuration and discovery info](https://docs.ekiden.fi/api-reference/system/get-system-configuration-and-discovery-info.md) - [Amend Order](https://docs.ekiden.fi/api-reference/trade/amend-order.md): Amend an existing order - [Batch Amend Orders](https://docs.ekiden.fi/api-reference/trade/batch-amend-orders.md): Amend multiple existing orders in a single request - [Batch Cancel Orders](https://docs.ekiden.fi/api-reference/trade/batch-cancel-orders.md): Cancel multiple existing orders in a single request - [Batch Place Orders](https://docs.ekiden.fi/api-reference/trade/batch-place-orders.md): Create multiple new orders in a single request - [Cancel All Orders](https://docs.ekiden.fi/api-reference/trade/cancel-all-orders.md): Cancel all existing orders for a user - [Cancel Order](https://docs.ekiden.fi/api-reference/trade/cancel-order.md): Cancel an existing order - [Get Open & Closed Orders](https://docs.ekiden.fi/api-reference/trade/get-open-&-closed-orders.md): Primarily query unfilled or partially filled orders in real-time, but also supports querying recent 500 closed status (Cancelled, Filled) orders. Please see the usage of request param open_only. - [Get Order History](https://docs.ekiden.fi/api-reference/trade/get-order-history.md): Query order history. As order creation/cancellation is asynchronous, the data returned from this endpoint may delay. - [Get Trade History](https://docs.ekiden.fi/api-reference/trade/get-trade-history.md): Query users' execution records, sorted by execTime in descending order. - [Place Order](https://docs.ekiden.fi/api-reference/trade/place-order.md): Create a new order - [Authorize Session](https://docs.ekiden.fi/api-reference/user/authorize-session.md): Authorize a session key via delegation - [Authorize User](https://docs.ekiden.fi/api-reference/user/authorize-user.md): Authorize and obtain an access token - [Delete apiv1authorizewhitelist](https://docs.ekiden.fi/api-reference/user/delete-apiv1authorizewhitelist.md) - [Delete apiv1userapi keys](https://docs.ekiden.fi/api-reference/user/delete-apiv1userapi-keys.md) - [Get apiv1authorizewhitelistcheck](https://docs.ekiden.fi/api-reference/user/get-apiv1authorizewhitelistcheck.md) - [Get apiv1userapi keys](https://docs.ekiden.fi/api-reference/user/get-apiv1userapi-keys.md) - [Get apiv1usercompetitions](https://docs.ekiden.fi/api-reference/user/get-apiv1usercompetitions.md) - [Get apiv1usercompetitions leaderboard](https://docs.ekiden.fi/api-reference/user/get-apiv1usercompetitions-leaderboard.md) - [Get apiv1usercompetitions placement](https://docs.ekiden.fi/api-reference/user/get-apiv1usercompetitions-placement.md) - [Get apiv1userreferral](https://docs.ekiden.fi/api-reference/user/get-apiv1userreferral.md) - [Get apiv1userrewards](https://docs.ekiden.fi/api-reference/user/get-apiv1userrewards.md) - [Get Root Account](https://docs.ekiden.fi/api-reference/user/get-root-account.md): Return the Root Account address for the current user - [Get Sub Accounts](https://docs.ekiden.fi/api-reference/user/get-sub-accounts.md): List Sub Accounts under the Root Account - [Post apiv1userapi keys](https://docs.ekiden.fi/api-reference/user/post-apiv1userapi-keys.md) - [Post apiv1userreferral](https://docs.ekiden.fi/api-reference/user/post-apiv1userreferral.md) - [Put apiv1authorizewhitelist](https://docs.ekiden.fi/api-reference/user/put-apiv1authorizewhitelist.md) - [Account Balance](https://docs.ekiden.fi/api-reference/websocket/account_balance.md) - [ADL Alert](https://docs.ekiden.fi/api-reference/websocket/adl_alert.md) - [All Liquidations](https://docs.ekiden.fi/api-reference/websocket/all_liquidations.md) - [Connect](https://docs.ekiden.fi/api-reference/websocket/connect.md) - [Execution](https://docs.ekiden.fi/api-reference/websocket/execution.md) - [Insurance Pool](https://docs.ekiden.fi/api-reference/websocket/insurance_pool.md) - [Kline](https://docs.ekiden.fi/api-reference/websocket/kline.md) - [Order](https://docs.ekiden.fi/api-reference/websocket/order.md) - [Orderbook](https://docs.ekiden.fi/api-reference/websocket/orderbook.md) - [Position](https://docs.ekiden.fi/api-reference/websocket/position.md) - [Ticker](https://docs.ekiden.fi/api-reference/websocket/ticker.md) - [Trade](https://docs.ekiden.fi/api-reference/websocket/trade.md) - [Private](https://docs.ekiden.fi/api-reference/websockets/private.md): The private channel is used for subscribing to user-specific data. - [Public](https://docs.ekiden.fi/api-reference/websockets/public.md): The public channel is used for subscribing to market data. - [Architecture](https://docs.ekiden.fi/architecture.md) - [Fees](https://docs.ekiden.fi/fees.md): Ekiden is built for serious traders. Our fee structure is designed to reward both volume and liquidity. If you’re trading size or consistently making markets, you’ll benefit from lower costs and in many cases, get paid to provide liquidity. Fees are calculated using a standard maker-taker model, wi… - [Introduction](https://docs.ekiden.fi/index.md): Institutional DeFi Trading. Unleashed for the Masses - [Points Program](https://docs.ekiden.fi/points-program.md): How Ekiden XP, referral points, and KOL campaign points should be earned and audited. - [VIP Program](https://docs.ekiden.fi/vip-program.md): Volume-based fee benefits and rewards for active Ekiden traders. ## OpenAPI Specs - [openapi](https://docs.ekiden.fi/api-reference/openapi.json) ## AsyncAPI Specs - [asyncapi](https://docs.ekiden.fi/api-reference/asyncapi.yaml) ## Optional - [Documentation](https://docs.ekiden.fi) - [Community](https://discord.gg/37682NeRb3) - [Blog](https://medium.com/ekidenfi)