# Docs - Docs - [Docs](/en/): Your guide to trading Bitcoin derivatives on the Lightning Network - [Deposit](/en/deposit/): Fund your LN Markets account - [Withdraw](/en/withdraw/): Withdraw funds from LN Markets - [Swap](/en/swap/): Convert between BTC and Synthetic USD - [Perps](/en/perps/): Trade Bitcoin perpetual futures with up to 100x leverage - Chart - [Chart](/en/chart/): Read the market, draw your analysis and manage your trades on the LN Markets chart - [Indicators](/en/chart/indicators/): Add, set up and arrange the chart's 106 indicators, with every indicator's inputs, lines and levels - [Drawing tools](/en/chart/drawings/): Draw lines, channels, Fibonacci and Gann tools, patterns, shapes, notes and measurements on the chart - [Trading on the chart](/en/chart/trading/): See your positions and orders on the Original chart, edit them from there, and follow the economic calendar - [Shortcuts and menus](/en/chart/shortcuts/): Every keyboard shortcut of the Original chart, and what each of its menus holds - qAssets - [qAssets](/en/qassets/): Trade any asset in Bitcoin, at a BTC rate locked on entry. - [qGold Perp](/en/qassets/qgold-perp/): Trade gold in Bitcoin with a perpetual margined and settled in sats. - [qWTI Perp](/en/qassets/qwti-perp/): Trade WTI crude oil in Bitcoin with a perpetual margined and settled in sats. - [qNvidia Perp](/en/qassets/qnvidia-perp/): Trade Nvidia stock in Bitcoin with a perpetual margined and settled in sats. - [qTesla Perp](/en/qassets/qtesla-perp/): Trade Tesla stock in Bitcoin with a perpetual margined and settled in sats. - [qMicron Perp](/en/qassets/qmicron-perp/): Trade Micron stock in Bitcoin with a perpetual margined and settled in sats. - [qNasdaq Perp](/en/qassets/qnasdaq-perp/): Trade the Nasdaq-100 in Bitcoin with a perpetual margined and settled in sats. - [qSpaceX Perp](/en/qassets/qspacex-perp/): Trade SpaceX stock in Bitcoin with a perpetual margined and settled in sats. - [qAnthropic Perp](/en/qassets/qanthropic-perp/): Trade Anthropic stock in Bitcoin with a perpetual margined and settled in sats. - [Balance](/en/balance/): Manage your LN Markets balance - [Wallets](/en/wallets/): Recommended wallets for LN Markets deposits and withdrawals - [Account](/en/account/): Connect and manage your LN Markets account - [Account verification](/en/verification/): Why and how to verify your LN Markets account - [Security](/en/security/): How LN Markets protects your funds - Api - [REST API](/en/api/): LN Markets offers a REST API to integrate with your program or trading bot. - Account - [Get account](/en/api/account/account.getAccount/): Get your account: id, username, balance, synthetic USD balance, fee tier, email and linking public key. - [Get unused Bitcoin address](/en/api/account/account.getBitcoinAddress/): Get your most recently generated Bitcoin deposit address in the format of your settings that has not received a deposit yet. If you have none in that… - [Generate new Bitcoin address](/en/api/account/account.addBitcoinAddress/): Generate a new Bitcoin deposit address. Without format, the address uses the format of your settings. Fails with BAD_REQUEST when you already have 10… - [Get notifications](/en/api/account/account.getNotifications/): Get your notifications: the unread ones by default, the read ones with read=true. Paginated, newest first. - [Mark notifications as read](/en/api/account/account.readNotifications/): Mark all your notifications as read. - Deposits - [Deposit Lightning](/en/api/deposits/account.depositLightning/): Create a Lightning invoice to deposit amount sats. Returns the deposit depositId and the invoice (paymentRequest), which expires after 24 hours. With… - [Get on-chain deposits](/en/api/deposits/account.getOnChainDeposits/): Get your on-chain deposits, optionally filtered by status, with their confirmations. Paginated, newest first. - [Get Lightning deposits](/en/api/deposits/account.getLightningDeposits/): Get your Lightning deposits, optionally only the settled (settled=true) or unsettled (settled=false) ones. Paginated, newest first. - Futures Cross - [Place order](/en/api/futures-cross/futures.cross.newOrder/): Deprecated: /futures is being replaced by the /perp API; this route has no /perp equivalent yet. Place a new BTC/USD cross margin order. Returns the… - [Cancel order](/en/api/futures-cross/futures.cross.cancelOrder/): Deprecated: /futures is being replaced by the /perp API; this route has no /perp equivalent yet. Cancel an open cross order by its id. Returns the… - [Cancel all orders](/en/api/futures-cross/futures.cross.cancelAllOrders/): Deprecated: /futures is being replaced by the /perp API; this route has no /perp equivalent yet. Cancel all your open cross orders. Returns the canceled… - [Close position](/en/api/futures-cross/futures.cross.closePosition/): Deprecated: /futures is being replaced by the /perp API; this route has no /perp equivalent yet. Close the running cross margin position with a market… - [Get open orders](/en/api/futures-cross/futures.cross.getOpenOrders/): Deprecated: /futures is being replaced by the /perp API; this route has no /perp equivalent yet. Get all your cross orders that are still open. - [Get position](/en/api/futures-cross/futures.cross.getPosition/): Deprecated: /futures is being replaced by the /perp API; this route has no /perp equivalent yet. Get your current BTC/USD cross margin position. - [Get filled orders](/en/api/futures-cross/futures.cross.getFilledOrders/): Deprecated: /futures is being replaced by the /perp API; this route has no /perp equivalent yet. Get your filled cross orders. Paginated, newest first… - [Deposit to cross margin](/en/api/futures-cross/futures.cross.deposit/): Deprecated: /futures is being replaced by the /perp API; this route has no /perp equivalent yet. Move amount sats from your balance to the cross margin… - [Withdraw from cross margin](/en/api/futures-cross/futures.cross.withdraw/): Deprecated: /futures is being replaced by the /perp API; this route has no /perp equivalent yet. Move amount sats from the cross margin account back to… - [Set leverage](/en/api/futures-cross/futures.cross.setLeverage/): Deprecated: /futures is being replaced by the /perp API; this route has no /perp equivalent yet. Set the leverage of the cross margin position. If the… - [Get funding fees](/en/api/futures-cross/futures.cross.getFundingFees/): Deprecated: /futures is being replaced by the /perp API; this route has no /perp equivalent yet. Get the funding fees of your cross margin position, one… - [Get transfers](/en/api/futures-cross/futures.cross.getTransfers/): Deprecated: /futures is being replaced by the /perp API; this route has no /perp equivalent yet. Get the history of your deposits to and withdrawals from… - Futures Data - [Get ticker](/en/api/futures-data/futures.getTicker/): Deprecated: use GET /perp/ticker instead. Get the BTC/USD ticker: mark price (index), last price, executable prices by order size, 24h change and volume… - [Get candles](/en/api/futures-data/futures.getCandles/): Deprecated: use GET /perp/candles instead. Get the BTC/USD candles (OHLC) at the range resolution, 1 minute by default. Paginated, newest first. - [Get funding settlements](/en/api/futures-data/futures.getFundingSettlements/): Deprecated: use GET /perp/funding-settlements instead. Get the BTC/USD funding settlement history. A settlement happens every 8 hours (00:00, 08:00, 16:00… - [Get leaderboard](/en/api/futures-data/futures.getLeaderboard/): Deprecated: /futures is being replaced by the /perp API; this route has no /perp equivalent yet. Get the top 10 users by P&L over the last day, 7 days, 30… - Futures Isolated - [Place trade](/en/api/futures-isolated/futures.isolated.newTrade/): Deprecated: use POST /perp/isolated/trade instead. Place a new BTC/USD isolated trade. Returns the trade. Limit order: type="limit" and price must be… - [Cancel trade](/en/api/futures-isolated/futures.isolated.cancelTrade/): Deprecated: use POST /perp/isolated/trade/cancel instead. Cancel an open trade (a limit order not filled yet). Returns the canceled trade. - [Cancel all trades](/en/api/futures-isolated/futures.isolated.cancelAllTrades/): Deprecated: use POST /perp/isolated/trades/cancel-all instead. Cancel all your open BTC/USD trades. Returns the canceled trades. - [Close trade](/en/api/futures-isolated/futures.isolated.closeTrade/): Deprecated: use POST /perp/isolated/trade/close instead. Close a running trade and realize its P&L. Returns the closed trade. - [Get open trades](/en/api/futures-isolated/futures.isolated.getOpenTrades/): Deprecated: use GET /perp/isolated/trades/open instead. Get your open BTC/USD trades: limit orders not filled yet, newest first. - [Get running trades](/en/api/futures-isolated/futures.isolated.getRunningTrades/): Deprecated: use GET /perp/isolated/trades/running instead. Get your running BTC/USD trades, newest first. Their pl is the unrealized P&L, valued at the… - [Get closed trades](/en/api/futures-isolated/futures.isolated.getClosedTrades/): Deprecated: use GET /perp/isolated/trades/closed instead. Get your closed BTC/USD trades. Paginated, newest first; from and to filter on the close time. - [Get canceled trades](/en/api/futures-isolated/futures.isolated.getCanceledTrades/): Deprecated: use GET /perp/isolated/trades/canceled instead. Get your canceled BTC/USD trades. Paginated, newest first; from and to filter on the cancel… - [Add margin to trade](/en/api/futures-isolated/futures.isolated.addMargin/): Deprecated: use POST /perp/isolated/trade/add-margin instead. Move amount sats from your balance to the margin of a running trade. This lowers the trade… - [Cash-in trade](/en/api/futures-isolated/futures.isolated.cashIn/): Deprecated: use POST /perp/isolated/trade/cash-in instead. Move amount sats from a running trade to your balance. Funds are first taken from the trade's… - [Remove stoploss](/en/api/futures-isolated/futures.isolated.removeStoploss/): Deprecated: use DELETE /perp/isolated/trade/stoploss instead. Remove the stoploss from an open or running trade, fixed or trailing. The trade id is passed… - [Update stoploss](/en/api/futures-isolated/futures.isolated.updateStoploss/): Deprecated: use PUT /perp/isolated/trade/stoploss instead. Set the stoploss of an open or running trade. With mode: fixed (default) value is a stop price… - [Remove takeprofit](/en/api/futures-isolated/futures.isolated.removeTakeprofit/): Deprecated: use DELETE /perp/isolated/trade/takeprofit instead. Remove the takeprofit from an open or running trade. The trade id is passed as a query… - [Update takeprofit](/en/api/futures-isolated/futures.isolated.updateTakeprofit/): Deprecated: use PUT /perp/isolated/trade/takeprofit instead. Set the takeprofit price of an open or running trade. 0 removes the takeprofit. Returns the… - [Get funding fees](/en/api/futures-isolated/futures.isolated.getFundingFees/): Deprecated: use GET /perp/isolated/funding-fees instead. Get the funding fees of your BTC/USD isolated trades, or of one trade with tradeId: one row per… - Markets - [Get markets](/en/api/markets/markets.list/): List the markets available to the caller: the released markets, plus the ones an API key grants access to. Their instrument and pair name a market on the… - Perp Data - [Get ticker](/en/api/perp-data/perp.getTicker/): Get the ticker of a perpetual market: mark price, last price, executable prices by order size, 24h change and volume, the next funding and quanto… - [Get candles](/en/api/perp-data/perp.getCandles/): Get the candles (OHLC) of a perpetual market at the range resolution, 1 minute by default. Paginated, newest first. An unknown market, or one you have no… - [Get funding settlements](/en/api/perp-data/perp.getFundingSettlements/): Get the funding settlement history of a perpetual market. Paginated, newest first. An unknown market, or one you have no access to, fails with NOT_FOUND… - Perp Isolated - [Get trade](/en/api/perp-isolated/perp.isolated.getTrade/): Get one of your trades in any state, of any perpetual market, by its id or its clientId (pass exactly one). A running trade pl is the unrealized P&L… - [Place trade](/en/api/perp-isolated/perp.isolated.newTrade/): Place a new isolated trade on a perpetual market. Returns the trade: running for a market order, open for a limit order until it fills. Limit order… - [Cancel trade](/en/api/perp-isolated/perp.isolated.cancelTrade/): Cancel an open trade (a limit order not filled yet). Its margin and maintenance margin go back to your balance. Returns the canceled trade. - [Cancel all trades](/en/api/perp-isolated/perp.isolated.cancelAllTrades/): Cancel all your open trades of a perpetual market. Returns the canceled trades, an empty list when there were none. - [Close trade](/en/api/perp-isolated/perp.isolated.closeTrade/): Close a running trade at the bid (long) or ask (short) price for its size. Its margin plus P&L, and the maintenance margin left after the closing fee, are… - [Get open trades](/en/api/perp-isolated/perp.isolated.getOpenTrades/): Get your open trades (limit orders not filled yet), newest first: of every perpetual market, or of one market when instrument and pair are both passed. - [Get running trades](/en/api/perp-isolated/perp.isolated.getRunningTrades/): Get your running trades, newest first: of every perpetual market, or of one market when instrument and pair are both passed. Their pl is the unrealized… - [Get closed trades](/en/api/perp-isolated/perp.isolated.getClosedTrades/): Get your closed trades: of every perpetual market, or of one market when instrument and pair are both passed. Paginated, newest first; from and to filter… - [Get canceled trades](/en/api/perp-isolated/perp.isolated.getCanceledTrades/): Get your canceled trades: of every perpetual market, or of one market when instrument and pair are both passed. Paginated, newest first; from and to… - [Add margin to trade](/en/api/perp-isolated/perp.isolated.addMargin/): Move amount sats from your balance to the margin of a running trade. This lowers the trade leverage and moves its liquidation price away, decreasing risk… - [Cash-in trade](/en/api/perp-isolated/perp.isolated.cashIn/): Move amount sats from a running trade to your balance. Funds are first taken from the trade's P&L (if any), valued at the Mark price, then from its… - [Remove stoploss](/en/api/perp-isolated/perp.isolated.removeStoploss/): Remove the stoploss from an open or running trade, fixed or trailing. The trade id and the market keys are passed as query parameters. Returns the updated… - [Update stoploss](/en/api/perp-isolated/perp.isolated.updateStoploss/): Set the stoploss of an open or running trade. With mode: fixed value is a stop price; with mode: trailing value is a trailing distance (fraction of price… - [Remove takeprofit](/en/api/perp-isolated/perp.isolated.removeTakeprofit/): Remove the takeprofit from an open or running trade. The trade id and the market keys are passed as query parameters. Returns the updated trade. - [Update takeprofit](/en/api/perp-isolated/perp.isolated.updateTakeprofit/): Set the takeprofit price of an open or running trade. Returns the updated trade. To remove the takeprofit, use DELETE /perp/isolated/trade/takeprofit. - [Get funding fees](/en/api/perp-isolated/perp.isolated.getFundingFees/): Get the funding and quanto adjustment fees of your isolated trades, one row per trade and funding settlement: of every perpetual market, or of one market… - Synthetic USD - [Create swap](/en/api/synthetic-usd/syntheticUsd.newSwap/): Swap inAmount between your BTC and synthetic USD balances. BTC to USD swaps fill at the best bid, USD to BTC swaps at the best ask (see GET… - [Get swaps](/en/api/synthetic-usd/syntheticUsd.getSwaps/): Get your swaps between BTC and synthetic USD. Paginated, newest first. - [Get best price](/en/api/synthetic-usd/syntheticUsd.getBestPrice/): Get the best ask and bid of the BTC/USD order book: the prices a swap fills at right now. - Utilities - [Ping](/en/api/utilities/ping/): Check that the API is reachable. Always answers pong. - [Get server time](/en/api/utilities/time/): Get the current server time. Signed requests need an LNM-ACCESS-TIMESTAMP within 30 seconds of it. - Withdrawals - [Withdraw Lightning](/en/api/withdrawals/account.withdrawLightning/): Pay a Lightning invoice from your balance. The maxFees amount (0.5% of the amount, at least 100 sats) is reserved from your balance to pay the routing… - [Withdraw on-chain](/en/api/withdrawals/account.withdrawOnChain/): Request an on-chain withdrawal of amount sats, between 10,000,000 (0.1 BTC) and 500,000,000 (5 BTC). The request is reviewed and processed asynchronously… - [Get on-chain withdrawals](/en/api/withdrawals/account.getOnChainWithdrawals/): Get your on-chain withdrawals, optionally filtered by status. Paginated, newest first. - [Get Lightning withdrawals](/en/api/withdrawals/account.getLightningWithdrawals/): Get your Lightning withdrawals, optionally filtered by status. Paginated, newest first. - Stream - [Stream API](/en/stream/): Realtime market data and private events over JSON-RPC 2.0 WebSocket - [Connection](/en/stream/connection/): Connection, limits, and response envelope - [Authentication](/en/stream/authentication/): Authenticate with an API key + secret + passphrase - Methods - [Authenticate](/en/stream/methods/authenticate/): Authenticate via API key HMAC signature - [Hello](/en/stream/methods/hello/): Client identification and server version - [Ping](/en/stream/methods/ping/): Health check - [Subscribe](/en/stream/methods/subscribe/): Subscribe to topics - [Time](/en/stream/methods/time/): Server time in milliseconds since epoch - [Unsubscribe](/en/stream/methods/unsubscribe/): Unsubscribe from topics - [Unsubscribe All](/en/stream/methods/unsubscribeall/): Unsubscribe from all topics - [Whoami](/en/stream/methods/whoami/): Get current session - Subscriptions - [Announcements](/en/stream/subscriptions/announcements/): Platform announcements (add and remove) - [Buckets](/en/stream/subscriptions/futures-inverse-btc_usd-buckets/): Inverse futures volume ladder bucket updates: executable bid and ask prices by order size; market orders fill at them and order levels trigger on them - [Cross Orders](/en/stream/subscriptions/futures-inverse-btc_usd-cross-orders/): Inverse futures cross-margin order events (new, limit, canceled) - [Cross Position](/en/stream/subscriptions/futures-inverse-btc_usd-cross-position/): Inverse futures cross-margin position state updates (new, limit, cancel, leverage, deposit, withdraw, liquidation, funding) - [Funding](/en/stream/subscriptions/futures-inverse-btc_usd-funding/): Inverse futures funding rate updates with the current settled rate and time - [Index](/en/stream/subscriptions/futures-inverse-btc_usd-index/): Inverse futures mark price updates (index field) - [Isolated Trades](/en/stream/subscriptions/futures-inverse-btc_usd-isolated-trades/): Inverse futures isolated-margin trade lifecycle events (open, filled, closed, canceled, liquidation, stoploss, takeprofit, funding) - [Last Price](/en/stream/subscriptions/futures-inverse-btc_usd-lastprice/): Inverse futures last price updates: weighted average of the reference exchanges' perpetual last trade prices (display only) - [OHLC](/en/stream/subscriptions/futures-inverse-btc_usd-ohlc/): OHLC candle updates - [Ticker](/en/stream/subscriptions/futures-inverse-btc_usd-ticker/): Inverse futures aggregated ticker with last price, mark price (index field), and funding - [Inverse Perp Btc Usd Buckets](/en/stream/subscriptions/inverse_perp-btc_usd-buckets/): Volume ladder bucket updates: executable bid and ask prices by order size; market orders fill at them and order levels trigger on them - [Inverse Perp Btc Usd Funding](/en/stream/subscriptions/inverse_perp-btc_usd-funding/): Funding rate updates with the current settled rate and time - [Inverse Perp Btc Usd Isolated Trades](/en/stream/subscriptions/inverse_perp-btc_usd-isolated-trades/): Isolated-margin trade lifecycle events (open, filled, closed, canceled, liquidation, stoploss, takeprofit, funding) - [Inverse Perp Btc Usd Last Price](/en/stream/subscriptions/inverse_perp-btc_usd-lastprice/): Last price updates: weighted average of the reference exchanges' perpetual last trade prices (display only) - [Inverse Perp Btc Usd Mark](/en/stream/subscriptions/inverse_perp-btc_usd-mark/): Mark price updates - [OHLC](/en/stream/subscriptions/inverse_perp-btc_usd-ohlc/): OHLC candle updates - [Inverse Perp Btc Usd Ticker](/en/stream/subscriptions/inverse_perp-btc_usd-ticker/): Aggregated ticker with last price, mark, and funding - [Quanto Perp Ant Usdt Buckets](/en/stream/subscriptions/quanto_perp-ant_usdt-buckets/): Volume ladder bucket updates: executable bid and ask prices by order size; market orders fill at them and order levels trigger on them - [Quanto Perp Ant Usdt Funding](/en/stream/subscriptions/quanto_perp-ant_usdt-funding/): Funding rate updates with the current settled rate and time - [Quanto Perp Ant Usdt Isolated Trades](/en/stream/subscriptions/quanto_perp-ant_usdt-isolated-trades/): Isolated-margin trade lifecycle events (open, filled, closed, canceled, liquidation, stoploss, takeprofit, funding) - [Quanto Perp Ant Usdt Last Price](/en/stream/subscriptions/quanto_perp-ant_usdt-lastprice/): Last price updates: weighted average of the reference exchanges' perpetual last trade prices (display only) - [Quanto Perp Ant Usdt Mark](/en/stream/subscriptions/quanto_perp-ant_usdt-mark/): Mark price updates - [OHLC](/en/stream/subscriptions/quanto_perp-ant_usdt-ohlc/): OHLC candle updates - [Quanto Perp Ant Usdt Ticker](/en/stream/subscriptions/quanto_perp-ant_usdt-ticker/): Aggregated ticker with last price, mark, and funding - [Quanto Perp Mu Usdt Buckets](/en/stream/subscriptions/quanto_perp-mu_usdt-buckets/): Volume ladder bucket updates: executable bid and ask prices by order size; market orders fill at them and order levels trigger on them - [Quanto Perp Mu Usdt Funding](/en/stream/subscriptions/quanto_perp-mu_usdt-funding/): Funding rate updates with the current settled rate and time - [Quanto Perp Mu Usdt Isolated Trades](/en/stream/subscriptions/quanto_perp-mu_usdt-isolated-trades/): Isolated-margin trade lifecycle events (open, filled, closed, canceled, liquidation, stoploss, takeprofit, funding) - [Quanto Perp Mu Usdt Last Price](/en/stream/subscriptions/quanto_perp-mu_usdt-lastprice/): Last price updates: weighted average of the reference exchanges' perpetual last trade prices (display only) - [Quanto Perp Mu Usdt Mark](/en/stream/subscriptions/quanto_perp-mu_usdt-mark/): Mark price updates - [OHLC](/en/stream/subscriptions/quanto_perp-mu_usdt-ohlc/): OHLC candle updates - [Quanto Perp Mu Usdt Ticker](/en/stream/subscriptions/quanto_perp-mu_usdt-ticker/): Aggregated ticker with last price, mark, and funding - [Quanto Perp Nvda Usdt Buckets](/en/stream/subscriptions/quanto_perp-nvda_usdt-buckets/): Volume ladder bucket updates: executable bid and ask prices by order size; market orders fill at them and order levels trigger on them - [Quanto Perp Nvda Usdt Funding](/en/stream/subscriptions/quanto_perp-nvda_usdt-funding/): Funding rate updates with the current settled rate and time - [Quanto Perp Nvda Usdt Isolated Trades](/en/stream/subscriptions/quanto_perp-nvda_usdt-isolated-trades/): Isolated-margin trade lifecycle events (open, filled, closed, canceled, liquidation, stoploss, takeprofit, funding) - [Quanto Perp Nvda Usdt Last Price](/en/stream/subscriptions/quanto_perp-nvda_usdt-lastprice/): Last price updates: weighted average of the reference exchanges' perpetual last trade prices (display only) - [Quanto Perp Nvda Usdt Mark](/en/stream/subscriptions/quanto_perp-nvda_usdt-mark/): Mark price updates - [OHLC](/en/stream/subscriptions/quanto_perp-nvda_usdt-ohlc/): OHLC candle updates - [Quanto Perp Nvda Usdt Ticker](/en/stream/subscriptions/quanto_perp-nvda_usdt-ticker/): Aggregated ticker with last price, mark, and funding - [Quanto Perp Qqq Usdt Buckets](/en/stream/subscriptions/quanto_perp-qqq_usdt-buckets/): Volume ladder bucket updates: executable bid and ask prices by order size; market orders fill at them and order levels trigger on them - [Quanto Perp Qqq Usdt Funding](/en/stream/subscriptions/quanto_perp-qqq_usdt-funding/): Funding rate updates with the current settled rate and time - [Quanto Perp Qqq Usdt Isolated Trades](/en/stream/subscriptions/quanto_perp-qqq_usdt-isolated-trades/): Isolated-margin trade lifecycle events (open, filled, closed, canceled, liquidation, stoploss, takeprofit, funding) - [Quanto Perp Qqq Usdt Last Price](/en/stream/subscriptions/quanto_perp-qqq_usdt-lastprice/): Last price updates: weighted average of the reference exchanges' perpetual last trade prices (display only) - [Quanto Perp Qqq Usdt Mark](/en/stream/subscriptions/quanto_perp-qqq_usdt-mark/): Mark price updates - [OHLC](/en/stream/subscriptions/quanto_perp-qqq_usdt-ohlc/): OHLC candle updates - [Quanto Perp Qqq Usdt Ticker](/en/stream/subscriptions/quanto_perp-qqq_usdt-ticker/): Aggregated ticker with last price, mark, and funding - [Quanto Perp Spcx Usdt Buckets](/en/stream/subscriptions/quanto_perp-spcx_usdt-buckets/): Volume ladder bucket updates: executable bid and ask prices by order size; market orders fill at them and order levels trigger on them - [Quanto Perp Spcx Usdt Funding](/en/stream/subscriptions/quanto_perp-spcx_usdt-funding/): Funding rate updates with the current settled rate and time - [Quanto Perp Spcx Usdt Isolated Trades](/en/stream/subscriptions/quanto_perp-spcx_usdt-isolated-trades/): Isolated-margin trade lifecycle events (open, filled, closed, canceled, liquidation, stoploss, takeprofit, funding) - [Quanto Perp Spcx Usdt Last Price](/en/stream/subscriptions/quanto_perp-spcx_usdt-lastprice/): Last price updates: weighted average of the reference exchanges' perpetual last trade prices (display only) - [Quanto Perp Spcx Usdt Mark](/en/stream/subscriptions/quanto_perp-spcx_usdt-mark/): Mark price updates - [OHLC](/en/stream/subscriptions/quanto_perp-spcx_usdt-ohlc/): OHLC candle updates - [Quanto Perp Spcx Usdt Ticker](/en/stream/subscriptions/quanto_perp-spcx_usdt-ticker/): Aggregated ticker with last price, mark, and funding - [Quanto Perp Tsla Usdt Buckets](/en/stream/subscriptions/quanto_perp-tsla_usdt-buckets/): Volume ladder bucket updates: executable bid and ask prices by order size; market orders fill at them and order levels trigger on them - [Quanto Perp Tsla Usdt Funding](/en/stream/subscriptions/quanto_perp-tsla_usdt-funding/): Funding rate updates with the current settled rate and time - [Quanto Perp Tsla Usdt Isolated Trades](/en/stream/subscriptions/quanto_perp-tsla_usdt-isolated-trades/): Isolated-margin trade lifecycle events (open, filled, closed, canceled, liquidation, stoploss, takeprofit, funding) - [Quanto Perp Tsla Usdt Last Price](/en/stream/subscriptions/quanto_perp-tsla_usdt-lastprice/): Last price updates: weighted average of the reference exchanges' perpetual last trade prices (display only) - [Quanto Perp Tsla Usdt Mark](/en/stream/subscriptions/quanto_perp-tsla_usdt-mark/): Mark price updates - [OHLC](/en/stream/subscriptions/quanto_perp-tsla_usdt-ohlc/): OHLC candle updates - [Quanto Perp Tsla Usdt Ticker](/en/stream/subscriptions/quanto_perp-tsla_usdt-ticker/): Aggregated ticker with last price, mark, and funding - [Quanto Perp Wti Usdt Buckets](/en/stream/subscriptions/quanto_perp-wti_usdt-buckets/): Volume ladder bucket updates: executable bid and ask prices by order size; market orders fill at them and order levels trigger on them - [Quanto Perp Wti Usdt Funding](/en/stream/subscriptions/quanto_perp-wti_usdt-funding/): Funding rate updates with the current settled rate and time - [Quanto Perp Wti Usdt Isolated Trades](/en/stream/subscriptions/quanto_perp-wti_usdt-isolated-trades/): Isolated-margin trade lifecycle events (open, filled, closed, canceled, liquidation, stoploss, takeprofit, funding) - [Quanto Perp Wti Usdt Last Price](/en/stream/subscriptions/quanto_perp-wti_usdt-lastprice/): Last price updates: weighted average of the reference exchanges' perpetual last trade prices (display only) - [Quanto Perp Wti Usdt Mark](/en/stream/subscriptions/quanto_perp-wti_usdt-mark/): Mark price updates - [OHLC](/en/stream/subscriptions/quanto_perp-wti_usdt-ohlc/): OHLC candle updates - [Quanto Perp Wti Usdt Ticker](/en/stream/subscriptions/quanto_perp-wti_usdt-ticker/): Aggregated ticker with last price, mark, and funding - [Quanto Perp Xau Usdt Buckets](/en/stream/subscriptions/quanto_perp-xau_usdt-buckets/): Volume ladder bucket updates: executable bid and ask prices by order size; market orders fill at them and order levels trigger on them - [Quanto Perp Xau Usdt Funding](/en/stream/subscriptions/quanto_perp-xau_usdt-funding/): Funding rate updates with the current settled rate and time - [Quanto Perp Xau Usdt Isolated Trades](/en/stream/subscriptions/quanto_perp-xau_usdt-isolated-trades/): Isolated-margin trade lifecycle events (open, filled, closed, canceled, liquidation, stoploss, takeprofit, funding) - [Quanto Perp Xau Usdt Last Price](/en/stream/subscriptions/quanto_perp-xau_usdt-lastprice/): Last price updates: weighted average of the reference exchanges' perpetual last trade prices (display only) - [Quanto Perp Xau Usdt Mark](/en/stream/subscriptions/quanto_perp-xau_usdt-mark/): Mark price updates - [OHLC](/en/stream/subscriptions/quanto_perp-xau_usdt-ohlc/): OHLC candle updates - [Quanto Perp Xau Usdt Ticker](/en/stream/subscriptions/quanto_perp-xau_usdt-ticker/): Aggregated ticker with last price, mark, and funding - [Deposit](/en/stream/subscriptions/wallet-deposit/): Wallet deposit events - [Withdrawal](/en/stream/subscriptions/wallet-withdrawal/): Wallet withdrawal events - [Topics](/en/stream/topics/): Every Stream API topic available for subscribe / unsubscribe - [Errors](/en/stream/errors/): JSON-RPC error codes returned by the Stream API # Docs - Docs - [Docs](/es/): Tu guía para operar derivados de Bitcoin en la Lightning Network - [Depósito](/es/deposit/): Fondea tu cuenta de LN Markets - [Retiro](/es/withdraw/): Retira fondos de LN Markets - [Swap](/es/swap/): Convierte entre BTC y USD Sintético - [Perpetuos](/es/perps/): Opera futuros perpetuos de Bitcoin con hasta 100x de apalancamiento - Gráfico - [Gráfico](/es/chart/): Lee el mercado, dibuja tu análisis y gestiona tus operaciones en el gráfico de LN Markets - [Indicadores](/es/chart/indicators/): Añade, configura y organiza los 106 indicadores del gráfico, con los parámetros, las líneas y los niveles de cada uno - [Herramientas de dibujo](/es/chart/drawings/): Dibuja líneas, canales, herramientas de Fibonacci y Gann, patrones, formas, notas y medidas en el gráfico - [Operar en el gráfico](/es/chart/trading/): Tus posiciones y órdenes en el gráfico Original, cómo se editan desde ahí y el calendario económico - [Atajos y menús](/es/chart/shortcuts/): Todos los atajos de teclado del gráfico Original, y lo que contiene cada uno de sus menús - qAssets - [qAssets](/es/qassets/): Opera cualquier activo en Bitcoin, con una tasa BTC fijada al entrar. - [qGold Perp](/es/qassets/qgold-perp/): Opera oro en Bitcoin con un perpetuo con margen y liquidación en sats. - [qWTI Perp](/es/qassets/qwti-perp/): Trade WTI crude oil in Bitcoin with a perpetual margined and settled in sats. - [qNvidia Perp](/es/qassets/qnvidia-perp/): Trade Nvidia stock in Bitcoin with a perpetual margined and settled in sats. - [qTesla Perp](/es/qassets/qtesla-perp/): Trade Tesla stock in Bitcoin with a perpetual margined and settled in sats. - [qMicron Perp](/es/qassets/qmicron-perp/): Trade Micron stock in Bitcoin with a perpetual margined and settled in sats. - [qNasdaq Perp](/es/qassets/qnasdaq-perp/): Trade the Nasdaq-100 in Bitcoin with a perpetual margined and settled in sats. - [qSpaceX Perp](/es/qassets/qspacex-perp/): Trade SpaceX stock in Bitcoin with a perpetual margined and settled in sats. - [qAnthropic Perp](/es/qassets/qanthropic-perp/): Trade Anthropic stock in Bitcoin with a perpetual margined and settled in sats. - [Balance](/es/balance/): Gestiona tu balance en LN Markets - [Wallets](/es/wallets/): Wallets recomendadas para depósitos y retiros en LN Markets - [Cuenta](/es/account/): Conecta y gestiona tu cuenta de LN Markets - [Verificación de cuenta](/es/verification/): Por qué y cómo verificar tu cuenta de LN Markets - [Seguridad](/es/security/): Cómo LN Markets protege tus fondos - Api - [REST API](/es/api/): LN Markets offers a REST API to integrate with your program or trading bot. - Account - [Get account](/es/api/account/account.getAccount/): Get your account: id, username, balance, synthetic USD balance, fee tier, email and linking public key. - [Get unused Bitcoin address](/es/api/account/account.getBitcoinAddress/): Get your most recently generated Bitcoin deposit address in the format of your settings that has not received a deposit yet. If you have none in that… - [Generate new Bitcoin address](/es/api/account/account.addBitcoinAddress/): Generate a new Bitcoin deposit address. Without format, the address uses the format of your settings. Fails with BAD_REQUEST when you already have 10… - [Get notifications](/es/api/account/account.getNotifications/): Get your notifications: the unread ones by default, the read ones with read=true. Paginated, newest first. - [Mark notifications as read](/es/api/account/account.readNotifications/): Mark all your notifications as read. - Deposits - [Deposit Lightning](/es/api/deposits/account.depositLightning/): Create a Lightning invoice to deposit amount sats. Returns the deposit depositId and the invoice (paymentRequest), which expires after 24 hours. With… - [Get on-chain deposits](/es/api/deposits/account.getOnChainDeposits/): Get your on-chain deposits, optionally filtered by status, with their confirmations. Paginated, newest first. - [Get Lightning deposits](/es/api/deposits/account.getLightningDeposits/): Get your Lightning deposits, optionally only the settled (settled=true) or unsettled (settled=false) ones. Paginated, newest first. - Futures Cross - [Place order](/es/api/futures-cross/futures.cross.newOrder/): Deprecated: /futures is being replaced by the /perp API; this route has no /perp equivalent yet. Place a new BTC/USD cross margin order. Returns the… - [Cancel order](/es/api/futures-cross/futures.cross.cancelOrder/): Deprecated: /futures is being replaced by the /perp API; this route has no /perp equivalent yet. Cancel an open cross order by its id. Returns the… - [Cancel all orders](/es/api/futures-cross/futures.cross.cancelAllOrders/): Deprecated: /futures is being replaced by the /perp API; this route has no /perp equivalent yet. Cancel all your open cross orders. Returns the canceled… - [Close position](/es/api/futures-cross/futures.cross.closePosition/): Deprecated: /futures is being replaced by the /perp API; this route has no /perp equivalent yet. Close the running cross margin position with a market… - [Get open orders](/es/api/futures-cross/futures.cross.getOpenOrders/): Deprecated: /futures is being replaced by the /perp API; this route has no /perp equivalent yet. Get all your cross orders that are still open. - [Get position](/es/api/futures-cross/futures.cross.getPosition/): Deprecated: /futures is being replaced by the /perp API; this route has no /perp equivalent yet. Get your current BTC/USD cross margin position. - [Get filled orders](/es/api/futures-cross/futures.cross.getFilledOrders/): Deprecated: /futures is being replaced by the /perp API; this route has no /perp equivalent yet. Get your filled cross orders. Paginated, newest first… - [Deposit to cross margin](/es/api/futures-cross/futures.cross.deposit/): Deprecated: /futures is being replaced by the /perp API; this route has no /perp equivalent yet. Move amount sats from your balance to the cross margin… - [Withdraw from cross margin](/es/api/futures-cross/futures.cross.withdraw/): Deprecated: /futures is being replaced by the /perp API; this route has no /perp equivalent yet. Move amount sats from the cross margin account back to… - [Set leverage](/es/api/futures-cross/futures.cross.setLeverage/): Deprecated: /futures is being replaced by the /perp API; this route has no /perp equivalent yet. Set the leverage of the cross margin position. If the… - [Get funding fees](/es/api/futures-cross/futures.cross.getFundingFees/): Deprecated: /futures is being replaced by the /perp API; this route has no /perp equivalent yet. Get the funding fees of your cross margin position, one… - [Get transfers](/es/api/futures-cross/futures.cross.getTransfers/): Deprecated: /futures is being replaced by the /perp API; this route has no /perp equivalent yet. Get the history of your deposits to and withdrawals from… - Futures Data - [Get ticker](/es/api/futures-data/futures.getTicker/): Deprecated: use GET /perp/ticker instead. Get the BTC/USD ticker: mark price (index), last price, executable prices by order size, 24h change and volume… - [Get candles](/es/api/futures-data/futures.getCandles/): Deprecated: use GET /perp/candles instead. Get the BTC/USD candles (OHLC) at the range resolution, 1 minute by default. Paginated, newest first. - [Get funding settlements](/es/api/futures-data/futures.getFundingSettlements/): Deprecated: use GET /perp/funding-settlements instead. Get the BTC/USD funding settlement history. A settlement happens every 8 hours (00:00, 08:00, 16:00… - [Get leaderboard](/es/api/futures-data/futures.getLeaderboard/): Deprecated: /futures is being replaced by the /perp API; this route has no /perp equivalent yet. Get the top 10 users by P&L over the last day, 7 days, 30… - Futures Isolated - [Place trade](/es/api/futures-isolated/futures.isolated.newTrade/): Deprecated: use POST /perp/isolated/trade instead. Place a new BTC/USD isolated trade. Returns the trade. Limit order: type="limit" and price must be… - [Cancel trade](/es/api/futures-isolated/futures.isolated.cancelTrade/): Deprecated: use POST /perp/isolated/trade/cancel instead. Cancel an open trade (a limit order not filled yet). Returns the canceled trade. - [Cancel all trades](/es/api/futures-isolated/futures.isolated.cancelAllTrades/): Deprecated: use POST /perp/isolated/trades/cancel-all instead. Cancel all your open BTC/USD trades. Returns the canceled trades. - [Close trade](/es/api/futures-isolated/futures.isolated.closeTrade/): Deprecated: use POST /perp/isolated/trade/close instead. Close a running trade and realize its P&L. Returns the closed trade. - [Get open trades](/es/api/futures-isolated/futures.isolated.getOpenTrades/): Deprecated: use GET /perp/isolated/trades/open instead. Get your open BTC/USD trades: limit orders not filled yet, newest first. - [Get running trades](/es/api/futures-isolated/futures.isolated.getRunningTrades/): Deprecated: use GET /perp/isolated/trades/running instead. Get your running BTC/USD trades, newest first. Their pl is the unrealized P&L, valued at the… - [Get closed trades](/es/api/futures-isolated/futures.isolated.getClosedTrades/): Deprecated: use GET /perp/isolated/trades/closed instead. Get your closed BTC/USD trades. Paginated, newest first; from and to filter on the close time. - [Get canceled trades](/es/api/futures-isolated/futures.isolated.getCanceledTrades/): Deprecated: use GET /perp/isolated/trades/canceled instead. Get your canceled BTC/USD trades. Paginated, newest first; from and to filter on the cancel… - [Add margin to trade](/es/api/futures-isolated/futures.isolated.addMargin/): Deprecated: use POST /perp/isolated/trade/add-margin instead. Move amount sats from your balance to the margin of a running trade. This lowers the trade… - [Cash-in trade](/es/api/futures-isolated/futures.isolated.cashIn/): Deprecated: use POST /perp/isolated/trade/cash-in instead. Move amount sats from a running trade to your balance. Funds are first taken from the trade's… - [Remove stoploss](/es/api/futures-isolated/futures.isolated.removeStoploss/): Deprecated: use DELETE /perp/isolated/trade/stoploss instead. Remove the stoploss from an open or running trade, fixed or trailing. The trade id is passed… - [Update stoploss](/es/api/futures-isolated/futures.isolated.updateStoploss/): Deprecated: use PUT /perp/isolated/trade/stoploss instead. Set the stoploss of an open or running trade. With mode: fixed (default) value is a stop price… - [Remove takeprofit](/es/api/futures-isolated/futures.isolated.removeTakeprofit/): Deprecated: use DELETE /perp/isolated/trade/takeprofit instead. Remove the takeprofit from an open or running trade. The trade id is passed as a query… - [Update takeprofit](/es/api/futures-isolated/futures.isolated.updateTakeprofit/): Deprecated: use PUT /perp/isolated/trade/takeprofit instead. Set the takeprofit price of an open or running trade. 0 removes the takeprofit. Returns the… - [Get funding fees](/es/api/futures-isolated/futures.isolated.getFundingFees/): Deprecated: use GET /perp/isolated/funding-fees instead. Get the funding fees of your BTC/USD isolated trades, or of one trade with tradeId: one row per… - Markets - [Get markets](/es/api/markets/markets.list/): List the markets available to the caller: the released markets, plus the ones an API key grants access to. Their instrument and pair name a market on the… - Perp Data - [Get ticker](/es/api/perp-data/perp.getTicker/): Get the ticker of a perpetual market: mark price, last price, executable prices by order size, 24h change and volume, the next funding and quanto… - [Get candles](/es/api/perp-data/perp.getCandles/): Get the candles (OHLC) of a perpetual market at the range resolution, 1 minute by default. Paginated, newest first. An unknown market, or one you have no… - [Get funding settlements](/es/api/perp-data/perp.getFundingSettlements/): Get the funding settlement history of a perpetual market. Paginated, newest first. An unknown market, or one you have no access to, fails with NOT_FOUND… - Perp Isolated - [Get trade](/es/api/perp-isolated/perp.isolated.getTrade/): Get one of your trades in any state, of any perpetual market, by its id or its clientId (pass exactly one). A running trade pl is the unrealized P&L… - [Place trade](/es/api/perp-isolated/perp.isolated.newTrade/): Place a new isolated trade on a perpetual market. Returns the trade: running for a market order, open for a limit order until it fills. Limit order… - [Cancel trade](/es/api/perp-isolated/perp.isolated.cancelTrade/): Cancel an open trade (a limit order not filled yet). Its margin and maintenance margin go back to your balance. Returns the canceled trade. - [Cancel all trades](/es/api/perp-isolated/perp.isolated.cancelAllTrades/): Cancel all your open trades of a perpetual market. Returns the canceled trades, an empty list when there were none. - [Close trade](/es/api/perp-isolated/perp.isolated.closeTrade/): Close a running trade at the bid (long) or ask (short) price for its size. Its margin plus P&L, and the maintenance margin left after the closing fee, are… - [Get open trades](/es/api/perp-isolated/perp.isolated.getOpenTrades/): Get your open trades (limit orders not filled yet), newest first: of every perpetual market, or of one market when instrument and pair are both passed. - [Get running trades](/es/api/perp-isolated/perp.isolated.getRunningTrades/): Get your running trades, newest first: of every perpetual market, or of one market when instrument and pair are both passed. Their pl is the unrealized… - [Get closed trades](/es/api/perp-isolated/perp.isolated.getClosedTrades/): Get your closed trades: of every perpetual market, or of one market when instrument and pair are both passed. Paginated, newest first; from and to filter… - [Get canceled trades](/es/api/perp-isolated/perp.isolated.getCanceledTrades/): Get your canceled trades: of every perpetual market, or of one market when instrument and pair are both passed. Paginated, newest first; from and to… - [Add margin to trade](/es/api/perp-isolated/perp.isolated.addMargin/): Move amount sats from your balance to the margin of a running trade. This lowers the trade leverage and moves its liquidation price away, decreasing risk… - [Cash-in trade](/es/api/perp-isolated/perp.isolated.cashIn/): Move amount sats from a running trade to your balance. Funds are first taken from the trade's P&L (if any), valued at the Mark price, then from its… - [Remove stoploss](/es/api/perp-isolated/perp.isolated.removeStoploss/): Remove the stoploss from an open or running trade, fixed or trailing. The trade id and the market keys are passed as query parameters. Returns the updated… - [Update stoploss](/es/api/perp-isolated/perp.isolated.updateStoploss/): Set the stoploss of an open or running trade. With mode: fixed value is a stop price; with mode: trailing value is a trailing distance (fraction of price… - [Remove takeprofit](/es/api/perp-isolated/perp.isolated.removeTakeprofit/): Remove the takeprofit from an open or running trade. The trade id and the market keys are passed as query parameters. Returns the updated trade. - [Update takeprofit](/es/api/perp-isolated/perp.isolated.updateTakeprofit/): Set the takeprofit price of an open or running trade. Returns the updated trade. To remove the takeprofit, use DELETE /perp/isolated/trade/takeprofit. - [Get funding fees](/es/api/perp-isolated/perp.isolated.getFundingFees/): Get the funding and quanto adjustment fees of your isolated trades, one row per trade and funding settlement: of every perpetual market, or of one market… - Synthetic USD - [Create swap](/es/api/synthetic-usd/syntheticUsd.newSwap/): Swap inAmount between your BTC and synthetic USD balances. BTC to USD swaps fill at the best bid, USD to BTC swaps at the best ask (see GET… - [Get swaps](/es/api/synthetic-usd/syntheticUsd.getSwaps/): Get your swaps between BTC and synthetic USD. Paginated, newest first. - [Get best price](/es/api/synthetic-usd/syntheticUsd.getBestPrice/): Get the best ask and bid of the BTC/USD order book: the prices a swap fills at right now. - Utilities - [Ping](/es/api/utilities/ping/): Check that the API is reachable. Always answers pong. - [Get server time](/es/api/utilities/time/): Get the current server time. Signed requests need an LNM-ACCESS-TIMESTAMP within 30 seconds of it. - Withdrawals - [Withdraw Lightning](/es/api/withdrawals/account.withdrawLightning/): Pay a Lightning invoice from your balance. The maxFees amount (0.5% of the amount, at least 100 sats) is reserved from your balance to pay the routing… - [Withdraw on-chain](/es/api/withdrawals/account.withdrawOnChain/): Request an on-chain withdrawal of amount sats, between 10,000,000 (0.1 BTC) and 500,000,000 (5 BTC). The request is reviewed and processed asynchronously… - [Get on-chain withdrawals](/es/api/withdrawals/account.getOnChainWithdrawals/): Get your on-chain withdrawals, optionally filtered by status. Paginated, newest first. - [Get Lightning withdrawals](/es/api/withdrawals/account.getLightningWithdrawals/): Get your Lightning withdrawals, optionally filtered by status. Paginated, newest first. - Stream - [Stream API](/es/stream/): Realtime market data and private events over JSON-RPC 2.0 WebSocket - [Connection](/es/stream/connection/): Connection, limits, and response envelope - [Authentication](/es/stream/authentication/): Authenticate with an API key + secret + passphrase - Methods - [Authenticate](/es/stream/methods/authenticate/): Authenticate via API key HMAC signature - [Hello](/es/stream/methods/hello/): Client identification and server version - [Ping](/es/stream/methods/ping/): Health check - [Subscribe](/es/stream/methods/subscribe/): Subscribe to topics - [Time](/es/stream/methods/time/): Server time in milliseconds since epoch - [Unsubscribe](/es/stream/methods/unsubscribe/): Unsubscribe from topics - [Unsubscribe All](/es/stream/methods/unsubscribeall/): Unsubscribe from all topics - [Whoami](/es/stream/methods/whoami/): Get current session - Subscriptions - [Announcements](/es/stream/subscriptions/announcements/): Platform announcements (add and remove) - [Buckets](/es/stream/subscriptions/futures-inverse-btc_usd-buckets/): Inverse futures volume ladder bucket updates: executable bid and ask prices by order size; market orders fill at them and order levels trigger on them - [Cross Orders](/es/stream/subscriptions/futures-inverse-btc_usd-cross-orders/): Inverse futures cross-margin order events (new, limit, canceled) - [Cross Position](/es/stream/subscriptions/futures-inverse-btc_usd-cross-position/): Inverse futures cross-margin position state updates (new, limit, cancel, leverage, deposit, withdraw, liquidation, funding) - [Funding](/es/stream/subscriptions/futures-inverse-btc_usd-funding/): Inverse futures funding rate updates with the current settled rate and time - [Index](/es/stream/subscriptions/futures-inverse-btc_usd-index/): Inverse futures mark price updates (index field) - [Isolated Trades](/es/stream/subscriptions/futures-inverse-btc_usd-isolated-trades/): Inverse futures isolated-margin trade lifecycle events (open, filled, closed, canceled, liquidation, stoploss, takeprofit, funding) - [Last Price](/es/stream/subscriptions/futures-inverse-btc_usd-lastprice/): Inverse futures last price updates: weighted average of the reference exchanges' perpetual last trade prices (display only) - [OHLC](/es/stream/subscriptions/futures-inverse-btc_usd-ohlc/): OHLC candle updates - [Ticker](/es/stream/subscriptions/futures-inverse-btc_usd-ticker/): Inverse futures aggregated ticker with last price, mark price (index field), and funding - [Inverse Perp Btc Usd Buckets](/es/stream/subscriptions/inverse_perp-btc_usd-buckets/): Volume ladder bucket updates: executable bid and ask prices by order size; market orders fill at them and order levels trigger on them - [Inverse Perp Btc Usd Funding](/es/stream/subscriptions/inverse_perp-btc_usd-funding/): Funding rate updates with the current settled rate and time - [Inverse Perp Btc Usd Isolated Trades](/es/stream/subscriptions/inverse_perp-btc_usd-isolated-trades/): Isolated-margin trade lifecycle events (open, filled, closed, canceled, liquidation, stoploss, takeprofit, funding) - [Inverse Perp Btc Usd Last Price](/es/stream/subscriptions/inverse_perp-btc_usd-lastprice/): Last price updates: weighted average of the reference exchanges' perpetual last trade prices (display only) - [Inverse Perp Btc Usd Mark](/es/stream/subscriptions/inverse_perp-btc_usd-mark/): Mark price updates - [OHLC](/es/stream/subscriptions/inverse_perp-btc_usd-ohlc/): OHLC candle updates - [Inverse Perp Btc Usd Ticker](/es/stream/subscriptions/inverse_perp-btc_usd-ticker/): Aggregated ticker with last price, mark, and funding - [Quanto Perp Ant Usdt Buckets](/es/stream/subscriptions/quanto_perp-ant_usdt-buckets/): Volume ladder bucket updates: executable bid and ask prices by order size; market orders fill at them and order levels trigger on them - [Quanto Perp Ant Usdt Funding](/es/stream/subscriptions/quanto_perp-ant_usdt-funding/): Funding rate updates with the current settled rate and time - [Quanto Perp Ant Usdt Isolated Trades](/es/stream/subscriptions/quanto_perp-ant_usdt-isolated-trades/): Isolated-margin trade lifecycle events (open, filled, closed, canceled, liquidation, stoploss, takeprofit, funding) - [Quanto Perp Ant Usdt Last Price](/es/stream/subscriptions/quanto_perp-ant_usdt-lastprice/): Last price updates: weighted average of the reference exchanges' perpetual last trade prices (display only) - [Quanto Perp Ant Usdt Mark](/es/stream/subscriptions/quanto_perp-ant_usdt-mark/): Mark price updates - [OHLC](/es/stream/subscriptions/quanto_perp-ant_usdt-ohlc/): OHLC candle updates - [Quanto Perp Ant Usdt Ticker](/es/stream/subscriptions/quanto_perp-ant_usdt-ticker/): Aggregated ticker with last price, mark, and funding - [Quanto Perp Mu Usdt Buckets](/es/stream/subscriptions/quanto_perp-mu_usdt-buckets/): Volume ladder bucket updates: executable bid and ask prices by order size; market orders fill at them and order levels trigger on them - [Quanto Perp Mu Usdt Funding](/es/stream/subscriptions/quanto_perp-mu_usdt-funding/): Funding rate updates with the current settled rate and time - [Quanto Perp Mu Usdt Isolated Trades](/es/stream/subscriptions/quanto_perp-mu_usdt-isolated-trades/): Isolated-margin trade lifecycle events (open, filled, closed, canceled, liquidation, stoploss, takeprofit, funding) - [Quanto Perp Mu Usdt Last Price](/es/stream/subscriptions/quanto_perp-mu_usdt-lastprice/): Last price updates: weighted average of the reference exchanges' perpetual last trade prices (display only) - [Quanto Perp Mu Usdt Mark](/es/stream/subscriptions/quanto_perp-mu_usdt-mark/): Mark price updates - [OHLC](/es/stream/subscriptions/quanto_perp-mu_usdt-ohlc/): OHLC candle updates - [Quanto Perp Mu Usdt Ticker](/es/stream/subscriptions/quanto_perp-mu_usdt-ticker/): Aggregated ticker with last price, mark, and funding - [Quanto Perp Nvda Usdt Buckets](/es/stream/subscriptions/quanto_perp-nvda_usdt-buckets/): Volume ladder bucket updates: executable bid and ask prices by order size; market orders fill at them and order levels trigger on them - [Quanto Perp Nvda Usdt Funding](/es/stream/subscriptions/quanto_perp-nvda_usdt-funding/): Funding rate updates with the current settled rate and time - [Quanto Perp Nvda Usdt Isolated Trades](/es/stream/subscriptions/quanto_perp-nvda_usdt-isolated-trades/): Isolated-margin trade lifecycle events (open, filled, closed, canceled, liquidation, stoploss, takeprofit, funding) - [Quanto Perp Nvda Usdt Last Price](/es/stream/subscriptions/quanto_perp-nvda_usdt-lastprice/): Last price updates: weighted average of the reference exchanges' perpetual last trade prices (display only) - [Quanto Perp Nvda Usdt Mark](/es/stream/subscriptions/quanto_perp-nvda_usdt-mark/): Mark price updates - [OHLC](/es/stream/subscriptions/quanto_perp-nvda_usdt-ohlc/): OHLC candle updates - [Quanto Perp Nvda Usdt Ticker](/es/stream/subscriptions/quanto_perp-nvda_usdt-ticker/): Aggregated ticker with last price, mark, and funding - [Quanto Perp Qqq Usdt Buckets](/es/stream/subscriptions/quanto_perp-qqq_usdt-buckets/): Volume ladder bucket updates: executable bid and ask prices by order size; market orders fill at them and order levels trigger on them - [Quanto Perp Qqq Usdt Funding](/es/stream/subscriptions/quanto_perp-qqq_usdt-funding/): Funding rate updates with the current settled rate and time - [Quanto Perp Qqq Usdt Isolated Trades](/es/stream/subscriptions/quanto_perp-qqq_usdt-isolated-trades/): Isolated-margin trade lifecycle events (open, filled, closed, canceled, liquidation, stoploss, takeprofit, funding) - [Quanto Perp Qqq Usdt Last Price](/es/stream/subscriptions/quanto_perp-qqq_usdt-lastprice/): Last price updates: weighted average of the reference exchanges' perpetual last trade prices (display only) - [Quanto Perp Qqq Usdt Mark](/es/stream/subscriptions/quanto_perp-qqq_usdt-mark/): Mark price updates - [OHLC](/es/stream/subscriptions/quanto_perp-qqq_usdt-ohlc/): OHLC candle updates - [Quanto Perp Qqq Usdt Ticker](/es/stream/subscriptions/quanto_perp-qqq_usdt-ticker/): Aggregated ticker with last price, mark, and funding - [Quanto Perp Spcx Usdt Buckets](/es/stream/subscriptions/quanto_perp-spcx_usdt-buckets/): Volume ladder bucket updates: executable bid and ask prices by order size; market orders fill at them and order levels trigger on them - [Quanto Perp Spcx Usdt Funding](/es/stream/subscriptions/quanto_perp-spcx_usdt-funding/): Funding rate updates with the current settled rate and time - [Quanto Perp Spcx Usdt Isolated Trades](/es/stream/subscriptions/quanto_perp-spcx_usdt-isolated-trades/): Isolated-margin trade lifecycle events (open, filled, closed, canceled, liquidation, stoploss, takeprofit, funding) - [Quanto Perp Spcx Usdt Last Price](/es/stream/subscriptions/quanto_perp-spcx_usdt-lastprice/): Last price updates: weighted average of the reference exchanges' perpetual last trade prices (display only) - [Quanto Perp Spcx Usdt Mark](/es/stream/subscriptions/quanto_perp-spcx_usdt-mark/): Mark price updates - [OHLC](/es/stream/subscriptions/quanto_perp-spcx_usdt-ohlc/): OHLC candle updates - [Quanto Perp Spcx Usdt Ticker](/es/stream/subscriptions/quanto_perp-spcx_usdt-ticker/): Aggregated ticker with last price, mark, and funding - [Quanto Perp Tsla Usdt Buckets](/es/stream/subscriptions/quanto_perp-tsla_usdt-buckets/): Volume ladder bucket updates: executable bid and ask prices by order size; market orders fill at them and order levels trigger on them - [Quanto Perp Tsla Usdt Funding](/es/stream/subscriptions/quanto_perp-tsla_usdt-funding/): Funding rate updates with the current settled rate and time - [Quanto Perp Tsla Usdt Isolated Trades](/es/stream/subscriptions/quanto_perp-tsla_usdt-isolated-trades/): Isolated-margin trade lifecycle events (open, filled, closed, canceled, liquidation, stoploss, takeprofit, funding) - [Quanto Perp Tsla Usdt Last Price](/es/stream/subscriptions/quanto_perp-tsla_usdt-lastprice/): Last price updates: weighted average of the reference exchanges' perpetual last trade prices (display only) - [Quanto Perp Tsla Usdt Mark](/es/stream/subscriptions/quanto_perp-tsla_usdt-mark/): Mark price updates - [OHLC](/es/stream/subscriptions/quanto_perp-tsla_usdt-ohlc/): OHLC candle updates - [Quanto Perp Tsla Usdt Ticker](/es/stream/subscriptions/quanto_perp-tsla_usdt-ticker/): Aggregated ticker with last price, mark, and funding - [Quanto Perp Wti Usdt Buckets](/es/stream/subscriptions/quanto_perp-wti_usdt-buckets/): Volume ladder bucket updates: executable bid and ask prices by order size; market orders fill at them and order levels trigger on them - [Quanto Perp Wti Usdt Funding](/es/stream/subscriptions/quanto_perp-wti_usdt-funding/): Funding rate updates with the current settled rate and time - [Quanto Perp Wti Usdt Isolated Trades](/es/stream/subscriptions/quanto_perp-wti_usdt-isolated-trades/): Isolated-margin trade lifecycle events (open, filled, closed, canceled, liquidation, stoploss, takeprofit, funding) - [Quanto Perp Wti Usdt Last Price](/es/stream/subscriptions/quanto_perp-wti_usdt-lastprice/): Last price updates: weighted average of the reference exchanges' perpetual last trade prices (display only) - [Quanto Perp Wti Usdt Mark](/es/stream/subscriptions/quanto_perp-wti_usdt-mark/): Mark price updates - [OHLC](/es/stream/subscriptions/quanto_perp-wti_usdt-ohlc/): OHLC candle updates - [Quanto Perp Wti Usdt Ticker](/es/stream/subscriptions/quanto_perp-wti_usdt-ticker/): Aggregated ticker with last price, mark, and funding - [Quanto Perp Xau Usdt Buckets](/es/stream/subscriptions/quanto_perp-xau_usdt-buckets/): Volume ladder bucket updates: executable bid and ask prices by order size; market orders fill at them and order levels trigger on them - [Quanto Perp Xau Usdt Funding](/es/stream/subscriptions/quanto_perp-xau_usdt-funding/): Funding rate updates with the current settled rate and time - [Quanto Perp Xau Usdt Isolated Trades](/es/stream/subscriptions/quanto_perp-xau_usdt-isolated-trades/): Isolated-margin trade lifecycle events (open, filled, closed, canceled, liquidation, stoploss, takeprofit, funding) - [Quanto Perp Xau Usdt Last Price](/es/stream/subscriptions/quanto_perp-xau_usdt-lastprice/): Last price updates: weighted average of the reference exchanges' perpetual last trade prices (display only) - [Quanto Perp Xau Usdt Mark](/es/stream/subscriptions/quanto_perp-xau_usdt-mark/): Mark price updates - [OHLC](/es/stream/subscriptions/quanto_perp-xau_usdt-ohlc/): OHLC candle updates - [Quanto Perp Xau Usdt Ticker](/es/stream/subscriptions/quanto_perp-xau_usdt-ticker/): Aggregated ticker with last price, mark, and funding - [Deposit](/es/stream/subscriptions/wallet-deposit/): Wallet deposit events - [Withdrawal](/es/stream/subscriptions/wallet-withdrawal/): Wallet withdrawal events - [Topics](/es/stream/topics/): Every Stream API topic available for subscribe / unsubscribe - [Errors](/es/stream/errors/): JSON-RPC error codes returned by the Stream API # Docs - Docs - [Docs](/pt/): Seu guia para negociar derivativos de Bitcoin na Lightning Network - [Depósito](/pt/deposit/): Financie sua conta LN Markets - [Saque](/pt/withdraw/): Saque fundos da LN Markets - [Swap](/pt/swap/): Converta entre BTC e USD Sintético - [Perpétuos](/pt/perps/): Negocie futuros perpétuos de Bitcoin com até 100x de alavancagem - Gráfico - [Gráfico](/pt/chart/): Leia o mercado, desenhe sua análise e gerencie suas operações no gráfico da LN Markets - [Indicadores](/pt/chart/indicators/): Adicione, configure e organize os 106 indicadores do gráfico, com os parâmetros, as linhas e os níveis de cada um - [Ferramentas de desenho](/pt/chart/drawings/): Desenhe linhas, canais, ferramentas de Fibonacci e Gann, padrões, formas, notas e medições no gráfico - [Operando no gráfico](/pt/chart/trading/): Veja suas posições e ordens no gráfico Original, edite-as por ali e acompanhe o calendário econômico - [Atalhos e menus](/pt/chart/shortcuts/): Todos os atalhos de teclado do gráfico Original, e o que cada um dos seus menus contém - qAssets - [qAssets](/pt/qassets/): Negocie qualquer ativo em Bitcoin, com uma taxa BTC travada na entrada. - [qGold Perp](/pt/qassets/qgold-perp/): Negocie ouro em Bitcoin com um perpétuo com margem e liquidação em sats. - [qWTI Perp](/pt/qassets/qwti-perp/): Trade WTI crude oil in Bitcoin with a perpetual margined and settled in sats. - [qNvidia Perp](/pt/qassets/qnvidia-perp/): Trade Nvidia stock in Bitcoin with a perpetual margined and settled in sats. - [qTesla Perp](/pt/qassets/qtesla-perp/): Trade Tesla stock in Bitcoin with a perpetual margined and settled in sats. - [qMicron Perp](/pt/qassets/qmicron-perp/): Trade Micron stock in Bitcoin with a perpetual margined and settled in sats. - [qNasdaq Perp](/pt/qassets/qnasdaq-perp/): Trade the Nasdaq-100 in Bitcoin with a perpetual margined and settled in sats. - [qSpaceX Perp](/pt/qassets/qspacex-perp/): Trade SpaceX stock in Bitcoin with a perpetual margined and settled in sats. - [qAnthropic Perp](/pt/qassets/qanthropic-perp/): Trade Anthropic stock in Bitcoin with a perpetual margined and settled in sats. - [Saldo](/pt/balance/): Gerencie seu saldo na LN Markets - [Wallets](/pt/wallets/): Wallets recomendadas para depósitos e saques na LN Markets - [Conta](/pt/account/): Conecte e gerencie sua conta LN Markets - [Verificação de conta](/pt/verification/): Por que e como verificar sua conta da LN Markets - [Segurança](/pt/security/): Como a LN Markets protege seus fundos - Api - [REST API](/pt/api/): LN Markets offers a REST API to integrate with your program or trading bot. - Account - [Get account](/pt/api/account/account.getAccount/): Get your account: id, username, balance, synthetic USD balance, fee tier, email and linking public key. - [Get unused Bitcoin address](/pt/api/account/account.getBitcoinAddress/): Get your most recently generated Bitcoin deposit address in the format of your settings that has not received a deposit yet. If you have none in that… - [Generate new Bitcoin address](/pt/api/account/account.addBitcoinAddress/): Generate a new Bitcoin deposit address. Without format, the address uses the format of your settings. Fails with BAD_REQUEST when you already have 10… - [Get notifications](/pt/api/account/account.getNotifications/): Get your notifications: the unread ones by default, the read ones with read=true. Paginated, newest first. - [Mark notifications as read](/pt/api/account/account.readNotifications/): Mark all your notifications as read. - Deposits - [Deposit Lightning](/pt/api/deposits/account.depositLightning/): Create a Lightning invoice to deposit amount sats. Returns the deposit depositId and the invoice (paymentRequest), which expires after 24 hours. With… - [Get on-chain deposits](/pt/api/deposits/account.getOnChainDeposits/): Get your on-chain deposits, optionally filtered by status, with their confirmations. Paginated, newest first. - [Get Lightning deposits](/pt/api/deposits/account.getLightningDeposits/): Get your Lightning deposits, optionally only the settled (settled=true) or unsettled (settled=false) ones. Paginated, newest first. - Futures Cross - [Place order](/pt/api/futures-cross/futures.cross.newOrder/): Deprecated: /futures is being replaced by the /perp API; this route has no /perp equivalent yet. Place a new BTC/USD cross margin order. Returns the… - [Cancel order](/pt/api/futures-cross/futures.cross.cancelOrder/): Deprecated: /futures is being replaced by the /perp API; this route has no /perp equivalent yet. Cancel an open cross order by its id. Returns the… - [Cancel all orders](/pt/api/futures-cross/futures.cross.cancelAllOrders/): Deprecated: /futures is being replaced by the /perp API; this route has no /perp equivalent yet. Cancel all your open cross orders. Returns the canceled… - [Close position](/pt/api/futures-cross/futures.cross.closePosition/): Deprecated: /futures is being replaced by the /perp API; this route has no /perp equivalent yet. Close the running cross margin position with a market… - [Get open orders](/pt/api/futures-cross/futures.cross.getOpenOrders/): Deprecated: /futures is being replaced by the /perp API; this route has no /perp equivalent yet. Get all your cross orders that are still open. - [Get position](/pt/api/futures-cross/futures.cross.getPosition/): Deprecated: /futures is being replaced by the /perp API; this route has no /perp equivalent yet. Get your current BTC/USD cross margin position. - [Get filled orders](/pt/api/futures-cross/futures.cross.getFilledOrders/): Deprecated: /futures is being replaced by the /perp API; this route has no /perp equivalent yet. Get your filled cross orders. Paginated, newest first… - [Deposit to cross margin](/pt/api/futures-cross/futures.cross.deposit/): Deprecated: /futures is being replaced by the /perp API; this route has no /perp equivalent yet. Move amount sats from your balance to the cross margin… - [Withdraw from cross margin](/pt/api/futures-cross/futures.cross.withdraw/): Deprecated: /futures is being replaced by the /perp API; this route has no /perp equivalent yet. Move amount sats from the cross margin account back to… - [Set leverage](/pt/api/futures-cross/futures.cross.setLeverage/): Deprecated: /futures is being replaced by the /perp API; this route has no /perp equivalent yet. Set the leverage of the cross margin position. If the… - [Get funding fees](/pt/api/futures-cross/futures.cross.getFundingFees/): Deprecated: /futures is being replaced by the /perp API; this route has no /perp equivalent yet. Get the funding fees of your cross margin position, one… - [Get transfers](/pt/api/futures-cross/futures.cross.getTransfers/): Deprecated: /futures is being replaced by the /perp API; this route has no /perp equivalent yet. Get the history of your deposits to and withdrawals from… - Futures Data - [Get ticker](/pt/api/futures-data/futures.getTicker/): Deprecated: use GET /perp/ticker instead. Get the BTC/USD ticker: mark price (index), last price, executable prices by order size, 24h change and volume… - [Get candles](/pt/api/futures-data/futures.getCandles/): Deprecated: use GET /perp/candles instead. Get the BTC/USD candles (OHLC) at the range resolution, 1 minute by default. Paginated, newest first. - [Get funding settlements](/pt/api/futures-data/futures.getFundingSettlements/): Deprecated: use GET /perp/funding-settlements instead. Get the BTC/USD funding settlement history. A settlement happens every 8 hours (00:00, 08:00, 16:00… - [Get leaderboard](/pt/api/futures-data/futures.getLeaderboard/): Deprecated: /futures is being replaced by the /perp API; this route has no /perp equivalent yet. Get the top 10 users by P&L over the last day, 7 days, 30… - Futures Isolated - [Place trade](/pt/api/futures-isolated/futures.isolated.newTrade/): Deprecated: use POST /perp/isolated/trade instead. Place a new BTC/USD isolated trade. Returns the trade. Limit order: type="limit" and price must be… - [Cancel trade](/pt/api/futures-isolated/futures.isolated.cancelTrade/): Deprecated: use POST /perp/isolated/trade/cancel instead. Cancel an open trade (a limit order not filled yet). Returns the canceled trade. - [Cancel all trades](/pt/api/futures-isolated/futures.isolated.cancelAllTrades/): Deprecated: use POST /perp/isolated/trades/cancel-all instead. Cancel all your open BTC/USD trades. Returns the canceled trades. - [Close trade](/pt/api/futures-isolated/futures.isolated.closeTrade/): Deprecated: use POST /perp/isolated/trade/close instead. Close a running trade and realize its P&L. Returns the closed trade. - [Get open trades](/pt/api/futures-isolated/futures.isolated.getOpenTrades/): Deprecated: use GET /perp/isolated/trades/open instead. Get your open BTC/USD trades: limit orders not filled yet, newest first. - [Get running trades](/pt/api/futures-isolated/futures.isolated.getRunningTrades/): Deprecated: use GET /perp/isolated/trades/running instead. Get your running BTC/USD trades, newest first. Their pl is the unrealized P&L, valued at the… - [Get closed trades](/pt/api/futures-isolated/futures.isolated.getClosedTrades/): Deprecated: use GET /perp/isolated/trades/closed instead. Get your closed BTC/USD trades. Paginated, newest first; from and to filter on the close time. - [Get canceled trades](/pt/api/futures-isolated/futures.isolated.getCanceledTrades/): Deprecated: use GET /perp/isolated/trades/canceled instead. Get your canceled BTC/USD trades. Paginated, newest first; from and to filter on the cancel… - [Add margin to trade](/pt/api/futures-isolated/futures.isolated.addMargin/): Deprecated: use POST /perp/isolated/trade/add-margin instead. Move amount sats from your balance to the margin of a running trade. This lowers the trade… - [Cash-in trade](/pt/api/futures-isolated/futures.isolated.cashIn/): Deprecated: use POST /perp/isolated/trade/cash-in instead. Move amount sats from a running trade to your balance. Funds are first taken from the trade's… - [Remove stoploss](/pt/api/futures-isolated/futures.isolated.removeStoploss/): Deprecated: use DELETE /perp/isolated/trade/stoploss instead. Remove the stoploss from an open or running trade, fixed or trailing. The trade id is passed… - [Update stoploss](/pt/api/futures-isolated/futures.isolated.updateStoploss/): Deprecated: use PUT /perp/isolated/trade/stoploss instead. Set the stoploss of an open or running trade. With mode: fixed (default) value is a stop price… - [Remove takeprofit](/pt/api/futures-isolated/futures.isolated.removeTakeprofit/): Deprecated: use DELETE /perp/isolated/trade/takeprofit instead. Remove the takeprofit from an open or running trade. The trade id is passed as a query… - [Update takeprofit](/pt/api/futures-isolated/futures.isolated.updateTakeprofit/): Deprecated: use PUT /perp/isolated/trade/takeprofit instead. Set the takeprofit price of an open or running trade. 0 removes the takeprofit. Returns the… - [Get funding fees](/pt/api/futures-isolated/futures.isolated.getFundingFees/): Deprecated: use GET /perp/isolated/funding-fees instead. Get the funding fees of your BTC/USD isolated trades, or of one trade with tradeId: one row per… - Markets - [Get markets](/pt/api/markets/markets.list/): List the markets available to the caller: the released markets, plus the ones an API key grants access to. Their instrument and pair name a market on the… - Perp Data - [Get ticker](/pt/api/perp-data/perp.getTicker/): Get the ticker of a perpetual market: mark price, last price, executable prices by order size, 24h change and volume, the next funding and quanto… - [Get candles](/pt/api/perp-data/perp.getCandles/): Get the candles (OHLC) of a perpetual market at the range resolution, 1 minute by default. Paginated, newest first. An unknown market, or one you have no… - [Get funding settlements](/pt/api/perp-data/perp.getFundingSettlements/): Get the funding settlement history of a perpetual market. Paginated, newest first. An unknown market, or one you have no access to, fails with NOT_FOUND… - Perp Isolated - [Get trade](/pt/api/perp-isolated/perp.isolated.getTrade/): Get one of your trades in any state, of any perpetual market, by its id or its clientId (pass exactly one). A running trade pl is the unrealized P&L… - [Place trade](/pt/api/perp-isolated/perp.isolated.newTrade/): Place a new isolated trade on a perpetual market. Returns the trade: running for a market order, open for a limit order until it fills. Limit order… - [Cancel trade](/pt/api/perp-isolated/perp.isolated.cancelTrade/): Cancel an open trade (a limit order not filled yet). Its margin and maintenance margin go back to your balance. Returns the canceled trade. - [Cancel all trades](/pt/api/perp-isolated/perp.isolated.cancelAllTrades/): Cancel all your open trades of a perpetual market. Returns the canceled trades, an empty list when there were none. - [Close trade](/pt/api/perp-isolated/perp.isolated.closeTrade/): Close a running trade at the bid (long) or ask (short) price for its size. Its margin plus P&L, and the maintenance margin left after the closing fee, are… - [Get open trades](/pt/api/perp-isolated/perp.isolated.getOpenTrades/): Get your open trades (limit orders not filled yet), newest first: of every perpetual market, or of one market when instrument and pair are both passed. - [Get running trades](/pt/api/perp-isolated/perp.isolated.getRunningTrades/): Get your running trades, newest first: of every perpetual market, or of one market when instrument and pair are both passed. Their pl is the unrealized… - [Get closed trades](/pt/api/perp-isolated/perp.isolated.getClosedTrades/): Get your closed trades: of every perpetual market, or of one market when instrument and pair are both passed. Paginated, newest first; from and to filter… - [Get canceled trades](/pt/api/perp-isolated/perp.isolated.getCanceledTrades/): Get your canceled trades: of every perpetual market, or of one market when instrument and pair are both passed. Paginated, newest first; from and to… - [Add margin to trade](/pt/api/perp-isolated/perp.isolated.addMargin/): Move amount sats from your balance to the margin of a running trade. This lowers the trade leverage and moves its liquidation price away, decreasing risk… - [Cash-in trade](/pt/api/perp-isolated/perp.isolated.cashIn/): Move amount sats from a running trade to your balance. Funds are first taken from the trade's P&L (if any), valued at the Mark price, then from its… - [Remove stoploss](/pt/api/perp-isolated/perp.isolated.removeStoploss/): Remove the stoploss from an open or running trade, fixed or trailing. The trade id and the market keys are passed as query parameters. Returns the updated… - [Update stoploss](/pt/api/perp-isolated/perp.isolated.updateStoploss/): Set the stoploss of an open or running trade. With mode: fixed value is a stop price; with mode: trailing value is a trailing distance (fraction of price… - [Remove takeprofit](/pt/api/perp-isolated/perp.isolated.removeTakeprofit/): Remove the takeprofit from an open or running trade. The trade id and the market keys are passed as query parameters. Returns the updated trade. - [Update takeprofit](/pt/api/perp-isolated/perp.isolated.updateTakeprofit/): Set the takeprofit price of an open or running trade. Returns the updated trade. To remove the takeprofit, use DELETE /perp/isolated/trade/takeprofit. - [Get funding fees](/pt/api/perp-isolated/perp.isolated.getFundingFees/): Get the funding and quanto adjustment fees of your isolated trades, one row per trade and funding settlement: of every perpetual market, or of one market… - Synthetic USD - [Create swap](/pt/api/synthetic-usd/syntheticUsd.newSwap/): Swap inAmount between your BTC and synthetic USD balances. BTC to USD swaps fill at the best bid, USD to BTC swaps at the best ask (see GET… - [Get swaps](/pt/api/synthetic-usd/syntheticUsd.getSwaps/): Get your swaps between BTC and synthetic USD. Paginated, newest first. - [Get best price](/pt/api/synthetic-usd/syntheticUsd.getBestPrice/): Get the best ask and bid of the BTC/USD order book: the prices a swap fills at right now. - Utilities - [Ping](/pt/api/utilities/ping/): Check that the API is reachable. Always answers pong. - [Get server time](/pt/api/utilities/time/): Get the current server time. Signed requests need an LNM-ACCESS-TIMESTAMP within 30 seconds of it. - Withdrawals - [Withdraw Lightning](/pt/api/withdrawals/account.withdrawLightning/): Pay a Lightning invoice from your balance. The maxFees amount (0.5% of the amount, at least 100 sats) is reserved from your balance to pay the routing… - [Withdraw on-chain](/pt/api/withdrawals/account.withdrawOnChain/): Request an on-chain withdrawal of amount sats, between 10,000,000 (0.1 BTC) and 500,000,000 (5 BTC). The request is reviewed and processed asynchronously… - [Get on-chain withdrawals](/pt/api/withdrawals/account.getOnChainWithdrawals/): Get your on-chain withdrawals, optionally filtered by status. Paginated, newest first. - [Get Lightning withdrawals](/pt/api/withdrawals/account.getLightningWithdrawals/): Get your Lightning withdrawals, optionally filtered by status. Paginated, newest first. - Stream - [Stream API](/pt/stream/): Realtime market data and private events over JSON-RPC 2.0 WebSocket - [Connection](/pt/stream/connection/): Connection, limits, and response envelope - [Authentication](/pt/stream/authentication/): Authenticate with an API key + secret + passphrase - Methods - [Authenticate](/pt/stream/methods/authenticate/): Authenticate via API key HMAC signature - [Hello](/pt/stream/methods/hello/): Client identification and server version - [Ping](/pt/stream/methods/ping/): Health check - [Subscribe](/pt/stream/methods/subscribe/): Subscribe to topics - [Time](/pt/stream/methods/time/): Server time in milliseconds since epoch - [Unsubscribe](/pt/stream/methods/unsubscribe/): Unsubscribe from topics - [Unsubscribe All](/pt/stream/methods/unsubscribeall/): Unsubscribe from all topics - [Whoami](/pt/stream/methods/whoami/): Get current session - Subscriptions - [Announcements](/pt/stream/subscriptions/announcements/): Platform announcements (add and remove) - [Buckets](/pt/stream/subscriptions/futures-inverse-btc_usd-buckets/): Inverse futures volume ladder bucket updates: executable bid and ask prices by order size; market orders fill at them and order levels trigger on them - [Cross Orders](/pt/stream/subscriptions/futures-inverse-btc_usd-cross-orders/): Inverse futures cross-margin order events (new, limit, canceled) - [Cross Position](/pt/stream/subscriptions/futures-inverse-btc_usd-cross-position/): Inverse futures cross-margin position state updates (new, limit, cancel, leverage, deposit, withdraw, liquidation, funding) - [Funding](/pt/stream/subscriptions/futures-inverse-btc_usd-funding/): Inverse futures funding rate updates with the current settled rate and time - [Index](/pt/stream/subscriptions/futures-inverse-btc_usd-index/): Inverse futures mark price updates (index field) - [Isolated Trades](/pt/stream/subscriptions/futures-inverse-btc_usd-isolated-trades/): Inverse futures isolated-margin trade lifecycle events (open, filled, closed, canceled, liquidation, stoploss, takeprofit, funding) - [Last Price](/pt/stream/subscriptions/futures-inverse-btc_usd-lastprice/): Inverse futures last price updates: weighted average of the reference exchanges' perpetual last trade prices (display only) - [OHLC](/pt/stream/subscriptions/futures-inverse-btc_usd-ohlc/): OHLC candle updates - [Ticker](/pt/stream/subscriptions/futures-inverse-btc_usd-ticker/): Inverse futures aggregated ticker with last price, mark price (index field), and funding - [Inverse Perp Btc Usd Buckets](/pt/stream/subscriptions/inverse_perp-btc_usd-buckets/): Volume ladder bucket updates: executable bid and ask prices by order size; market orders fill at them and order levels trigger on them - [Inverse Perp Btc Usd Funding](/pt/stream/subscriptions/inverse_perp-btc_usd-funding/): Funding rate updates with the current settled rate and time - [Inverse Perp Btc Usd Isolated Trades](/pt/stream/subscriptions/inverse_perp-btc_usd-isolated-trades/): Isolated-margin trade lifecycle events (open, filled, closed, canceled, liquidation, stoploss, takeprofit, funding) - [Inverse Perp Btc Usd Last Price](/pt/stream/subscriptions/inverse_perp-btc_usd-lastprice/): Last price updates: weighted average of the reference exchanges' perpetual last trade prices (display only) - [Inverse Perp Btc Usd Mark](/pt/stream/subscriptions/inverse_perp-btc_usd-mark/): Mark price updates - [OHLC](/pt/stream/subscriptions/inverse_perp-btc_usd-ohlc/): OHLC candle updates - [Inverse Perp Btc Usd Ticker](/pt/stream/subscriptions/inverse_perp-btc_usd-ticker/): Aggregated ticker with last price, mark, and funding - [Quanto Perp Ant Usdt Buckets](/pt/stream/subscriptions/quanto_perp-ant_usdt-buckets/): Volume ladder bucket updates: executable bid and ask prices by order size; market orders fill at them and order levels trigger on them - [Quanto Perp Ant Usdt Funding](/pt/stream/subscriptions/quanto_perp-ant_usdt-funding/): Funding rate updates with the current settled rate and time - [Quanto Perp Ant Usdt Isolated Trades](/pt/stream/subscriptions/quanto_perp-ant_usdt-isolated-trades/): Isolated-margin trade lifecycle events (open, filled, closed, canceled, liquidation, stoploss, takeprofit, funding) - [Quanto Perp Ant Usdt Last Price](/pt/stream/subscriptions/quanto_perp-ant_usdt-lastprice/): Last price updates: weighted average of the reference exchanges' perpetual last trade prices (display only) - [Quanto Perp Ant Usdt Mark](/pt/stream/subscriptions/quanto_perp-ant_usdt-mark/): Mark price updates - [OHLC](/pt/stream/subscriptions/quanto_perp-ant_usdt-ohlc/): OHLC candle updates - [Quanto Perp Ant Usdt Ticker](/pt/stream/subscriptions/quanto_perp-ant_usdt-ticker/): Aggregated ticker with last price, mark, and funding - [Quanto Perp Mu Usdt Buckets](/pt/stream/subscriptions/quanto_perp-mu_usdt-buckets/): Volume ladder bucket updates: executable bid and ask prices by order size; market orders fill at them and order levels trigger on them - [Quanto Perp Mu Usdt Funding](/pt/stream/subscriptions/quanto_perp-mu_usdt-funding/): Funding rate updates with the current settled rate and time - [Quanto Perp Mu Usdt Isolated Trades](/pt/stream/subscriptions/quanto_perp-mu_usdt-isolated-trades/): Isolated-margin trade lifecycle events (open, filled, closed, canceled, liquidation, stoploss, takeprofit, funding) - [Quanto Perp Mu Usdt Last Price](/pt/stream/subscriptions/quanto_perp-mu_usdt-lastprice/): Last price updates: weighted average of the reference exchanges' perpetual last trade prices (display only) - [Quanto Perp Mu Usdt Mark](/pt/stream/subscriptions/quanto_perp-mu_usdt-mark/): Mark price updates - [OHLC](/pt/stream/subscriptions/quanto_perp-mu_usdt-ohlc/): OHLC candle updates - [Quanto Perp Mu Usdt Ticker](/pt/stream/subscriptions/quanto_perp-mu_usdt-ticker/): Aggregated ticker with last price, mark, and funding - [Quanto Perp Nvda Usdt Buckets](/pt/stream/subscriptions/quanto_perp-nvda_usdt-buckets/): Volume ladder bucket updates: executable bid and ask prices by order size; market orders fill at them and order levels trigger on them - [Quanto Perp Nvda Usdt Funding](/pt/stream/subscriptions/quanto_perp-nvda_usdt-funding/): Funding rate updates with the current settled rate and time - [Quanto Perp Nvda Usdt Isolated Trades](/pt/stream/subscriptions/quanto_perp-nvda_usdt-isolated-trades/): Isolated-margin trade lifecycle events (open, filled, closed, canceled, liquidation, stoploss, takeprofit, funding) - [Quanto Perp Nvda Usdt Last Price](/pt/stream/subscriptions/quanto_perp-nvda_usdt-lastprice/): Last price updates: weighted average of the reference exchanges' perpetual last trade prices (display only) - [Quanto Perp Nvda Usdt Mark](/pt/stream/subscriptions/quanto_perp-nvda_usdt-mark/): Mark price updates - [OHLC](/pt/stream/subscriptions/quanto_perp-nvda_usdt-ohlc/): OHLC candle updates - [Quanto Perp Nvda Usdt Ticker](/pt/stream/subscriptions/quanto_perp-nvda_usdt-ticker/): Aggregated ticker with last price, mark, and funding - [Quanto Perp Qqq Usdt Buckets](/pt/stream/subscriptions/quanto_perp-qqq_usdt-buckets/): Volume ladder bucket updates: executable bid and ask prices by order size; market orders fill at them and order levels trigger on them - [Quanto Perp Qqq Usdt Funding](/pt/stream/subscriptions/quanto_perp-qqq_usdt-funding/): Funding rate updates with the current settled rate and time - [Quanto Perp Qqq Usdt Isolated Trades](/pt/stream/subscriptions/quanto_perp-qqq_usdt-isolated-trades/): Isolated-margin trade lifecycle events (open, filled, closed, canceled, liquidation, stoploss, takeprofit, funding) - [Quanto Perp Qqq Usdt Last Price](/pt/stream/subscriptions/quanto_perp-qqq_usdt-lastprice/): Last price updates: weighted average of the reference exchanges' perpetual last trade prices (display only) - [Quanto Perp Qqq Usdt Mark](/pt/stream/subscriptions/quanto_perp-qqq_usdt-mark/): Mark price updates - [OHLC](/pt/stream/subscriptions/quanto_perp-qqq_usdt-ohlc/): OHLC candle updates - [Quanto Perp Qqq Usdt Ticker](/pt/stream/subscriptions/quanto_perp-qqq_usdt-ticker/): Aggregated ticker with last price, mark, and funding - [Quanto Perp Spcx Usdt Buckets](/pt/stream/subscriptions/quanto_perp-spcx_usdt-buckets/): Volume ladder bucket updates: executable bid and ask prices by order size; market orders fill at them and order levels trigger on them - [Quanto Perp Spcx Usdt Funding](/pt/stream/subscriptions/quanto_perp-spcx_usdt-funding/): Funding rate updates with the current settled rate and time - [Quanto Perp Spcx Usdt Isolated Trades](/pt/stream/subscriptions/quanto_perp-spcx_usdt-isolated-trades/): Isolated-margin trade lifecycle events (open, filled, closed, canceled, liquidation, stoploss, takeprofit, funding) - [Quanto Perp Spcx Usdt Last Price](/pt/stream/subscriptions/quanto_perp-spcx_usdt-lastprice/): Last price updates: weighted average of the reference exchanges' perpetual last trade prices (display only) - [Quanto Perp Spcx Usdt Mark](/pt/stream/subscriptions/quanto_perp-spcx_usdt-mark/): Mark price updates - [OHLC](/pt/stream/subscriptions/quanto_perp-spcx_usdt-ohlc/): OHLC candle updates - [Quanto Perp Spcx Usdt Ticker](/pt/stream/subscriptions/quanto_perp-spcx_usdt-ticker/): Aggregated ticker with last price, mark, and funding - [Quanto Perp Tsla Usdt Buckets](/pt/stream/subscriptions/quanto_perp-tsla_usdt-buckets/): Volume ladder bucket updates: executable bid and ask prices by order size; market orders fill at them and order levels trigger on them - [Quanto Perp Tsla Usdt Funding](/pt/stream/subscriptions/quanto_perp-tsla_usdt-funding/): Funding rate updates with the current settled rate and time - [Quanto Perp Tsla Usdt Isolated Trades](/pt/stream/subscriptions/quanto_perp-tsla_usdt-isolated-trades/): Isolated-margin trade lifecycle events (open, filled, closed, canceled, liquidation, stoploss, takeprofit, funding) - [Quanto Perp Tsla Usdt Last Price](/pt/stream/subscriptions/quanto_perp-tsla_usdt-lastprice/): Last price updates: weighted average of the reference exchanges' perpetual last trade prices (display only) - [Quanto Perp Tsla Usdt Mark](/pt/stream/subscriptions/quanto_perp-tsla_usdt-mark/): Mark price updates - [OHLC](/pt/stream/subscriptions/quanto_perp-tsla_usdt-ohlc/): OHLC candle updates - [Quanto Perp Tsla Usdt Ticker](/pt/stream/subscriptions/quanto_perp-tsla_usdt-ticker/): Aggregated ticker with last price, mark, and funding - [Quanto Perp Wti Usdt Buckets](/pt/stream/subscriptions/quanto_perp-wti_usdt-buckets/): Volume ladder bucket updates: executable bid and ask prices by order size; market orders fill at them and order levels trigger on them - [Quanto Perp Wti Usdt Funding](/pt/stream/subscriptions/quanto_perp-wti_usdt-funding/): Funding rate updates with the current settled rate and time - [Quanto Perp Wti Usdt Isolated Trades](/pt/stream/subscriptions/quanto_perp-wti_usdt-isolated-trades/): Isolated-margin trade lifecycle events (open, filled, closed, canceled, liquidation, stoploss, takeprofit, funding) - [Quanto Perp Wti Usdt Last Price](/pt/stream/subscriptions/quanto_perp-wti_usdt-lastprice/): Last price updates: weighted average of the reference exchanges' perpetual last trade prices (display only) - [Quanto Perp Wti Usdt Mark](/pt/stream/subscriptions/quanto_perp-wti_usdt-mark/): Mark price updates - [OHLC](/pt/stream/subscriptions/quanto_perp-wti_usdt-ohlc/): OHLC candle updates - [Quanto Perp Wti Usdt Ticker](/pt/stream/subscriptions/quanto_perp-wti_usdt-ticker/): Aggregated ticker with last price, mark, and funding - [Quanto Perp Xau Usdt Buckets](/pt/stream/subscriptions/quanto_perp-xau_usdt-buckets/): Volume ladder bucket updates: executable bid and ask prices by order size; market orders fill at them and order levels trigger on them - [Quanto Perp Xau Usdt Funding](/pt/stream/subscriptions/quanto_perp-xau_usdt-funding/): Funding rate updates with the current settled rate and time - [Quanto Perp Xau Usdt Isolated Trades](/pt/stream/subscriptions/quanto_perp-xau_usdt-isolated-trades/): Isolated-margin trade lifecycle events (open, filled, closed, canceled, liquidation, stoploss, takeprofit, funding) - [Quanto Perp Xau Usdt Last Price](/pt/stream/subscriptions/quanto_perp-xau_usdt-lastprice/): Last price updates: weighted average of the reference exchanges' perpetual last trade prices (display only) - [Quanto Perp Xau Usdt Mark](/pt/stream/subscriptions/quanto_perp-xau_usdt-mark/): Mark price updates - [OHLC](/pt/stream/subscriptions/quanto_perp-xau_usdt-ohlc/): OHLC candle updates - [Quanto Perp Xau Usdt Ticker](/pt/stream/subscriptions/quanto_perp-xau_usdt-ticker/): Aggregated ticker with last price, mark, and funding - [Deposit](/pt/stream/subscriptions/wallet-deposit/): Wallet deposit events - [Withdrawal](/pt/stream/subscriptions/wallet-withdrawal/): Wallet withdrawal events - [Topics](/pt/stream/topics/): Every Stream API topic available for subscribe / unsubscribe - [Errors](/pt/stream/errors/): JSON-RPC error codes returned by the Stream API