策略 API

获取支持的链及 Protocol 列表#

获取扫链所支持的链及对应 Protocol 列表。

请求 URL#

GET https://web3.okx.com/api/v6/dex/market/memepump/supported/chainsProtocol

请求参数#

返回参数#

参数名类型描述
chainIndexString链唯一标识(如 501 = Solana,56 = BSC)。
protocolListArray该链支持的 Protocol 列表。
>protocolIdStringProtocol 编号(如 1 = PUMP_FUN)。
>protocolNameStringProtocol 名称(如 PUMP_FUNSUNPUMP)。

请求示例#

Shell
curl --location --request GET 'https://web3.okx.com/api/v6/dex/market/memepump/supported/chainsProtocol' \
--header 'OK-ACCESS-KEY: 37c541a1-****-****-****-10fe7a038418' \
--header 'OK-ACCESS-SIGN: leaV********3uw=' \
--header 'OK-ACCESS-PASSPHRASE: 1****6' \
--header 'OK-ACCESS-TIMESTAMP: 2023-10-18T12:21:41.274Z'

返回示例#

Json
{
  "code": "0",
  "msg": "",
  "data": [
    {
      "chainIndex": "501",
      "chainName": "Solana",
      "protocolList": [
        { "protocolId": "1", "protocolName": "PUMP_FUN" },
        { "protocolId": "2", "protocolName": "MOONSHOT" }
      ]
    },
    {
      "chainIndex": "56",
      "chainName": "BSC",
      "protocolList": [
        { "protocolId": "3", "protocolName": "SUNPUMP" }
      ]
    }
  ]
}