Hello,
I want to get fees for the transactions of type ‘trade’ (not advanced trades fill)
I’m using this endpoint :
GET https://api.coinbase.com/v2/accounts/:account_id/transactions
By example, i have this response below for a trade
{
"id": "a66cd195-cd02-5b28-8037-9451600a47bb",
"type": "trade",
"status": "completed",
"amount": {
"amount": "-60.997926",
"currency": "ALGO"
},
"native_amount": {
"amount": "-50.00",
"currency": "USD"
},
"description": null,
"created_at": "2022-03-02T15:32:46Z",
"updated_at": "2022-03-02T15:32:48Z",
"resource": "transaction",
"resource_path": "/v2/accounts/306062cb-1cfd-56ec-bc0f-9e23a1c339c9/transactions/a66cd195-cd02-5b28-8037-9451600a47bb",
"instant_exchange": false,
"trade": {
"id": "708841cc-c742-54d8-b0fa-0f217a388b5b",
"resource": "trade",
"resource_path": ""
},
"details": {
"title": "Convertis à partir de Algorand",
"subtitle": "En utilisant Portefeuille en ALGO",
"header": "60,997926 ALGO convertis (50,00 $)",
"health": "positive",
"payment_method_name": "Portefeuille en ALGO"
},
"hide_native_amount": false
}
Ok, i get the id of the trade, but i don’t understand how to get details about it to find fees data,
There is no “resource_path” available and i don’t see in documentation a path to get this.
For the other transactions (buy, withdrawals, advanced trade ) , i have not this problem because either the fee data are directly available ( for advanced trades) or there is a path to get it ( for buys) in the response.
So i don’t see where is my error.
I hope, i have give enough informations (let me know if not)
Please, can you tell me where i must look for ?
Best,
Olivier