Gate MCP
Public Gate market data MCP for spot, futures, margin, options, delivery, earn, and alpha.
我該用這個嗎
品質與安全性
發現項目(33)
- LOW在 cex_activity_list_activity_types 中
- LOW在 cex_alpha_list_alpha_currencies 中
- LOW在 cex_dc_list_dc_insurance_ledger 中
- LOW在 cex_dc_list_dc_risk_limit_tiers 中
- LOW在 cex_earn_list_dual_investment_plans 中
- LOW在 cex_earn_list_earn_fixed_term_products 中
- LOW在 cex_earn_list_earn_fixed_term_products_by_asset 中
- LOW在 cex_fx_list_batch_fx_funding_rates 中
- LOW在 cex_fx_list_fx_insurance_ledger 中
- LOW在 cex_launch_get_candy_drop_activity_list_v4 中
根據工具定義與協定合規性的自動化分析。
上下文成本
這是每次將伺服器的工具載入模型上下文時所消耗的約略 token 數量。數量越高,可用於其他工作的注意力就越少。
安裝
一鍵安裝
將以下內容加入你的 `claude_desktop_config.json` 檔案:
{
"mcpServers": {
"gate-mcp": {
"url": "https://api.gatemcp.ai/mcp"
}
}
}遠端端點
https://api.gatemcp.ai/mcpstreamable-http它能做什麼
工具清單
工具(63)
🟢cex_activity_list_activity_types
List activity types.
輸入結構描述
{
"type": "object"
}🟢cex_alpha_list_alpha_currencies(currency, limit, page)
List Alpha currencies.
輸入結構描述
{
"type": "object",
"properties": {
"currency": {
"description": "Query by currency symbol",
"type": "string"
},
"limit": {
"description": "Maximum number of records returned in a single list",
"type": "number"
},
"page": {
"description": "Page number",
"type": "number"
}
}
}🟢cex_alpha_list_alpha_tickers(currency, limit, page)
List Alpha tickers.
輸入結構描述
{
"type": "object",
"properties": {
"currency": {
"description": "Query by specified currency name",
"type": "string"
},
"limit": {
"description": "Maximum number of records returned in a single list",
"type": "number"
},
"page": {
"description": "Page number",
"type": "number"
}
}
}🟢cex_alpha_list_alpha_tokens(address, chain, launch_platform, page)
List Alpha tokens.
輸入結構描述
{
"type": "object",
"properties": {
"address": {
"description": "Query by contract address",
"type": "string"
},
"chain": {
"description": "Chain: solana, eth, bsc, base, world, sui, arbitrum, avalanche, polygon, linea, optimism, zksync, gatelayer",
"type": "string"
},
"launch_platform": {
"description": "Launch platform: meteora_dbc, fourmeme, moonshot, pump, raydium_launchlab, letsbonk, gatefun, virtuals",
"type": "string"
},
"page": {
"description": "Page number",
"type": "number"
}
}
}🟢cex_dc_get_dc_contract(contract, settle)
Get delivery contract.
輸入結構描述
{
"type": "object",
"properties": {
"contract": {
"description": "Delivery contract identifier (e.g. BTC_USDT)",
"type": "string"
},
"settle": {
"description": "Settlement currency for delivery (e.g. usdt, btc)",
"type": "string"
}
},
"required": [
"contract"
]
}🟢cex_dc_list_dc_candlesticks(contract, from, interval, limit, settle, ...)
List delivery candlesticks.
輸入結構描述
{
"type": "object",
"properties": {
"contract": {
"description": "Delivery contract identifier (e.g. BTC_USDT; may use mark_/index_ prefix for price type)",
"type": "string"
},
"from": {
"description": "Start timestamp in seconds",
"type": "number"
},
"interval": {
"description": "Time interval for data points",
"type": "string"
},
"limit": {
"description": "Maximum number of data points to return",
"type": "number"
},
"settle": {
"description": "Settlement currency for delivery (e.g. usdt, btc)",
"type": "string"
},
"to": {
"description": "End timestamp in seconds",
"type": "number"
}
},
"required": [
"contract"
]
}🟢cex_dc_list_dc_contracts(settle)
List delivery contracts.
輸入結構描述
{
"type": "object",
"properties": {
"settle": {
"description": "Settlement currency for delivery (e.g. usdt, btc)",
"type": "string"
}
}
}🟢cex_dc_list_dc_insurance_ledger(limit, settle)
List delivery insurance ledger.
輸入結構描述
{
"type": "object",
"properties": {
"limit": {
"description": "Maximum number of records to return",
"type": "number"
},
"settle": {
"description": "Settlement currency for delivery (e.g. usdt, btc)",
"type": "string"
}
}
}🟢cex_dc_list_dc_order_book(contract, interval, limit, settle, with_id)
Get delivery order book.
輸入結構描述
{
"type": "object",
"properties": {
"contract": {
"description": "Delivery contract identifier (e.g. BTC_USDT)",
"type": "string"
},
"interval": {
"description": "Order depth aggregation precision. 0 means no aggregation, defaults to 0 if not specified",
"type": "string"
},
"limit": {
"description": "Maximum number of order depth levels to return",
"type": "number"
},
"settle": {
"description": "Settlement currency for delivery (e.g. usdt, btc)",
"type": "string"
},
"with_id": {
"description": "Whether to return order book update ID",
"type": "boolean"
}
},
"required": [
"contract"
]
}🟢cex_dc_list_dc_risk_limit_tiers(contract, limit, offset, settle)
List delivery risk limit tiers.
輸入結構描述
{
"type": "object",
"properties": {
"contract": {
"description": "Optional delivery contract identifier; if set, risk tiers for that contract only",
"type": "string"
},
"limit": {
"description": "Maximum number of records to return",
"type": "number"
},
"offset": {
"description": "List offset, starting from 0",
"type": "number"
},
"settle": {
"description": "Settlement currency for delivery (e.g. usdt, btc)",
"type": "string"
}
}
}🟢cex_dc_list_dc_tickers(contract, settle)
List delivery tickers.
輸入結構描述
{
"type": "object",
"properties": {
"contract": {
"description": "Optional delivery contract identifier; if set, only that contract's ticker is returned",
"type": "string"
},
"settle": {
"description": "Settlement currency for delivery (e.g. usdt, btc)",
"type": "string"
}
}
}🟢cex_dc_list_dc_trades(contract, from, last_id, limit, settle, ...)
List delivery trades.
輸入結構描述
{
"type": "object",
"properties": {
"contract": {
"description": "Delivery contract identifier (e.g. BTC_USDT)",
"type": "string"
},
"from": {
"description": "Start timestamp in seconds",
"type": "number"
},
"last_id": {
"description": "Specify list starting point using the last record ID from previous request",
"type": "string"
},
"limit": {
"description": "Maximum number of records to return",
"type": "number"
},
"settle": {
"description": "Settlement currency for delivery (e.g. usdt, btc)",
"type": "string"
},
"to": {
"description": "End timestamp in seconds",
"type": "number"
}
},
"required": [
"contract"
]
}🟢cex_earn_list_dual_investment_plans(coin, page, page_size, plan_id, quote_currency, ...)
List dual investment plans.
輸入結構描述
{
"type": "object",
"properties": {
"coin": {
"description": "Investment currency, e.g. BTC",
"type": "string"
},
"page": {
"description": "Page number",
"type": "number"
},
"page_size": {
"description": "Items per page",
"type": "number"
},
"plan_id": {
"description": "Financial project ID (int64)",
"type": "number"
},
"quote_currency": {
"description": "Settlement currency: default USDT, optional GUSD",
"type": "string"
},
"sort": {
"description": "Sort: apy (APR desc), short-period (term asc), multiple (premium desc)",
"type": "string"
},
"type": {
"description": "put (low buy) or call (high sell)",
"type": "string"
}
}
}🟢cex_earn_list_earn_fixed_term_products(asset, limit, page, type)
List fixed-term Earn products.
輸入結構描述
{
"type": "object",
"properties": {
"asset": {
"description": "Currency name, e.g. USDT",
"type": "string"
},
"limit": {
"description": "Page size",
"type": "number"
},
"page": {
"description": "Page number",
"type": "number"
},
"type": {
"description": "Product type: 1=normal, 2=vip",
"type": "number"
}
},
"required": [
"page",
"limit"
]
}🟢cex_earn_list_earn_fixed_term_products_by_asset(asset, type)
List fixed-term Earn products by asset.
輸入結構描述
{
"type": "object",
"properties": {
"asset": {
"description": "Currency name, e.g. USDT, BTC",
"type": "string"
},
"type": {
"description": "Product type: empty or 1=normal, 2=vip, 0=all",
"type": "string"
}
},
"required": [
"asset"
]
}🟢cex_earn_list_uni_currencies
List Simple Earn currencies.
輸入結構描述
{
"type": "object"
}🟢cex_fx_get_fx_candlesticks(contract, from, interval, limit, settle, ...)
Get futures candlestick/OHLCV data
輸入結構描述
{
"type": "object",
"properties": {
"contract": {
"description": "Futures contract name",
"type": "string"
},
"from": {
"description": "Start timestamp in seconds. Defaults to to - 100 * interval if not specified",
"type": "number"
},
"interval": {
"description": "Time interval. Note: 1w means natural week, 7d aligns with Unix epoch, 30d means natural month",
"type": "string"
},
"limit": {
"description": "Maximum number of data points to return. Mutually exclusive with from/to parameters",
"type": "number"
},
"settle": {
"description": "Settlement currency",
"type": "string"
},
"timezone": {
"description": "Timezone: all/utc0/utc8, defaults to utc0",
"type": "string"
},
"to": {
"description": "End timestamp in seconds, defaults to current time if not specified",
"type": "number"
}
},
"required": [
"contract"
]
}🟢cex_fx_get_fx_contract(contract, settle)
Get details of a single futures contract
輸入結構描述
{
"type": "object",
"properties": {
"contract": {
"description": "Futures contract name",
"type": "string"
},
"settle": {
"description": "Settlement currency",
"type": "string"
}
},
"required": [
"contract"
]
}🟢cex_fx_get_fx_funding_rate(contract, from, limit, settle, to)
Get funding rate history for a futures contract
輸入結構描述
{
"type": "object",
"properties": {
"contract": {
"description": "Futures contract name",
"type": "string"
},
"from": {
"description": "Start timestamp in seconds",
"type": "number"
},
"limit": {
"description": "Maximum number of records to return",
"type": "number"
},
"settle": {
"description": "Settlement currency",
"type": "string"
},
"to": {
"description": "End timestamp in seconds",
"type": "number"
}
},
"required": [
"contract"
]
}🟢cex_fx_get_fx_order_book(contract, interval, limit, settle, with_id)
Get futures order book
輸入結構描述
{
"type": "object",
"properties": {
"contract": {
"description": "Futures contract name",
"type": "string"
},
"interval": {
"description": "Order depth aggregation precision. 0 means no aggregation, defaults to 0 if not specified",
"type": "string"
},
"limit": {
"description": "Maximum number of order depth levels to return",
"type": "number"
},
"settle": {
"description": "Settlement currency",
"type": "string"
},
"with_id": {
"description": "Whether to return order book update ID. ID increments by 1 on each change",
"type": "boolean"
}
},
"required": [
"contract"
]
}🟢cex_fx_get_fx_premium_index(contract, from, interval, limit, settle, ...)
Get premium index (mark price minus index price) history for a contract
輸入結構描述
{
"type": "object",
"properties": {
"contract": {
"description": "Futures contract name",
"type": "string"
},
"from": {
"description": "Start timestamp in seconds. Defaults to to - 100 * interval if not specified",
"type": "number"
},
"interval": {
"description": "Time interval for data points",
"type": "string"
},
"limit": {
"description": "Maximum number of data points to return. Mutually exclusive with from/to parameters",
"type": "number"
},
"settle": {
"description": "Settlement currency",
"type": "string"
},
"to": {
"description": "End timestamp in seconds, defaults to current time if not specified",
"type": "number"
}
},
"required": [
"contract"
]
}🟢cex_fx_get_fx_risk_limit_table(settle, table_id)
Get a specific risk limit tier table by table ID.
輸入結構描述
{
"type": "object",
"properties": {
"settle": {
"description": "Settlement currency: usdt or btc",
"type": "string"
},
"table_id": {
"description": "Risk limit table ID",
"type": "string"
}
},
"required": [
"settle",
"table_id"
]
}🟢cex_fx_get_fx_tickers(contract, settle)
Get ticker information for futures contracts
輸入結構描述
{
"type": "object",
"properties": {
"contract": {
"description": "Futures contract name. Only returns data for this contract if specified",
"type": "string"
},
"settle": {
"description": "Settlement currency",
"type": "string"
}
}
}🟢cex_fx_get_fx_trades(contract, from, last_id, limit, offset, ...)
Get recent public trades for a futures contract
輸入結構描述
{
"type": "object",
"properties": {
"contract": {
"description": "Futures contract name",
"type": "string"
},
"from": {
"description": "Start timestamp in seconds. If not specified, returns records limited by to and limit",
"type": "number"
},
"last_id": {
"description": "Specify list starting point using the last record ID from previous request",
"type": "string"
},
"limit": {
"description": "Maximum number of records to return",
"type": "number"
},
"offset": {
"description": "List offset, starting from 0",
"type": "number"
},
"settle": {
"description": "Settlement currency",
"type": "string"
},
"to": {
"description": "End timestamp in seconds, defaults to current time if not specified",
"type": "number"
}
},
"required": [
"contract"
]
}🟢cex_fx_get_index_constituents(index, settle)
Get constituent assets and weights for a futures index
輸入結構描述
{
"type": "object",
"properties": {
"index": {
"description": "Index name",
"type": "string"
},
"settle": {
"description": "Settlement currency",
"type": "string"
}
},
"required": [
"index"
]
}🟢cex_fx_list_batch_fx_funding_rates(contracts, settle)
Get current funding rates for multiple contracts in one request
輸入結構描述
{
"type": "object",
"properties": {
"contracts": {
"description": "Comma-separated list of contract names, e.g. BTC_USDT,ETH_USDT",
"type": "string"
},
"settle": {
"description": "Settlement currency",
"type": "string"
}
},
"required": [
"contracts"
]
}🟢cex_fx_list_contract_stats(contract, from, interval, limit, settle)
Get contract statistics (open interest, long/short ratio, etc.)
輸入結構描述
{
"type": "object",
"properties": {
"contract": {
"description": "Futures contract name",
"type": "string"
},
"from": {
"description": "Start timestamp in seconds",
"type": "number"
},
"interval": {
"description": "Time interval for data points",
"type": "string"
},
"limit": {
"description": "Maximum number of data points to return",
"type": "number"
},
"settle": {
"description": "Settlement currency",
"type": "string"
}
},
"required": [
"contract"
]
}🟢cex_fx_list_fx_contracts(limit, offset, settle)
List all perpetual futures contracts
輸入結構描述
{
"type": "object",
"properties": {
"limit": {
"description": "Maximum number of records to return",
"type": "number"
},
"offset": {
"description": "List offset, starting from 0",
"type": "number"
},
"settle": {
"description": "Settlement currency",
"type": "string"
}
}
}🟢cex_fx_list_fx_insurance_ledger(limit, settle)
Get futures insurance fund history
輸入結構描述
{
"type": "object",
"properties": {
"limit": {
"description": "Maximum number of records to return",
"type": "number"
},
"settle": {
"description": "Settlement currency",
"type": "string"
}
}
}🟢cex_fx_list_fx_liq_orders(contract, from, limit, settle, to)
Get personal futures liquidation history.
輸入結構描述
{
"type": "object",
"properties": {
"contract": {
"description": "Futures contract name. Only returns data for this contract if specified",
"type": "string"
},
"from": {
"description": "Start timestamp in seconds",
"type": "number"
},
"limit": {
"description": "Maximum number of records to return",
"type": "number"
},
"settle": {
"description": "Settlement currency",
"type": "string"
},
"to": {
"description": "End timestamp in seconds",
"type": "number"
}
}
}🟢cex_launch_get_candy_drop_activity_list_v4(currency, limit, offset, register_status, rule_name, ...)
List CandyDrop activities with optional filters (public, no auth)
輸入結構描述
{
"type": "object",
"properties": {
"currency": {
"description": "Filter by currency name",
"type": "string"
},
"limit": {
"description": "Max rows to return, default 10, max 30",
"type": "number"
},
"offset": {
"description": "Offset for pagination, default 0",
"type": "number"
},
"register_status": {
"description": "registered | unregistered; omit for all",
"type": "string"
},
"rule_name": {
"description": "Task type filter: spot, futures, deposit, invite, trading_bot, simple_earn, first_deposit, alpha, flash_swap, tradfi, etf",
"type": "string"
},
"status": {
"description": "ongoing | upcoming | ended; omit for all",
"type": "string"
}
}
}🟢cex_launch_get_candy_drop_activity_rules_v4(activity_id, currency)
Get CandyDrop activity rules including prize pools and tasks (public). Pass activity_id OR currency (at least one required by API)
輸入結構描述
{
"type": "object",
"properties": {
"activity_id": {
"description": "Activity ID; use with or instead of currency",
"type": "number"
},
"currency": {
"description": "Project/currency name; use with or instead of activity_id",
"type": "string"
}
}
}🟢cex_launch_get_hodler_airdrop_project_list(join, keyword, page, size, status)
List HODLer Airdrop campaigns with optional filters (public; logged-in users may see extra participation info)
輸入結構描述
{
"type": "object",
"properties": {
"join": {
"description": "Participation filter: 0=all (default), 1=joined only. Omit parameter to use API default (all)",
"type": "number"
},
"keyword": {
"description": "Fuzzy match on currency or project name",
"type": "string"
},
"page": {
"description": "Page number, starting from 1",
"type": "number"
},
"size": {
"description": "Items per page, default 10",
"type": "number"
},
"status": {
"description": "Filter: ACTIVE, UNDERWAY, PREHEAT, FINISH; omit for all",
"type": "string"
}
}
}🟢cex_launch_list_launch_pool_projects(limit_rule, mortgage_coin, page, page_size, search_coin, ...)
List launch pool projects with optional filters
輸入結構描述
{
"type": "object",
"properties": {
"limit_rule": {
"description": "Limit rule: 0=Normal pool, 1=Newbie pool",
"type": "number"
},
"mortgage_coin": {
"description": "Staking currency exact match",
"type": "string"
},
"page": {
"description": "Page number, starting from 1",
"type": "number"
},
"page_size": {
"description": "Items per page, default 10, max 30",
"type": "number"
},
"search_coin": {
"description": "Reward currency & name fuzzy match",
"type": "string"
},
"sort_type": {
"description": "Sort type: 1=Max APR descending, 2=Max APR ascending",
"type": "number"
},
"status": {
"description": "Project status filter: 0=All, 1=In progress, 2=Warming up, 3=Ended, 4=In progress + Warming up",
"type": "number"
}
}
}🟢cex_margin_get_market_margin_tier(currency_pair)
Get margin leverage tiers for a currency pair
輸入結構描述
{
"type": "object",
"properties": {
"currency_pair": {
"description": "Currency pair, e.g. BTC_USDT",
"type": "string"
}
},
"required": [
"currency_pair"
]
}🟢cex_margin_get_uni_currency_pair(currency_pair)
Get details of a specific unified margin currency pair
輸入結構描述
{
"type": "object",
"properties": {
"currency_pair": {
"description": "Currency pair, e.g. ADA_USDT",
"type": "string"
}
},
"required": [
"currency_pair"
]
}🟢cex_margin_list_uni_currency_pairs
List all currency pairs supported for unified margin lending
輸入結構描述
{
"type": "object"
}🟢cex_mcl_get_multi_collateral_current_rate(currencies, vip_level)
Get current interest rates for specified currencies in multi-collateral loans (public)
輸入結構描述
{
"type": "object",
"properties": {
"currencies": {
"description": "Currency names separated by commas, e.g. BTC,ETH,USDT. Maximum 100 items",
"type": "string"
},
"vip_level": {
"description": "VIP level, defaults to 0 if not specified",
"type": "string"
}
},
"required": [
"currencies"
]
}🟢cex_mcl_get_multi_collateral_fix_rate
Get available fixed interest rates for multi-collateral loans (public)
輸入結構描述
{
"type": "object"
}🟢cex_mcl_get_multi_collateral_ltv
Get LTV (Loan-to-Value) ratios for multi-collateral loans (public)
輸入結構描述
{
"type": "object"
}🟢cex_mcl_list_multi_collateral_currencies
List all supported currencies for multi-collateral loans (public)
輸入結構描述
{
"type": "object"
}🟢cex_options_get_options_contract(contract)
Get details of a single options contract
輸入結構描述
{
"type": "object",
"properties": {
"contract": {
"description": "Options contract name",
"type": "string"
}
},
"required": [
"contract"
]
}🟢cex_options_get_options_settlement(at, contract, underlying)
Get a single options settlement record
輸入結構描述
{
"type": "object",
"properties": {
"at": {
"description": "Settlement timestamp (Unix timestamp in seconds)",
"type": "string"
},
"contract": {
"description": "Options contract name",
"type": "string"
},
"underlying": {
"description": "Underlying asset name, e.g. BTC_USDT",
"type": "string"
}
},
"required": [
"contract",
"underlying",
"at"
]
}🟢cex_options_list_options_candlesticks(contract, from, interval, limit, to)
Get options candlestick data
輸入結構描述
{
"type": "object",
"properties": {
"contract": {
"description": "Options contract name",
"type": "string"
},
"from": {
"description": "Start timestamp in seconds",
"type": "number"
},
"interval": {
"description": "Time interval between data points, e.g. 1m, 5m, 15m, 30m, 1h",
"type": "string"
},
"limit": {
"description": "Maximum number of records to return",
"type": "number"
},
"to": {
"description": "End timestamp in seconds",
"type": "number"
}
},
"required": [
"contract"
]
}🟢cex_options_list_options_contracts(expiration, underlying)
List all options contracts for an underlying
輸入結構描述
{
"type": "object",
"properties": {
"expiration": {
"description": "Unix timestamp of expiration date",
"type": "number"
},
"underlying": {
"description": "Underlying asset name, e.g. BTC_USDT",
"type": "string"
}
},
"required": [
"underlying"
]
}🟢cex_options_list_options_expirations(underlying)
List option expiration dates for an underlying
輸入結構描述
{
"type": "object",
"properties": {
"underlying": {
"description": "Underlying asset name, e.g. BTC_USDT",
"type": "string"
}
},
"required": [
"underlying"
]
}🟢cex_options_list_options_order_book(contract, interval, limit, with_id)
Get options order book
輸入結構描述
{
"type": "object",
"properties": {
"contract": {
"description": "Options contract name",
"type": "string"
},
"interval": {
"description": "Price precision for merged depth. 0 means no merging",
"type": "string"
},
"limit": {
"description": "Number of depth levels",
"type": "number"
},
"with_id": {
"description": "Whether to return depth update ID",
"type": "boolean"
}
},
"required": [
"contract"
]
}🟢cex_options_list_options_settlements(from, limit, offset, to, underlying)
List options settlement history for an underlying
輸入結構描述
{
"type": "object",
"properties": {
"from": {
"description": "Start timestamp in seconds",
"type": "number"
},
"limit": {
"description": "Maximum number of records to return",
"type": "number"
},
"offset": {
"description": "List offset, starting from 0",
"type": "number"
},
"to": {
"description": "End timestamp in seconds",
"type": "number"
},
"underlying": {
"description": "Underlying asset name, e.g. BTC_USDT",
"type": "string"
}
},
"required": [
"underlying"
]
}🟢cex_options_list_options_tickers(underlying)
Get options tickers for an underlying
輸入結構描述
{
"type": "object",
"properties": {
"underlying": {
"description": "Underlying asset name, e.g. BTC_USDT",
"type": "string"
}
},
"required": [
"underlying"
]
}🟢cex_options_list_options_trades(contract, from, limit, offset, to, ...)
List public options trades
輸入結構描述
{
"type": "object",
"properties": {
"contract": {
"description": "Options contract name",
"type": "string"
},
"from": {
"description": "Start timestamp in seconds",
"type": "number"
},
"limit": {
"description": "Maximum number of records to return",
"type": "number"
},
"offset": {
"description": "List offset, starting from 0",
"type": "number"
},
"to": {
"description": "End timestamp in seconds",
"type": "number"
},
"type": {
"description": "Option type: C for call, P for put",
"type": "string"
}
}
}🟢cex_options_list_options_underlying_candlesticks(from, interval, limit, to, underlying)
Get candlestick data for an options underlying index
輸入結構描述
{
"type": "object",
"properties": {
"from": {
"description": "Start timestamp in seconds",
"type": "number"
},
"interval": {
"description": "Time interval between data points, e.g. 1m, 5m, 15m, 30m, 1h",
"type": "string"
},
"limit": {
"description": "Maximum number of records to return",
"type": "number"
},
"to": {
"description": "End timestamp in seconds",
"type": "number"
},
"underlying": {
"description": "Underlying asset name, e.g. BTC_USDT",
"type": "string"
}
},
"required": [
"underlying"
]
}🟢cex_options_list_options_underlying_tickers(underlying)
Get ticker data for all contracts under an underlying
輸入結構描述
{
"type": "object",
"properties": {
"underlying": {
"description": "Underlying asset name, e.g. BTC_USDT",
"type": "string"
}
},
"required": [
"underlying"
]
}🟢cex_options_list_options_underlyings
List all options underlying assets
輸入結構描述
{
"type": "object"
}🟢cex_spot_get_currency(currency)
Get details of a single currency
輸入結構描述
{
"type": "object",
"properties": {
"currency": {
"description": "Currency name",
"type": "string"
}
},
"required": [
"currency"
]
}🟢cex_spot_get_currency_pair(currency_pair)
Get details of a single currency pair
輸入結構描述
{
"type": "object",
"properties": {
"currency_pair": {
"description": "Currency pair name, e.g. BTC_USDT",
"type": "string"
}
},
"required": [
"currency_pair"
]
}🟢cex_spot_get_spot_candlesticks(currency_pair, from, interval, limit, to)
Get candlestick/OHLCV data for a currency pair
輸入結構描述
{
"type": "object",
"properties": {
"currency_pair": {
"description": "Currency pair",
"type": "string"
},
"from": {
"description": "Start time of K-line in Unix timestamp (seconds). Defaults to to - 100 * interval if not specified",
"type": "number"
},
"interval": {
"description": "Time interval of data points. Note: 30d represents natural month, not 30 days",
"type": "string"
},
"limit": {
"description": "Maximum number of data points to return. Mutually exclusive with from/to parameters",
"type": "number"
},
"to": {
"description": "End time of K-line in Unix timestamp (seconds). Defaults to current time if not specified",
"type": "number"
}
},
"required": [
"currency_pair"
]
}🟢cex_spot_get_spot_order_book(currency_pair, interval, limit, with_id)
Get the order book for a currency pair
輸入結構描述
{
"type": "object",
"properties": {
"currency_pair": {
"description": "Currency pair",
"type": "string"
},
"interval": {
"description": "Order depth aggregation precision. 0 means no aggregation",
"type": "string"
},
"limit": {
"description": "Maximum number of order depth levels to return, default 10, max 100",
"type": "number"
},
"with_id": {
"description": "Whether to return order book update ID",
"type": "boolean"
}
},
"required": [
"currency_pair"
]
}🟢cex_spot_get_spot_tickers(currency_pair, timezone)
Get ticker information for one or all currency pairs
輸入結構描述
{
"type": "object",
"properties": {
"currency_pair": {
"description": "Currency pair name, e.g. BTC_USDT. Returns all pairs if not specified",
"type": "string"
},
"timezone": {
"description": "Timezone, e.g. Asia/Shanghai. Affects the time range of statistics",
"type": "string"
}
}
}🟢cex_spot_get_spot_trades(currency_pair, from, last_id, limit, page, ...)
Get recent trades for a currency pair
輸入結構描述
{
"type": "object",
"properties": {
"currency_pair": {
"description": "Currency pair",
"type": "string"
},
"from": {
"description": "Start timestamp in seconds",
"type": "number"
},
"last_id": {
"description": "Use the last record ID from previous list as starting point for next list",
"type": "string"
},
"limit": {
"description": "Maximum number of records to return, default 100",
"type": "number"
},
"page": {
"description": "Page number",
"type": "number"
},
"reverse": {
"description": "Whether to retrieve records less than last_id. Default returns records greater than last_id",
"type": "boolean"
},
"to": {
"description": "End timestamp in seconds, defaults to current time if not specified",
"type": "number"
}
},
"required": [
"currency_pair"
]
}🟢cex_spot_list_currencies
List all currencies supported
輸入結構描述
{
"type": "object"
}🟢cex_spot_list_currency_pairs
List all available spot trading pairs
輸入結構描述
{
"type": "object"
}🟢cex_square_list_live_replay(coin, limit, sort, tag)
List live stream replays from Gate Square
輸入結構描述
{
"type": "object",
"properties": {
"coin": {
"description": "Currency name filter (e.g. BTC, ETH)",
"type": "string"
},
"limit": {
"description": "Number of results, 1~10, default 3",
"type": "number"
},
"sort": {
"description": "Sort order: hot=hottest (default), new=newest",
"type": "string"
},
"tag": {
"description": "Business type filter: Market Analysis, Hot Topics, Blockchain, Others",
"type": "string"
}
}
}🟢cex_square_list_square_ai_search(currency, keyword, limit, page, sort, ...)
Search Gate Square content using AI (posts, analysis, signals)
輸入結構描述
{
"type": "object",
"properties": {
"currency": {
"description": "Currency filter (exact currency code, e.g. BTC, ETH, SOL)",
"type": "string"
},
"keyword": {
"description": "Search keyword (currency name or content keyword, e.g. BTC, ETH)",
"type": "string"
},
"limit": {
"description": "Number of results, 1~50, default 10",
"type": "number"
},
"page": {
"description": "Page number for pagination, starting from 1",
"type": "number"
},
"sort": {
"description": "Sort order: 0=hottest (default), 1=newest",
"type": "number"
},
"time_range": {
"description": "Time range: 0=all (default), 1=last day, 2=last week, 3=last month",
"type": "number"
}
}
}社群
證據