Documentation ¶
Index ¶
- Variables
- func BasicAuth(c *gin.Context)
- type Env
- func (env *Env) Get24hVolume(c *gin.Context)
- func (env *Env) GetAllBlockchains(c *gin.Context)
- func (env *Env) GetAllNFTClasses(c *gin.Context)
- func (env *Env) GetAllSymbols(c *gin.Context)
- func (env *Env) GetAsset(c *gin.Context)
- func (env *Env) GetAssetChartPoints(c *gin.Context)
- func (env *Env) GetAssetExchanges(c *gin.Context)
- func (env *Env) GetAssetQuotation(c *gin.Context)
- func (env *Env) GetAssetSupply(c *gin.Context)
- func (env *Env) GetBenchmarkedIndexValue(c *gin.Context)
- func (env *Env) GetChartPoints(c *gin.Context)
- func (env *Env) GetChartPointsAllExchanges(c *gin.Context)
- func (env *Env) GetCompoundedAvg(c *gin.Context)
- func (env *Env) GetCompoundedAvgDIA(c *gin.Context)
- func (env *Env) GetCompoundedRate(c *gin.Context)
- func (env *Env) GetCryptoDerivative(c *gin.Context)
- func (env *Env) GetCryptoIndex(c *gin.Context)
- func (env *Env) GetCryptoIndexValues(c *gin.Context)
- func (env *Env) GetCviIndex(c *gin.Context)
- func (env *Env) GetDefiRate(c *gin.Context)
- func (env *Env) GetDefiState(c *gin.Context)
- func (env *Env) GetDiaCirculatingSupply(c *gin.Context)
- func (env *Env) GetDiaTotalSupply(c *gin.Context)
- func (env *Env) GetExchanges(c *gin.Context)
- func (env *Env) GetFeedStats(c *gin.Context)
- func (env *Env) GetFiatQuotations(c *gin.Context)
- func (env *Env) GetForeignQuotation(c *gin.Context)
- func (env *Env) GetForeignSymbols(c *gin.Context)
- func (env *Env) GetInterestRate(c *gin.Context)
- func (env *Env) GetLastTrades(c *gin.Context)
- func (env *Env) GetLastTradesAsset(c *gin.Context)
- func (env *Env) GetLendingProtocols(c *gin.Context)
- func (env *Env) GetMissingExchangeSymbol(c *gin.Context)
- func (env *Env) GetNFT(c *gin.Context)
- func (env *Env) GetNFTCategories(c *gin.Context)
- func (env *Env) GetNFTClasses(c *gin.Context)
- func (env *Env) GetNFTDownday(c *gin.Context)
- func (env *Env) GetNFTFloor(c *gin.Context)
- func (env *Env) GetNFTFloorMA(c *gin.Context)
- func (env *Env) GetNFTTrades(c *gin.Context)
- func (env *Env) GetNFTTradesCurrent(c *gin.Context)
- func (env *Env) GetPaxgQuotationGrams(c *gin.Context)
- func (env *Env) GetPaxgQuotationOunces(c *gin.Context)
- func (env *Env) GetQuotation(c *gin.Context)
- func (env *Env) GetRates(c *gin.Context)
- func (env *Env) GetStockQuotation(c *gin.Context)
- func (env *Env) GetStockSymbols(c *gin.Context)
- func (env *Env) GetSupplies(c *gin.Context)
- func (env *Env) GetSupply(c *gin.Context)
- func (env *Env) GetVolume(c *gin.Context)
- func (env *Env) GetVwapFirefly(c *gin.Context)
- func (env *Env) PostIndexRebalance(c *gin.Context)
- func (env *Env) PostSupply(c *gin.Context)
- func (env *Env) SetQuotation(c *gin.Context)
- type RestBasicAuth
Constants ¶
This section is empty.
Variables ¶
var DECIMALS_CACHE = make(map[dia.Asset]uint8)
Functions ¶
Types ¶
type Env ¶
func (*Env) Get24hVolume ¶
Get24hVolume if no times are set use the last 24h
func (*Env) GetAllBlockchains ¶ added in v1.2.0
func (*Env) GetAllNFTClasses ¶
GetAllNFTClasses returns all NFT classes.
func (*Env) GetAllSymbols ¶
GetAllSymbols returns all Symbols on @exchange. If @exchange is not set, it returns all symbols across all exchanges. If @top is set to an integer, only the top @top symbols w.r.t. trading volume are returned. This is only active if @exchange is not set.
func (*Env) GetAssetChartPoints ¶ added in v1.4.2
GetAssetChartPoints queries for filter points of asset given by address and blockchain.
func (*Env) GetAssetExchanges ¶ added in v1.2.0
func (*Env) GetAssetQuotation ¶ added in v1.3.5
GetAssetQuotation returns quotation of asset with highest market cap among all assets with symbol ticker @symbol.
func (*Env) GetAssetSupply ¶ added in v1.4.2
GetSupply returns latest supply of token with @symbol
func (*Env) GetBenchmarkedIndexValue ¶ added in v1.2.0
GetBenchmarkedIndexValue Get benchmarked Index values
func (*Env) GetChartPoints ¶
GetChartPoints godoc @Param scale query string false "scale 5m 30m 1h 4h 1d 1w"
func (*Env) GetChartPointsAllExchanges ¶
GetChartPointsAllExchanges godoc @Param scale query string false "scale 5m 30m 1h 4h 1d 1w"
func (*Env) GetCompoundedAvg ¶
GetCompoundedAvg is the delegate method to fetch averaged compounded rate values for interest rates
func (*Env) GetCompoundedAvgDIA ¶
GetCompoundedAvgDIA is the delegate method to fetch averaged compounded rate values for interest rates
func (*Env) GetCompoundedRate ¶
GetCompoundedRate is the delegate method to fetch compounded rate values for interest rates
func (*Env) GetCryptoDerivative ¶
GetCryptoDerivative returns all information on a given derivative of class @derivativeType and name @name
func (*Env) GetCryptoIndex ¶
func (*Env) GetCryptoIndexValues ¶ added in v1.4.0
func (*Env) GetCviIndex ¶
func (*Env) GetDefiRate ¶
GetDefiRate is the delegate method to fetch the value(s) of the defi lending rate of @asset at the exchange with @protocol. Last value is retrieved. Otional query parameters allow to obtain data in a time range.
func (*Env) GetDefiState ¶
GetDefiState is the delegate method to fetch the value(s) of the defi lending rate of @asset at the exchange with @protocol. Last value is retrieved. Otional query parameters allow to obtain data in a time range.
func (*Env) GetDiaCirculatingSupply ¶ added in v1.4.2
func (*Env) GetDiaTotalSupply ¶ added in v1.4.2
func (*Env) GetExchanges ¶
GetExchanges is the delegate method for fetching all available trading places.
func (*Env) GetFeedStats ¶ added in v1.4.2
func (*Env) GetFiatQuotations ¶
GetFiatQuotations returns several quotations vs USD as published by the ECB
func (*Env) GetForeignQuotation ¶
GetForeignQuotation returns several quotations vs USD as published by the ECB
func (*Env) GetForeignSymbols ¶
GetForeignSymbols returns all symbols available for quotation from @source, along with their ITIN
func (*Env) GetInterestRate ¶
GetInterestRate is the delegate method to fetch the value of the interest rate with symbol @symbol at the date @time. Optional query parameters allow to obtain data in a time range.
func (*Env) GetLastTrades ¶
GetLastTrades Get last 1000 trades of an asset
func (*Env) GetLastTradesAsset ¶ added in v1.4.0
GetLastTrades returns last N trades of an asset. Defaults to N=1000.
func (*Env) GetLendingProtocols ¶
GetLendingProtocols returns all symbols available in our (redis) database. Optional query parameter exchange returns only symbols available on this exchange.
func (*Env) GetMissingExchangeSymbol ¶ added in v1.2.0
GetMissingExchangeSymbol returns all unverified symbol
func (*Env) GetNFTCategories ¶
GetNFTCategories returns all available NFT categories.
func (*Env) GetNFTClasses ¶
GetNFTClasses returns all NFT classes.
func (*Env) GetNFTDownday ¶ added in v1.4.2
GetNFTDownday returns the moving average floor price of the nft class over the last 30 days.
func (*Env) GetNFTFloor ¶ added in v1.4.2
GetNFTPrice30Days returns the average price of the whole nft class over the last 30 days.
func (*Env) GetNFTFloorMA ¶ added in v1.4.2
GetNFTFloorMA returns the moving average floor price of the nft class over the last 30 days.
func (*Env) GetNFTTrades ¶ added in v1.2.0
GetNFTTrades returns all trades of the unique NFT with given parameters.
func (*Env) GetNFTTradesCurrent ¶
GetNFTTradesCurrent returns all recent trades of the unique NFT with given parameters.
func (*Env) GetPaxgQuotationGrams ¶
func (*Env) GetPaxgQuotationOunces ¶
func (*Env) GetQuotation ¶
GetQuotation returns quotation of asset with highest market cap among all assets with symbol ticker @symbol.
func (*Env) GetRates ¶
GetRates is the delegate method for fetching all rate types present in the (redis) database.
func (*Env) GetStockQuotation ¶ added in v1.4.0
GetStockQuotation is the delegate method to fetch the value(s) of quotations of asset with @symbol from @source. Last value is retrieved. Otional query parameters allow to obtain data in a time range.
func (*Env) GetStockSymbols ¶ added in v1.4.0
func (*Env) GetSupplies ¶
GetSupplies returns a time range of supplies of token with @symbol
func (*Env) GetVwapFirefly ¶ added in v1.4.2
func (*Env) PostIndexRebalance ¶
PostIndexRebalance Post data must be of the type [][]string. Each entry of the 2-d slice corresponds to an asset and has the format [Blockchain, Address].
func (*Env) SetQuotation ¶ added in v1.2.0
SetQuotation sets a quotation to redis cache. Input must be of the format: '["blockchain","address","value"]'
type RestBasicAuth ¶ added in v1.3.0
type RestBasicAuth struct {
// contains filtered or unexported fields
}