mirror of
https://github.com/aclindsa/moneygo.git
synced 2025-07-01 12:08:37 -04:00
Initial commit
This commit is contained in:
19
securities.go
Normal file
19
securities.go
Normal file
@ -0,0 +1,19 @@
|
||||
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
|
||||
}
|
Reference in New Issue
Block a user