aboutsummaryrefslogtreecommitdiff
path: root/markets/balance.go
diff options
context:
space:
mode:
authorjloup <jeanloup.jamet@gmail.com>2018-03-26 10:55:17 +0200
committerjloup <jeanloup.jamet@gmail.com>2018-03-26 10:55:40 +0200
commit50c6eea630c5bf6d1513d093125f11ce30deaff5 (patch)
tree64a1795e1662ee1827b6b9ad0b72833358ddffe7 /markets/balance.go
parent908ee2dd22c85d5d850f62b1a9d0066b43b80a69 (diff)
downloadFront-50c6eea630c5bf6d1513d093125f11ce30deaff5.tar.gz
Front-50c6eea630c5bf6d1513d093125f11ce30deaff5.tar.zst
Front-50c6eea630c5bf6d1513d093125f11ce30deaff5.zip
Display short positions.v0.0.3
Diffstat (limited to 'markets/balance.go')
-rw-r--r--markets/balance.go15
1 files changed, 15 insertions, 0 deletions
diff --git a/markets/balance.go b/markets/balance.go
new file mode 100644
index 0000000..cd46ac9
--- /dev/null
+++ b/markets/balance.go
@@ -0,0 +1,15 @@
1package markets
2
3import (
4 "github.com/shopspring/decimal"
5)
6
7type Balance struct {
8 Amount decimal.Decimal `json:"amount"`
9 BTCValue decimal.Decimal `json:"btcValue"`
10}
11
12type Summary struct {
13 Balances map[string]Balance
14 BTCValue decimal.Decimal
15}