Interactive Examples (175 files)
Browse example files by exchange. Open any file to inspect the source and related SDK usage patterns.
Binance Examples (34)
These Binance SDK guides cover installation, authentication, REST API usage, and WebSocket usage for the same package. Open the example files below for scenario-specific code.
- Binance SDK overview
- Binance JavaScript quick start
- Binance Node.js quick start
- Binance TypeScript quick start
- Binance/Auth/rest-private-ed25519.ts
- Binance/Auth/rest-private-rsa.ts
- Binance/Rest/Futures/rest-future-bracket-order.ts
- Binance/Rest/Futures/rest-usdm-demo.ts
- Binance/Rest/Futures/rest-usdm-order-sl.ts
- Binance/Rest/Futures/rest-usdm-order.ts
- Binance/Rest/Futures/rest-usdm-private-get.ts
- Binance/Rest/Futures/rest-usdm-public.ts
- Binance/Rest/Futures/rest-usdm-testnet.ts
- Binance/Rest/misc/tracking-candles.ts
- Binance/Rest/Portfolio Margin/rest-portfoliomargin-private.ts
- Binance/Rest/Portfolio Margin/rest-portfoliomargin-public.ts
- Binance/Rest/Spot/rest-spot-demo.ts
- Binance/Rest/Spot/rest-spot-exchange-info.ts
- Binance/Rest/Spot/rest-spot-private-autoinvest.ts
- Binance/Rest/Spot/rest-spot-private-misc.ts
- Binance/Rest/Spot/rest-spot-private-trade.ts
- Binance/Rest/Spot/rest-spot-public.ts
- Binance/WebSockets/Demo/ws-demo-spot.ts
- Binance/WebSockets/Demo/ws-demo-usdm.ts
- Binance/WebSockets/Misc/ws-close.ts
- Binance/WebSockets/Misc/ws-custom-parser.ts
- Binance/WebSockets/Misc/ws-proxy-socks.ts
- Binance/WebSockets/Misc/ws-unsubscribe.ts
- Binance/WebSockets/Private(userdata)/ws-userdata-connection-safety.ts
- Binance/WebSockets/Private(userdata)/ws-userdata-listenKey-testnet.ts
- Binance/WebSockets/Private(userdata)/ws-userdata-listenkey.ts
- Binance/WebSockets/Private(userdata)/ws-userdata-wsapi.ts
- Binance/WebSockets/Public/ws-public-spot-orderbook.ts
- Binance/WebSockets/Public/ws-public-spot-trades.ts
- Binance/WebSockets/Public/ws-public-usdm-funding.ts
- Binance/WebSockets/Public/ws-public.ts
- Binance/WebSockets/WS-API/ws-api-client.ts
- Binance/WebSockets/WS-API/ws-api-raw-promises.ts
Bitget Examples (20)
These Bitget SDK guides cover installation, authentication, REST API usage, and WebSocket usage for the same package. Open the example files below for scenario-specific code.
- Bitget SDK overview
- Bitget JavaScript quick start
- Bitget Node.js quick start
- Bitget TypeScript quick start
- Bitget/Auth/fasterHmacSign.ts
- Bitget/Auth/rest-private-rsa.ts
- Bitget/V2 - Classic/Rest/rest-private-futures.ts
- Bitget/V2 - Classic/Rest/rest-private-spot.ts
- Bitget/V2 - Classic/Rest/rest-public-futures.ts
- Bitget/V2 - Classic/Rest/rest-public-spot.ts
- Bitget/V2 - Classic/Rest/rest-trade-futures.ts
- Bitget/V2 - Classic/Rest/rest-trade-spot.ts
- Bitget/V2 - Classic/Websocket/ws-demo-trading.ts
- Bitget/V2 - Classic/Websocket/ws-private.ts
- Bitget/V2 - Classic/Websocket/ws-public.ts
- Bitget/V3 - UTA/Rest/rest-private.ts
- Bitget/V3 - UTA/Rest/rest-public-UTA-futures.ts
- Bitget/V3 - UTA/Rest/rest-public-UTA-spot.ts
- Bitget/V3 - UTA/Rest/rest-trade-UTA-futures.ts
- Bitget/V3 - UTA/Rest/rest-trade-UTA-spot.ts
- Bitget/V3 - UTA/Websocket/ws-private.ts
- Bitget/V3 - UTA/Websocket/ws-public.ts
- Bitget/V3 - UTA/WS-API/ws-api-client-trade.ts
- Bitget/V3 - UTA/WS-API/ws-api-trade-raw.ts
Bitmart Examples (14)
These BitMart SDK guides cover installation, authentication, REST API usage, and WebSocket usage for the same package. Open the example files below for scenario-specific code.
- BitMart SDK overview
- BitMart JavaScript quick start
- BitMart Node.js quick start
- BitMart TypeScript quick start
- Bitmart/Auth/fasterHmacSign.ts
- Bitmart/Rest/Futures/futures-get-balances.ts
- Bitmart/Rest/Futures/futures-get-klines.ts
- Bitmart/Rest/Futures/futures-get-tickers.ts
- Bitmart/Rest/Futures/futures-submit-order.ts
- Bitmart/Rest/Spot/spot-get-balances.ts
- Bitmart/Rest/Spot/spot-get-klines.ts
- Bitmart/Rest/Spot/spot-get-symbols.ts
- Bitmart/Rest/Spot/spot-submit-order.ts
- Bitmart/Websocket/ws-custom-logger.ts
- Bitmart/Websocket/ws-futures-private.ts
- Bitmart/Websocket/ws-futures-public.ts
- Bitmart/Websocket/ws-spot-private.ts
- Bitmart/Websocket/ws-spot-public.ts
Bybit Examples (17)
These Bybit SDK guides cover installation, authentication, REST API usage, and WebSocket usage for the same package. Open the example files below for scenario-specific code.
- Bybit/Auth/fasterHmacSign.ts
- Bybit/Auth/RSA-sign.ts
- Bybit/Rest/demo-trading.ts
- Bybit/Rest/rest-v5-all.ts
- Bybit/Rest/rest-v5-custom-url.ts
- Bybit/Rest/rest-v5-next-cursor.ts
- Bybit/Rest/rest-v5-p2p.ts
- Bybit/Rest/rest-v5-private.ts
- Bybit/Rest/rest-v5-proxies.ts
- Bybit/Rest/rest-v5-proxies2.ts
- Bybit/Rest/rest-v5-public.ts
- Bybit/Websocket/Private/ws-private-v5.ts
- Bybit/Websocket/Public/ws-public-allLiquidations.ts
- Bybit/Websocket/Public/ws-public-v5.ts
- Bybit/Websocket/WS-API/ws-api-client.ts
- Bybit/Websocket/WS-API/ws-api-raw-events.ts
- Bybit/Websocket/WS-API/ws-api-raw-promises.ts
Coinbase Examples (20)
These Coinbase SDK guides cover installation, authentication, REST API usage, and WebSocket usage for the same package. Open the example files below for scenario-specific code.
- Coinbase SDK overview
- Coinbase JavaScript quick start
- Coinbase Node.js quick start
- Coinbase TypeScript quick start
- Coinbase/AdvancedTrade/Private/closePosition.ts
- Coinbase/AdvancedTrade/Private/getAccounts.ts
- Coinbase/AdvancedTrade/Private/getOrders.ts
- Coinbase/AdvancedTrade/Private/submitOrderPerps.ts
- Coinbase/AdvancedTrade/Private/submitOrderSpot.ts
- Coinbase/AdvancedTrade/Public/advanced-public-rest-all.ts
- Coinbase/AdvancedTrade/WebSockets/privateWs.ts
- Coinbase/AdvancedTrade/WebSockets/publicWs.ts
- Coinbase/CoinbaseApp/Private/cb-app-private.ts
- Coinbase/CoinbaseApp/Private/depositFunds.ts
- Coinbase/CoinbaseApp/Private/sendMoney.ts
- Coinbase/CoinbaseApp/Private/transferMoney.ts
- Coinbase/CoinbaseApp/Private/withdrawFunds.ts
- Coinbase/CoinbaseApp/Public/cbapp-public-rest-all.ts
- Coinbase/Institutional/CBExchange/Rest/cb-exchange-private.ts
- Coinbase/Institutional/CBExchange/Rest/cb-exchange-public.ts
- Coinbase/Institutional/CBExchange/WebSockets/privateWs.ts
- Coinbase/Institutional/CBExchange/WebSockets/publicWs.ts
- Coinbase/Institutional/CBInternationalExchange/cb-intx-public.ts
- Coinbase/Institutional/CBInternationalExchange/cb-intx-ws.ts
Gate Examples (20)
These Gate SDK guides cover installation, authentication, REST API usage, and WebSocket usage for the same package. Open the example files below for scenario-specific code.
- Gate/Rest/futures/futures-balance-trade.ts
- Gate/Rest/futures/getBalances.ts
- Gate/Rest/futures/getContractSize.ts
- Gate/Rest/futures/getOrders.ts
- Gate/Rest/futures/getTickers.ts
- Gate/Rest/futures/submitLimitOrder.ts
- Gate/Rest/futures/submitMarketOrder.ts
- Gate/Rest/futures/testnet.ts
- Gate/Rest/spot/getBalances.ts
- Gate/Rest/spot/getCandles.ts
- Gate/Rest/spot/getOrders.ts
- Gate/Rest/spot/getTickers.ts
- Gate/Rest/spot/submitLimitOrder.ts
- Gate/Rest/spot/submitMarketOrder.ts
- Gate/Websocket/WS-API/ws-api-client.ts
- Gate/Websocket/WS-API/ws-private-perp-futures-wsapi.ts
- Gate/Websocket/WS-API/ws-private-spot-wsapi.ts
- Gate/Websocket/ws-private-perp-futures.ts
- Gate/Websocket/ws-private-spot.ts
- Gate/Websocket/ws-public.ts
Kraken Examples (17)
These Kraken SDK guides cover installation, authentication, REST API usage, and WebSocket usage for the same package. Open the example files below for scenario-specific code.
- Kraken SDK overview
- Kraken JavaScript quick start
- Kraken Node.js quick start
- Kraken TypeScript quick start
- Kraken/Derivatives/Private/account.ts
- Kraken/Derivatives/Private/orderManagement.ts
- Kraken/Derivatives/Private/submitOrder.ts
- Kraken/Derivatives/Private/testnet.ts
- Kraken/Derivatives/Public/marketData.ts
- Kraken/Derivatives/WebSockets/privateWs.ts
- Kraken/Derivatives/WebSockets/publicWs.ts
- Kraken/Derivatives/WebSockets/testnetWs.ts
- Kraken/Spot/Private/account.ts
- Kraken/Spot/Private/depositWithdraw.ts
- Kraken/Spot/Private/orderManagement.ts
- Kraken/Spot/Private/submitOrder.ts
- Kraken/Spot/Public/marketData.ts
- Kraken/Spot/WebSockets/privateWs.ts
- Kraken/Spot/WebSockets/publicWs.ts
- Kraken/Spot/WebSockets/wsAPI.RAW.ts
- Kraken/Spot/WebSockets/wsAPI.ts
Kucoin Examples (20)
These KuCoin SDK guides cover installation, authentication, REST API usage, and WebSocket usage for the same package. Open the example files below for scenario-specific code.
- KuCoin SDK overview
- KuCoin JavaScript quick start
- KuCoin Node.js quick start
- KuCoin TypeScript quick start
- Kucoin/Auth/authorizationHeader.ts
- Kucoin/Auth/fasterHmacSign.ts
- Kucoin/Rest/rest-futures-orders-guide.ts
- Kucoin/Rest/rest-futures-private-trade.ts
- Kucoin/Rest/rest-futures-public.ts
- Kucoin/Rest/rest-spot-private-trade.ts
- Kucoin/Rest/rest-spot-public.ts
- Kucoin/WebSockets/WS-API/ws-api-client.ts
- Kucoin/WebSockets/WS-API/ws-api-raw-promises.ts
- Kucoin/WebSockets/ws-futures-private.ts
- Kucoin/WebSockets/ws-futures-public.ts
- Kucoin/WebSockets/ws-private-futures-v1.ts
- Kucoin/WebSockets/ws-private-pro-v2.ts
- Kucoin/WebSockets/ws-private-spot-v1.ts
- Kucoin/WebSockets/ws-public-futures-pro-v2.ts
- Kucoin/WebSockets/ws-public-futures-v1.ts
- Kucoin/WebSockets/ws-public-spot-pro-v2.ts
- Kucoin/WebSockets/ws-public-spot-v1.ts
- Kucoin/WebSockets/ws-spot-private.ts
- Kucoin/WebSockets/ws-spot-public.ts
OKX Examples (13)
These OKX SDK guides cover installation, authentication, REST API usage, and WebSocket usage for the same package. Open the example files below for scenario-specific code.
- OKX/Auth/fasterHmacSign.ts
- OKX/Rest/app.okx.com.ts
- OKX/Rest/demo-trading.ts
- OKX/Rest/my.okx.com.ts
- OKX/Rest/rest-private-trade-market.ts
- OKX/Rest/rest-private-trade.ts
- OKX/Rest/rest-public.ts
- OKX/Websocket/app.okx.com.ts
- OKX/Websocket/WS-API/ws-api-client.ts
- OKX/Websocket/WS-API/ws-api-trade-raw.ts
- OKX/Websocket/ws-private-handle-auth-fail.ts
- OKX/Websocket/ws-private.ts
- OKX/Websocket/ws-public.ts