Closed Tjossul closed 3 years ago
Hello again,
after reading again the transaction part of the CB doc I think this sentence proved me right, doesn't it?
"For certain types of transactions, also linked resources with type value as field will be included in the payload (example buy and sell)."
That's why we get a field "buy" with information for transaction types "buy" and should get a field "sell" for transaction types "sell".
What do you think?
Regards. Sebastian.
I have no idea.
Buy.Id
or Sell.Id
is present in the JSON data.
Usually, you can access .ExtraJson
property on any response object to retrieve JSON that has not been parsed into a C# type.
Hello,
sadly, I have no experience with these responses but surely you have and could advice me.
Every transaction seems to have an ID to find the Buy/Sell information of it. I can find the Buy ID in transactions under
"buy": { "id": XXX, "resource": "buy", "resource_path": "/v2/accounts/XXX" }
But what about Sells?
I can receive all transactions calling something like
...await client.Transactions.ListTransactionsAsync(accountId, new Coinbase.PaginationOptions { Limit = 100 })...
The Buy ID is: transaction.Buy.Id.
But the transaction has no transaction.Sell.Id.
Does this mean that the Sell ID is transaction.Buy.Id too?
Thanks and regards. Sebastian.