kilimchoi / coingenius

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Coinbase oauth to get transactions

kilimchoi opened this issue · comments

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.

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.