This repository has been archived by the owner on Jul 4, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cdf571b
commit 46e796d
Showing
4 changed files
with
38 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
package models | ||
|
||
import "time" | ||
|
||
type FixedPoint int // Represents the actual value multiplied by 100 | ||
|
||
type AssetInfo struct { | ||
Year int `json:"year" bson:"year"` | ||
TipReg int `json:"-" bson:"-" ` | ||
DataCollectionDate time.Time `json:"data" bson:"data"` | ||
BDICode int `json:"-" bson:"-"` | ||
Ticker string `json:"ticker" bson:"ticker"` | ||
MarketType int `json:"market_type" bson:"market_type"` | ||
CompanyName string `json:"shot_company_name" bson:"shot_company_name"` | ||
SecurityType string `json:"security_type" bson:"security_type"` | ||
FutureMarketExpiration string `json:" future_market_expiration" bson:" future_market_expiration"` // Need to check this against an example that actually has a value | ||
Currency string `json:"currency" bson:"currency"` | ||
PriceOpen FixedPoint `json:"-" bson:"-"` | ||
PriceMax FixedPoint `json:"-" bson:"-"` | ||
PriceMin FixedPoint `json:"-" bson:"-"` | ||
PriceMean FixedPoint `json:"-" bson:"-"` | ||
PriceClose FixedPoint `json:"price_close" bson:"price_close"` | ||
PriceBid FixedPoint `json:"-" bson:"-"` | ||
PriceAsk FixedPoint `json:"-" bson:"-"` | ||
TotalTrades int `json:"-" bson:"-"` | ||
TotalQuantity int `json:"-" bson:"-"` | ||
TotalVolume FixedPoint `json:"total_volume" bson:"total_volume"` | ||
PreExe FixedPoint `json:"execution_price" bson:"execution_price"` // Needs further investigation | ||
IndOpc int `json:"-" bson:"-"` // Needs further investigation | ||
ExpirationDate time.Time `json:"expiration_date" bson:"expiration_date"` | ||
FatCot int `json:"-" bson:"-"` // Needs further investigation | ||
PtoExe int `json:"-" bson:"-"` // Needs further investigation | ||
ISINCode string `json:"-" bson:"-"` | ||
DistributionNumber int `json:"-" bson:"-"` | ||
} |