Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test account statements for unittest #40

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
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
12 changes: 12 additions & 0 deletions test/binance-earn.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
2021-03-17 14:38:38,Spot,Buy,BNB,0.05000000,""
2021-03-17 14:38:38,Spot,Savings purchase,BNB,-0.05000000,""
2021-03-18 01:02:29,Spot,Super BNB Mining,ALICE,0.00006904,""
2021-03-19 04:06:17,Spot,Savings Interest,BNB,9.1E-7,""
2021-03-19 09:52:28,Spot,Super BNB Mining,ALICE,0.00019208,""
2021-03-20 00:52:25,Spot,Super BNB Mining,ALICE,0.00017377,""
2021-03-20 03:48:17,Spot,Savings Interest,BNB,9.1E-7,""
2021-03-21 00:10:03,Spot,Savings Principal redemption,LDBNB,-0.05000000,""
2021-03-21 00:10:03,Spot,Savings Principal redemption,BNB,0.05000000,""
2021-03-21 01:02:25,Spot,Super BNB Mining,ALICE,0.00017357,""
2021-03-21 03:47:09,Spot,Savings Interest,BNB,9.1E-7,""
2021-03-21 14:47:09,Spot,Sell,BNB,-0.05000000,""
12 changes: 12 additions & 0 deletions test/binance.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
UTC_Time,Account,Operation,Coin,Change,Remark
2017-12-05 18:01:21,Spot,Buy,ETH,0.01138874,""
2017-12-05 18:01:21,Spot,Buy,USDT,25.0,""
2021-03-01 22:43:36,Spot,Commission History,BNB,0.00000438,""
2021-03-01 22:45:23,Spot,Commission History,BNB,0.00000501,""
2021-03-01 23:27:38,Spot,Commission History,BNB,0.00000434,""
2017-12-05 18:01:21,Spot,Fee,BNB,-0.00100000,""
2017-12-05 18:01:21,Spot,Sell,ETH,-0.01138874,""
2017-12-05 18:01:21,Spot,Buy,BNB,2.00000000,""
2021-06-07 14:00:17,Spot,Fee,BNB,-0.00004383,""
2021-06-07 14:00:17,Spot,Buy,STRAX,14.35000000,""
2021-06-07 14:00:17,Spot,Transaction Related,USDT,-23.26709000,""
11 changes: 11 additions & 0 deletions test/kraken-ledgers.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
"txid","refid","time","type","subtype","aclass","asset","amount","fee","balance"
"","<example-refid-1>","2021-02-02 10:33:53","deposit","","currency","ZEUR",1000.0000,0.0000,"<some-value>"
"<example-ledgers-txid-1>","<example-refid-1>","2021-02-02 10:36:03","deposit","","currency","ZEUR",1000.0000,0.0000,"<some-value>"
"<example-ledgers-txid-2>","<example-refid-2>","2021-02-02 13:30:51","trade","","currency","ZEUR",-997.4067,2.5933,"<some-value>"
"<example-ledgers-txid-3>","<example-refid-2>","2021-02-02 13:30:51","trade","","currency","XXBT",0.0344177800,0.0000000000,"<some-value>"
"<example-ledgers-txid-4>","<example-refid-3>","2021-02-02 13:31:08","trade","","currency","XXBT",-0.0002310800,0.0000000000,"<some-value>"
"<example-ledgers-txid-5>","<example-refid-3>","2021-02-02 13:31:08","trade","","currency","USDC",8.05962000,0.02096000,"<some-value>"
"<example-ledgers-txid-6>","<example-refid-4>","2021-02-08 09:53:58","trade","","currency","USDC",-8.01781000,0.02085000,"<some-value>"
"<example-ledgers-txid-7>","<example-refid-4>","2021-02-08 09:53:58","trade","","currency","XXBT",0.0002051900,0.0000000000,"<some-value>"
"<example-ledgers-txid-8>","<example-refid-5>","2021-02-20 01:58:26","spend","","currency","XXBT",-0.0000219600,0.0000000000,"<some-value>"
"<example-ledgers-txid-9>","<example-refid-5>","2021-02-20 01:58:26","receive","","currency","ZEUR",1.0000,0.0000,"<some-value>"
4 changes: 4 additions & 0 deletions test/kraken-trades.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
"txid","ordertxid","pair","time","type","ordertype","price","cost","fee","vol","margin","misc","ledgers"
"<example-trades-txid-1>","<example-ordertxid-1>","XXBTZEUR","2021-02-02 13:30:51.7025","buy","market",28979.40000,997.40670,2.59326,0.03441778,0.00000,"","<example-ledgers-txid-3>","<example-ledgers-txid-2>"
"<example-trades-txid-2>","<example-ordertxid-2>","XBTUSDC","2021-02-02 13:31:08.8733","sell","market",34878.04000,8.05962,0.02096,0.00023108,0.00000,"","<example-ledgers-txid-5>","<example-ledgers-txid-4>"
"<example-trades-txid-3>","<example-ordertxid-3>","XBTUSDC","2021-02-08 09:53:58.1674","buy","market",39074.30000,8.01781,0.02085,0.00020519,0.00000,"","<example-ledgers-txid-7>","<example-ledgers-txid-6>"
2 changes: 2 additions & 0 deletions test/referrer-rebates.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
UTC_Time,Account,Operation,Coin,Change,Remark
2021-05-12 00:00:36,USDT-Futures,Referrer rebates,BNB,0.00000433,""