diff options
author | jloup <jeanloup.jamet@gmail.com> | 2018-03-26 10:55:17 +0200 |
---|---|---|
committer | jloup <jeanloup.jamet@gmail.com> | 2018-03-26 10:55:40 +0200 |
commit | 50c6eea630c5bf6d1513d093125f11ce30deaff5 (patch) | |
tree | 64a1795e1662ee1827b6b9ad0b72833358ddffe7 /markets/balance.go | |
parent | 908ee2dd22c85d5d850f62b1a9d0066b43b80a69 (diff) | |
download | Front-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.go | 15 |
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 @@ | |||
1 | package markets | ||
2 | |||
3 | import ( | ||
4 | "github.com/shopspring/decimal" | ||
5 | ) | ||
6 | |||
7 | type Balance struct { | ||
8 | Amount decimal.Decimal `json:"amount"` | ||
9 | BTCValue decimal.Decimal `json:"btcValue"` | ||
10 | } | ||
11 | |||
12 | type Summary struct { | ||
13 | Balances map[string]Balance | ||
14 | BTCValue decimal.Decimal | ||
15 | } | ||