Documentation ¶
Index ¶
- func InsertAsset(asset Asset) (int, error)
- func RemoveAsset(assetID int) error
- func UpdateAsset(asset Asset) error
- type Asset
- func GetAsset(assetID int) (*Asset, error)
- func GetAssetByBaseAndQuoteID(baseAssetID *int, quoteAssetID *int) (*Asset, error)
- func GetAssetByTicker(ticker string) (*Asset, error)
- func GetAssetList() ([]Asset, error)
- func GetCryptoAssets() ([]Asset, error)
- func GetCryptoAssetsBySourceID(sourceID *int, excludeIgnoreMarketData bool) ([]Asset, error)
- func GetCurrentTradingAssets() ([]Asset, error)
- func GetDefaultQuoteAssetList() ([]Asset, error)
- func GetTopTenAssets() ([]Asset, error)
- type AssetWithSources
- func GetAssetWithSourceByAssetIdAndSourceID(assetID *int, sourceID *int, excludeIgnoreMarketData bool) (*AssetWithSources, error)
- func GetAssetWithSourceByAssetIdsAndSourceID(assetIDs []int, sourceID *int, excludeIgnoreMarketData bool) ([]AssetWithSources, error)
- func GetCryptoAssetsBySourceId(sourceID *int, excludeIgnoreMarketData bool) ([]AssetWithSources, error)
- func GetDefaultQuoteAssetListBySourceID(sourceID *int) ([]AssetWithSources, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InsertAsset ¶
func RemoveAsset ¶
func UpdateAsset ¶
Types ¶
type Asset ¶
type Asset struct { ID *int `json:"id"` UUID string `json:"uuid"` Name string `json:"name"` AlternateName string `json:"alternateName"` Cusip string `json:"cusip"` Ticker string `json:"ticker"` BaseAssetID *int `json:"baseAssetId"` QuoteAssetID *int `json:"quoteAssetId"` Description string `json:"description"` AssetTypeID *int `json:"assetTypeId"` CreatedBy string `json:"createdBy"` CreatedAt time.Time `json:"createdAt"` UpdatedBy string `json:"updatedBy"` UpdatedAt time.Time `json:"updatedAt"` ChainID *int `json:"chainId"` CategoryID *int `json:"categoryId"` SubCategoryID *int `json:"subCategoryId"` IsDefaultQuote *bool `json:"isDefaultQuote"` IgnoreMarketData *bool `json:"ignoreMarketData"` Decimals *int `json:"decimals"` ContractAddress string `json:"contractAddress"` }
Asset
func GetAssetByBaseAndQuoteID ¶
GetAssetByBaseAndQuoteID : get asset by base and quote id
func GetAssetByTicker ¶
GetAssetByTicker : get asset by ticker
func GetAssetList ¶
func GetCryptoAssets ¶
func GetCurrentTradingAssets ¶
func GetTopTenAssets ¶
type AssetWithSources ¶
type AssetWithSources struct { Asset SourceID *int `json:"sourceId"` SourceIdentifier string `json:"sourceIdentifier"` }
Asset
func GetAssetWithSourceByAssetIdAndSourceID ¶ added in v1.0.2
func GetAssetWithSourceByAssetIdAndSourceID(assetID *int, sourceID *int, excludeIgnoreMarketData bool) (*AssetWithSources, error)
func GetAssetWithSourceByAssetIdsAndSourceID ¶ added in v1.0.2
func GetAssetWithSourceByAssetIdsAndSourceID(assetIDs []int, sourceID *int, excludeIgnoreMarketData bool) ([]AssetWithSources, error)
func GetCryptoAssetsBySourceId ¶
func GetCryptoAssetsBySourceId(sourceID *int, excludeIgnoreMarketData bool) ([]AssetWithSources, error)
func GetDefaultQuoteAssetListBySourceID ¶
func GetDefaultQuoteAssetListBySourceID(sourceID *int) ([]AssetWithSources, error)
Click to show internal directories.
Click to hide internal directories.