首页 > 解决方案 > 交易 resource_path 返回 not_found 错误

问题描述

在 trade["resource_path"] 内的交易信息中返回交易交易的资源路径:

{
    "id": "e568c167-69ae-436f-90f2-c8785a625185",
    "type": "trade",
    "status": "completed",
    "amount": {
        "amount": "-0.00002100",
        "currency": "BTC"
    },
    "native_amount": {
        "amount": "-1.02",
        "currency": "USD"
    },
    "description": null,
    "created_at": "2019-07-06T09:28:54Z",
    "updated_at": "2019-07-06T09:28:54Z",
    "resource": "transaction",
    "resource_path": "/v2/accounts/838d0df7-6d9c-4dfa-9e56-716342b3b4fa/transactions/e568c167-69ae-436f-90f2-c8785a625185",
    "instant_exchange": false,
    "trade": {
        "id": "b1d42656-6e60-473a-95ce-6e29da90113c",
        "resource": "trade",
        "resource_path": "/v2/accounts/838d0df7-6d9c-4dfa-9e56-716342b3b4fa/trades/b1d42656-6e60-473a-95ce-6e29da90113c"
    }
}

但是,查询该交易资源路径 https://coinbase.com/api/v2/accounts/838d0df7-6d9c-4dfa-9e56-716342b3b4fa/trades/b1d42656-6e60-473a-95ce-6e29da90113c以获取有关交易的详细信息返回 not_found 错误。

标签: coinbase-api

解决方案


推荐阅读