-
-
Notifications
You must be signed in to change notification settings - Fork 83
/
example-huobi-output.beancount
31 lines (26 loc) · 1.16 KB
/
example-huobi-output.beancount
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
option "title" "测试"
option "operating_currency" "CNY"
1970-01-01 open Assets:Huobi:Cash
1970-01-01 open Assets:Huobi:Positions
1970-01-01 open Assets:Rule1:Cash
1970-01-01 open Assets:Rule1:Positions
1970-01-01 open Expenses:Huobi:Commission
1970-01-01 open Expenses:Rule1:Commission
1970-01-01 open Income:Huobi:PnL
1970-01-01 open Income:Rule1:PnL
2021-02-23 * "Huobi-币币交易" "买入-BTC/USDT"
Assets:Rule1:Cash -13.98369600 USDT
Assets:Rule1:Positions 0.00030400 BTC {45999.00000000 USDT} @@ 13.98369600 USDT
Assets:Rule1:Cash -0.00000060 BTC @ 45999.00000000 USDT
Expenses:Rule1:Commission 0.00000060 BTC @ 45999.00000000 USDT
2021-02-23 * "Huobi-币币交易" "买入-BTC1S/USDT"
Assets:Rule1:Cash -5.60652159 USDT
Assets:Rule1:Positions 4.57600000 BTC1S {1.22520000 USDT} @@ 5.60652159 USDT
Assets:Rule1:Cash -0.00915201 BTC1S @ 1.22520000 USDT
Expenses:Rule1:Commission 0.00915201 BTC1S @ 1.22520000 USDT
2021-02-24 * "Huobi-币币交易" "卖出-BTC/USDT"
Assets:Huobi:Positions -0.00010800 BTC {} @ 49850.00000000 USDT
Assets:Huobi:Cash 5.38380000 USDT
Assets:Huobi:Cash -0.01076760 USDT
Expenses:Huobi:Commission 0.01076760 USDT
Income:Huobi:PnL