Loading...
Loading...
Compare original and translation side by side
openfin-setupGET /agent/trading/deposit-addressPOST /agent/trading/transferopenfin-setupGET /agent/trading/deposit-addressPOST /agent/trading/transferGET /agent/trading/accountmarginSummaryentryPxpositionValuereturnOnEquityunrealizedPnlliquidationPxleveragesizeGET /agent/trading/account/spotcoinGET /agent/trading/portfolioGET /agent/trading/rate-limitGET /agent/trading/deposit-addressPOST /agent/trading/transfer{amount, toPerp}toPerp: truefalseGET /agent/trading/accountmarginSummaryentryPxpositionValuereturnOnEquityunrealizedPnlliquidationPxleveragesizeGET /agent/trading/account/spotcoinGET /agent/trading/portfolioGET /agent/trading/rate-limitGET /agent/trading/deposit-addressPOST /agent/trading/transfer{amount, toPerp}toPerp: truefalseGET /agent/trading/market/mids{"BTC": "70939.5", "ETH": "2500.0"}GET /agent/trading/market/metas?dex=dexGET /agent/trading/market/perp-metasuniverseszDecimalsmaxLeveragemarginTableIdisDelistedaszDecimalsGET /agent/trading/market/spot-metas?dex=universeprevDayPxdayNtlVlmdayBaseVlmmarkPxmidPxcirculatingSupplytotalSupplycoinGET /agent/trading/market/l2-book/:coinBTCpxsznGET /agent/trading/market/token/:tokenId:tokenIdspot-metas0xc1fb593aeffbeb02f85e0308e9956a90GET /agent/trading/market/all-dexs-asset-ctxsallDexsAssetCtxsGET /agent/trading/market/mids{"BTC": "70939.5", "ETH": "2500.0"}GET /agent/trading/market/metas?dex=dexGET /agent/trading/market/perp-metasuniverseszDecimalsmaxLeveragemarginTableIdisDelistedaszDecimalsGET /agent/trading/market/spot-metas?dex=universeprevDayPxdayNtlVlmdayBaseVlmmarkPxmidPxcirculatingSupplytotalSupplycoinGET /agent/trading/market/l2-book/:coinBTCpxsznGET /agent/trading/market/token/:tokenId:tokenIdspot-metas0xc1fb593aeffbeb02f85e0308e9956a90GET /agent/trading/market/all-dexs-asset-ctxsallDexsAssetCtxsPOST https://api.hyperliquid.xyz/info
Content-Type: application/json
{
"type": "candleSnapshot",
"req": {
"coin": "BTC",
"interval": "1h", // 1m,3m,5m,15m,30m,1h,2h,4h,8h,12h,1d,3d,1w,1M
"startTime": 1706659200000, // ms
"endTime": 1706745600000 // ms, optional (defaults to now)
}
}"xyz:XYZ100"POST https://api.hyperliquid.xyz/info
Content-Type: application/json
{
"type": "candleSnapshot",
"req": {
"coin": "BTC",
"interval": "1h", // 1m,3m,5m,15m,30m,1h,2h,4h,8h,12h,1d,3d,1w,1M
"startTime": 1706659200000, // 毫秒
"endTime": 1706745600000 // 毫秒,可选(默认当前时间)
}
}"xyz:XYZ100"wss://api.hyperliquid.xyz/ws{ "method": "subscribe", "subscription": { "type": "<channel>" } }allDexsAssetCtxsallMidsl2Book{type, coin: "BTC"}trades{type, coin}candle{type, coin, interval: "1m"}orderUpdatesuserFillsuserFundingswss://api.hyperliquid.xyz/ws{ "method": "subscribe", "subscription": { "type": "<channel>" } }allDexsAssetCtxsallMidsl2Book{type, coin: "BTC"}trades{type, coin}candle{type, coin, interval: "1m"}orderUpdatesuserFillsuserFundingswss://api.hyperliquid.xyz/wssubscribe_all_dexs_asset_ctxsunsubscribe_all_dexs_asset_ctxsget_all_dexs_asset_ctxsget_ws_statusallDexsAssetCtxsuniverseGET /agent/trading/market/metas/market/metaswss://api.hyperliquid.xyz/wssubscribe_all_dexs_asset_ctxsunsubscribe_all_dexs_asset_ctxsget_all_dexs_asset_ctxsget_ws_statusallDexsAssetCtxsGET /agent/trading/market/metasuniverse/market/metaswss://api.hyperliquid.xyz/wswss://api.hyperliquid.xyz/wsPOST /agent/trading/ordersaperp-metasbpsrtlimittrigger{
"orders": [{
"coin": "BTC",
"is_buy": true,
"sz": 0.01,
"limit_px": 65000,
"order_type": { "limit": { "tif": "Gtc" } },
"reduce_only": false
}],
"grouping": "na" // "na" | "normalTpsl" | "positionTpsl"
}tif"Gtc""Ioc""Alo""normalTpsl""positionTpsl"POST /agent/trading/ordersaperp-metasbpsrtlimittrigger{
"orders": [{
"coin": "BTC",
"is_buy": true,
"sz": 0.01,
"limit_px": 65000,
"order_type": { "limit": { "tif": "Gtc" } },
"reduce_only": false
}],
"grouping": "na" // "na" | "normalTpsl" | "positionTpsl"
}tif"Gtc""Ioc""Alo""normalTpsl""positionTpsl"GET /agent/trading/orderscoinsidelimitPxszoidtimestamporderTypeGET /agent/trading/orders/detailsorigSztriggerPxtriggerConditioncloidreduceOnlyGET /agent/trading/orders/historystatusMsg"filled""cancelled"filledSzavgFillPxcloidGET /agent/trading/orders/:oid/statusopenfilledcancelledfilledSzavgFillPxGET /agent/trading/orderscoinsidelimitPxszoidtimestamporderTypeGET /agent/trading/orders/detailsorigSztriggerPxtriggerConditioncloidreduceOnlyGET /agent/trading/orders/historystatusMsg"filled""cancelled"filledSzavgFillPxcloidGET /agent/trading/orders/:oid/statusopenfilledcancelledfilledSzavgFillPxDELETE /agent/trading/orders{cancels: [{a, o}]}aoPUT /agent/trading/orders/:oid{order: {...}}DELETE /agent/trading/orders{cancels: [{a, o}]}aoPUT /agent/trading/orders/:oid{order: {...}}POST /agent/trading/twaptwapIdGET /agent/trading/twap/fillscoinsidefillPxfillSzfeeUsdctimestamptwapIdDELETE /agent/trading/twap/:twapIdPOST /agent/trading/twaptwapIdGET /agent/trading/twap/fillscoinsidefillPxfillSzfeeUsdctimestamptwapIdDELETE /agent/trading/twap/:twapIdPOST /agent/trading/leverage{asset, isCross, leverage}assetisCross: truefalseleveragePOST /agent/trading/margin{asset, isBuy, ntli}ntliPOST /agent/trading/leverage{asset, isCross, leverage}assetisCross: truefalseleveragePOST /agent/trading/margin{asset, isBuy, ntli}ntliGET /agent/trading/fills?aggregateByTime=falsecoinsidepxszfeeUsdctimestampoidcloidcrossedliquidationGET /agent/trading/fills/by-time?startTime=<ms>&endTime=<ms>endTimeGET /agent/trading/fundingcoinfundingRateusdctimestampGET /agent/trading/fills?aggregateByTime=falsecoinsidepxszfeeUsdctimestampoidcloidcrossedliquidationGET /agent/trading/fills/by-time?startTime=<ms>&endTime=<ms>endTimeGET /agent/trading/fundingcoinfundingRateusdctimestampszlimit_pxperp-metasszDecimalsformatHyperliquidPriceformatHyperliquidSizeszlimit_pxperp-metasszDecimalsformatHyperliquidPriceformatHyperliquidSizePOST /marginisCross: true/falsePOST /leveragePOST /marginPOST /leverageisCross: true/falseGtcIocAlosztransferGtcIocAloszhyperliquid_place_orderhyperliquid_cancel_orderhyperliquid_get_account_summaryhyperliquid_get_all_midshyperliquid_usd_class_transferhyperliquid_place_orderhyperliquid_cancel_orderhyperliquid_get_account_summaryhyperliquid_get_all_midshyperliquid_usd_class_transfer