Skip to content

Commit

Permalink
ADD missing book types for binance and coinbase (closes #129)
Browse files Browse the repository at this point in the history
  • Loading branch information
provinzio committed May 14, 2022
1 parent 8f738cf commit cd49484
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/book.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,10 @@ def _read_binance(self, file_path: Path, version: int = 1) -> None:
"POS savings purchase": "Staking",
"POS savings redemption": "StakingEnd",
"Withdraw": "Withdrawal",
#
"Rewards Distribution": "Airdrop",
"Liquid Swap rewards": "CoinLendInterest",
"Liquid Swap add/sell": "CoinLend",
}

with open(file_path, encoding="utf8") as f:
Expand Down Expand Up @@ -216,6 +220,7 @@ def _read_coinbase(self, file_path: Path) -> None:
"Receive": "Deposit",
"Send": "Withdrawal",
"Coinbase Earn": "Buy",
"Rewards Income": "Staking",
}

with open(file_path, encoding="utf8") as f:
Expand Down

0 comments on commit cd49484

Please sign in to comment.