Complete REST API Reference
Smart Money API ရဲ့ အပြည့်အစုံ REST reference ဖြင့် ကျွမ်းကျင်စွာ အသုံးပြုနိုင်ပါသည်။ Crypto derivatives intelligence နှင့် whale tracking data အတွက် endpoints, parameters, authentication methods နှင့် real-world integration patterns အားလုံးကို လေ့လာပါ။
Overview
Smart Money API သည် Bybit, Binance နှင့် Hyperliquid အပါအဝင် အဓိက exchange သုံးခုမှ real-time cryptocurrency derivatives data ကို RESTful access ပေးပါသည်။ ကျွန်ုပ်တို့၏ API သည် whale wallet positions, funding rates, open interest metrics, liquidation data နှင့် on-chain signals များကို တစ်ခုတည်းသော unified interface တွင် စုစည်းပေးပါသည်။ Trading algorithms, risk management systems သို့မဟုတ် market analysis tools များကို တည်ဆောက်နေပါက၊ REST API သည် Smart Money intelligence အားလုံးကို programmatic access ဖြင့် ရရှိစေပါသည်။
Auto-discovered trading symbols 229 ကျော်နှင့် စောင့်ကြည့်ထားသော whale wallets 600+ ဖြင့်၊ API သည် ကျယ်ပြန့်သော market intelligence ကို ပေးပါသည်။ Real-time WebSocket connections များသည် sub-second updates များကို ပေးပြီး၊ ကျွန်ုပ်တို့၏ REST endpoints များသည် batch queries, historical data retrieval နှင့် portfolio analysis ကို scale တွင် ကိုင်တွယ်ပါသည်။
Authentication
Smart Money API သည် API key authentication ကို အသုံးပြုပါသည်။ အဓိက method မှာ X-API-Key request header ဖြစ်ပါသည်။ API keys များကို သင့် dashboard မှ generate လုပ်နိုင်ပါသည်။ Browser/dashboard sessions များအတွက် fallback အဖြစ် Authorization: Bearer မှတစ်ဆင့် session JWT ကို လက်ခံပါသည်၊ သို့သော် API clients များသည် X-API-Key.
API Key Authentication (primary)
သင့် API key ကို X-API-Key header တွင် request တိုင်းတွင် ပေးပို့ပါ။ URL တွင် သင့် key ကို ဘယ်တော့မှ မထည့်ပါနှင့်။
Session JWT (fallback)
Browser/dashboard sessions များသည် session JWT ကို Authorization: Bearer (24 နာရီအတွက် အကျုံးဝင်သည်) မှတစ်ဆင့် ပေးပို့နိုင်ပါသည်။ Programmatic clients များသည် X-API-Key.
Base URL & Endpoints
API requests အားလုံးသည် https://api.smartmoneyapi.comသို့ သွားပါသည်။ API ကို version prefixes များဖြင့် logical resource categories အဖြစ် စီစဉ်ထားပါသည်။ Current stable version မှာ v1.
Base URL: https://api.smartmoneyapi.com/api/v1
WebSocket URL: wss://ws.smartmoneyapi.com/stream
Response Format
API responses အားလုံးကို standard envelope format ဖြင့် JSON objects အဖြစ် return ပြန်ပါသည်။ Successful responses များသည် HTTP 200-299 status codes များနှင့် response body တွင် data ကို return ပြန်ပါသည်။ Error responses များတွင် detailed error messages နှင့် resolution suggestions များ ပါဝင်ပါသည်။
Whale Positions Endpoint
Exchange အားလုံးမှ စောင့်ကြည့်ထားသော whale wallets များမှ detailed positions များကို ရယူပါ။ ဤ endpoint သည် high-value positions များအတွက် real-time leverage, entry prices, liquidation prices နှင့် unrealized P&L ကို ပြသပါသည်။
| Parameter | Type | Description |
|---|---|---|
| symbol | string | Trading pair (e.g., BTCUSDT, ETHUSDT) optional |
| exchange | string | Filter by exchange: bybit, binance, hyperliquid optional |
| min_position_size | number | Minimum position size in base asset optional |
| direction | string | long or short positions only optional |
| page | integer | Pagination page number, default 1 optional |
| limit | integer | Results per page, max 100, default 50 optional |
Example Request:
Funding Rates Endpoint
Bybit, Binance နှင့် Hyperliquid တို့မှ real-time နှင့် historical funding rates များကို ရယူပါ။ Funding rates များသည် arbitrage trading, swing strategies နှင့် derivatives hedging အတွက် အရေးကြီးပါသည်။ ကျွန်ုပ်တို့၏ API သည် rates များကို 15-minute granularity ဖြင့် စုစည်းပေးပြီး historical rate analysis ကို ပေးပါသည်။
| Parameter | Type | Description |
|---|---|---|
| symbol | string | Trading pair (e.g., BTCUSDT) required |
| exchange | string | Exchange: bybit, binance, hyperliquid optional |
| interval | string | 1h, 4h, 1d, default 1h optional |
| limit | integer | Historical periods to return, max 500 optional |
Example Request:
Open Interest Endpoint
Monitor aggregate open interest across all leverage traders. Open interest divergence from price movement signals potential reversals and trend continuation opportunities. Track both absolute OI and OI change rates.
| Parameter | Type | Description |
|---|---|---|
| symbol | string | Trading pair required |
| exchange | string | bybit, binance, or hyperliquid optional |
| granularity | string | 1m, 5m, 15m, 1h, 4h, 1d, default 15m optional |
Liquidations Endpoint
Returns two complementary views for a symbol: leverage-projected levels (an estimate of where liquidation clusters sit) and a realized_heatmap — the REAL executed forced-liquidation intensity (price × time) aggregated live from public exchange WebSocket feeds: Binance, OKX, Bybit, Bitget, and BitMEX. The heatmap is present when the stream has data for the symbol.
| Parameter | Type | Description |
|---|---|---|
| symbol | string | Asset symbol, default BTC optional |
Trader returns cascade risk, nearest distances, and realized totals/by-side. Pro returns full projected levels plus the full realized_heatmap (matrices, per-price clusters, per-exchange counts).
On-Chain DeFi Liquidations
Executed DeFi lending-protocol liquidations captured directly from our own local BSC and Avalanche full nodes — independent of any trading bot. Covers Venus/Cream and Moolah on BSC, and AAVE V3/V2, Benqi, BankerJoe, Granary and Vinium on Avalanche. Requires an authenticated key (Trader+); Pro additionally returns bot-dependent at-risk positions.
| Parameter | Type | Description |
|---|---|---|
| chain | string | bsc or avax; omit for all optional |
| limit | integer | Max rows, default 100, max 500 (newest-first) optional |
Confirmation Endpoint
The /v1/confirm endpoint returns a rule-based, multi-factor confluence score combining derivatives, on-chain (free Coin Metrics: MVRV / exchange-flow / active-address), and whale positioning. The composite ranges from -1.0 to +1.0 (not 0–100) and every response includes a transparent factors breakdown (per-leg score × weight), adjustments, weights, and coverage. It is decision support, not a guaranteed win-rate. An untracked symbol returns an explicit NO_DATA / unsupported result rather than a fabricated LOW.
Parameters: symbol (BTC/ETH/SOL) and direction (long/short). confidence is one of HIGH / MEDIUM / LOW / VETO / NO_DATA; action is one of CONFIRM_FULL / CONFIRM_REDUCED / CONFIRM_MINIMAL / VETO_SKIP / NO_DATA_SKIP; size_mult is the suggested position-size multiplier.
On-Chain Data Endpoints
Access Bitcoin and Ethereum on-chain metrics including exchange flows, whale wallet movements, MVRV ratio, NUPL, spending conditions, and realized volatility. These metrics identify accumulation/distribution cycles and provide early signals for major reversals.
| Parameter | Type | Description |
|---|---|---|
| asset | string | bitcoin or ethereum required |
| metrics | array | Specific metrics: exchange_flows, mvrv, nupl, whale_moves optional |
| interval | string | 1d (daily), 1w (weekly), default 1d optional |
Data Models Reference
Understanding the structure of API responses is essential for integration. Below are the complete data model definitions used across all endpoints.
WhalePosition Object
FundingRateRecord Object
ကုဒ်နမူနာများ
အောက်တွင် အသုံးများသော ပေါင်းစပ်မှုပုံစံများအတွက် အဆင်သင့်အသုံးပြုနိုင်သော ကုဒ်နမူနာများပါဝင်ပါသည်။
Python တွင် ဝေလငါးတည်နေရာများကို စောင့်ကြည့်ခြင်း
အကောင်းဆုံးအလေ့အကျင့်များနှင့် စွမ်းဆောင်ရည်အကြံပြုချက်များ
အသုံးများသော ပေါင်းစပ်မှုပုံစံများ
ပုံစံ 1: ဝေလငါးစုဆောင်းမှုအပေါ် အချက်ပေးခြင်း
ဝေလငါးတည်နေရာများ အတိုင်းအတာတစ်ခုထက် ကျော်လွန်သောအခါ အချက်ပေးများကို သတ်မှတ်ပါ၊ ဤသည်မှာ ဈေးတက်မည့်အခြေအနေများ သို့မဟုတ် စုဆောင်းမှုအဆင့်များကို ညွှန်ပြနိုင်သည်။
ပုံစံ 2: ရန်ပုံငွေနှုန်းကွာခြားမှု ရှာဖွေခြင်း
ရန်ပုံငွေနှုန်းကွာခြားမှုများ အမြတ်အစွန်းရရှိမည့်အတိုင်းအတာထက် ကျော်လွန်သောအခါ အလိုအလျောက်ရှာဖွေပါ၊ ဤသည်မှာ ချိတ်ဆက်ဖလှယ်မှုများအကြား arbitrage algorithm များကို ဖြစ်နိုင်စေသည်။
ပုံစံ 3: အရည်အတွက်ဆက်တိုက်ဖြစ်မှု စောင့်ကြည့်ခြင်း
ကြီးမားသော အရည်အတွက်ဖြုန်းမှုများကို ခြေရာခံပြီး algorithm ကို ဆက်တိုက်ဖြစ်နေသော အရည်အတွက်ဖြုန်းမှုများနှင့် ကြီးမားသော ဈေးနှုန်းအပြောင်းအလဲများကို အခွင့်ကောင်းယူရန် နေရာချပါ။
ပုံစံ 4: အချက်ပြများအား အတည်ပြုခြင်း
ဝေလငါးတည်နေရာများ၊ ရန်ပုံငွေနှုန်းများ၊ on-chain metrics များနှင့် ကျွန်ုပ်တို့၏ AI အတည်ပြုအချက်များကို ပေါင်းစပ်ပြီး ယုံကြည်မှုမြင့်မားသော ဝင်ရောက်မှုအချက်ပြများအတွက် အသုံးပြုပါ။
စတင်ရန် အဆင်သင့်ဖြစ်ပြီလား?
သင့် API key ကို console မှ ရယူပြီး ယနေ့ပဲ စတင်တည်ဆောက်ပါ။ အသစ်ဖွင့်လှစ်ထားသော အကောင့်အားလုံးသည် တစ်နေ့လျှင် အခမဲ့ အသုံးပြုခွင့် 20 ကြိမ် (BTC, ETH, SOL) ရရှိမည်။ Trader သို့မဟုတ် Pro အဆင့်သို့ အဆင့်မြှင့်ပါက သင်္ကေတအားလုံးနှင့် အဆင့်မြင့်လုပ်ဆောင်ချက်များကို အကန့်အသတ်မရှိ အသုံးပြုနိုင်မည်။
API Key ရယူပါPro Features များကို ဖွင့်ပါ
ဝေလငါးတည်နေရာများ၊ အတည်ပြုအချက်များ၊ on-chain data နှင့် တစ်နေ့လျှင် API ခေါ်ဆိုမှု 2000+ အပြည့်အဝ အသုံးပြုခွင့်ကို ရယူပါ။
စျေးနှုန်းကြည့်ပါ