1
0
mirror of https://github.com/aclindsa/moneygo.git synced 2025-07-01 12:08:37 -04:00

Add symbols for securities

This commit is contained in:
2015-08-26 07:38:13 -04:00
parent 01f0f9e68f
commit 099f42e4fe
3 changed files with 34 additions and 8 deletions

View File

@ -16,6 +16,7 @@ const (
type Security struct {
SecurityId int64
Name string
Symbol string
// Number of decimal digits (to the right of the decimal point) this
// security is precise to
Precision int
@ -30,11 +31,13 @@ var security_map = map[int64]*Security{
1: &Security{
SecurityId: 1,
Name: "USD",
Symbol: "$",
Precision: 2,
Type: Banknote},
2: &Security{
SecurityId: 2,
Name: "SPY",
Symbol: "SPY",
Precision: 5,
Type: Stock},
}