Coinbase oauth to get transactions
kilimchoi opened this issue · comments
Kilim Choi commented
Kilim Choi commented
Create a new button with a label "Connect to Coinbase" next to "+ add a new transaction" which opens a popover that asks users to provide their credentials. If oauth is successful, we pull their transactions info using this api endpoint, https://api.coinbase.com/v2/accounts/:account_id/transactions
Then, we create user's transactions accordingly.
We also run a sidekiq daily to monitor for any new transactions.
Kilim Choi commented
Please also take a look at,
GET https://api.coinbase.com/v2/accounts/:account_id/buys
GET https://api.coinbase.com/v2/accounts/:account_id/sells
We only want to account for buys and sells.