Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion bitcoin_dca/coinbase_pro.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def getCoinbaseAccount(self, currency):

@property
def coinbase_usdc_account(self):
return self.convertRawAccount(self.getCoinbaseAccount("USDC"))
return self.convertRawCoinbaseAccount(self.getCoinbaseAccount("USDC"))

@property
def usd_account(self):
Expand Down Expand Up @@ -187,4 +187,8 @@ def printOrderResult(order_result):

@staticmethod
def convertRawAccount(raw_account):
return Account(id=raw_account["id"], balance=float(raw_account["available"]))

@staticmethod
def convertRawCoinbaseAccount(raw_account):
return Account(id=raw_account["id"], balance=float(raw_account["balance"]))