How to view a coinbase transactional transaction

node.js: https://github.com/coinbase/coinbase-node/tree/master/test and the documentation: https://github.com/coinbase/coinbase-node do not seem to describe the tests or functionality that return all activity in the account. I am trying to access all purchases and sales of currencies for an account. Is this functionality available? Can viewing through purchase api buy and sell for an account to support each currency coinbase?

Update: im trying to get the cumulative sum of all purchases for all currencies in the coinbase portfolio. Is my method above the canonical way to achieve this?

+4
source share
1 answer

As described in List Transactions :

Enumerates account transactions. See transaction resource for details .

HTTP REQUEST

GET https://api.coinbase.com/v2/accounts/:account_id/transactions

SCOPES

  • wallet:transactions:read

Request example

var Client = require('coinbase').Client;

var client = new Client({'apiKey': 'API KEY',
                         'apiSecret': 'API SECRET'});

client.getAccount('2bbf394c-193b-5b2a-9155-3b4732659ede', function(err, account) {
  account.getTransactions(function(err, txs) {
    console.log(txs);
  });
});
+2
source

Source: https://habr.com/ru/post/1678461/


All Articles