mirror of
https://github.com/aclindsa/moneygo.git
synced 2024-10-31 16:00:05 -04:00
20 lines
366 B
Go
20 lines
366 B
Go
package main
|
|
|
|
type SecurityType int64
|
|
|
|
const (
|
|
Banknote SecurityType = 1
|
|
Bond = 2
|
|
Stock = 3
|
|
MutualFund = 4
|
|
)
|
|
|
|
type Security struct {
|
|
SecurityId int64
|
|
Name string
|
|
// Number of decimal digits (to the right of the decimal point) this
|
|
// security is precise to
|
|
Precision int64
|
|
Type SecurityType
|
|
}
|