Documentation ¶
Index ¶
- func CallAPILayer(c *config.Config) (opr []byte, err error)
- func CallCoinCap(config *config.Config) ([]byte, error)
- func CallOpenExchangeRates() ([]byte, error)
- func Round(v float64) float64
- type APILayerRecord
- type APILayerResponse
- type CoinCapRecord
- type CoinCapResponse
- type KitcoData
- type KitcoRecord
- type OpenExchangeCurrencies
- type OpenExchangeRates
- type PegAssets
- type PegItems
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CallAPILayer ¶
func CallCoinCap ¶
func CallOpenExchangeRates ¶
you will need to replace the values put into peg structure
Types ¶
type APILayerRecord ¶
type APILayerRecord struct { USDAED float64 USDAFN float64 USDALL float64 USDAMD float64 USDANG float64 USDAOA float64 USDARS float64 USDAUD float64 USDAWG float64 USDAZN float64 USDBAM float64 USDBBD float64 USDBDT float64 USDBGN float64 USDBHD float64 USDBIF float64 USDBMD float64 USDBND float64 USDBOB float64 USDBRL float64 USDBSD float64 USDBTC float64 USDBTN float64 USDBWP float64 USDBYN float64 USDBYR float64 USDBZD float64 USDCAD float64 USDCDF float64 USDCHF float64 USDCLF float64 USDCLP float64 USDCNY float64 USDCOP float64 USDCRC float64 USDCUC float64 USDCUP float64 USDCVE float64 USDCZK float64 USDDJF float64 USDDKK float64 USDDOP float64 USDDZD float64 USDEGP float64 USDERN float64 USDETB float64 USDEUR float64 USDFJD float64 USDFKP float64 USDGBP float64 USDGEL float64 USDGGP float64 USDGHS float64 USDGIP float64 USDGMD float64 USDGNF float64 USDGTQ float64 USDGYD float64 USDHKD float64 USDHNL float64 USDHRK float64 USDHTG float64 USDHUF float64 USDIDR float64 USDILS float64 USDIMP float64 USDINR float64 USDIQD float64 USDIRR float64 USDISK float64 USDJEP float64 USDJMD float64 USDJOD float64 USDJPY float64 USDKES float64 USDKGS float64 USDKHR float64 USDKMF float64 USDKPW float64 USDKRW float64 USDKWD float64 USDKYD float64 USDKZT float64 USDLAK float64 USDLBP float64 USDLKR float64 USDLRD float64 USDLSL float64 USDLTL float64 USDLVL float64 USDLYD float64 USDMAD float64 USDMDL float64 USDMGA float64 USDMKD float64 USDMMK float64 USDMNT float64 USDMOP float64 USDMRO float64 USDMUR float64 USDMVR float64 USDMWK float64 USDMXN float64 USDMYR float64 USDMZN float64 USDNAD float64 USDNGN float64 USDNIO float64 USDNOK float64 USDNPR float64 USDNZD float64 USDOMR float64 USDPAB float64 USDPEN float64 USDPGK float64 USDPHP float64 USDPKR float64 USDPLN float64 USDPYG float64 USDQAR float64 USDRON float64 USDRSD float64 USDRUB float64 USDRWF float64 USDSAR float64 USDSBD float64 USDSCR float64 USDSDG float64 USDSEK float64 USDSGD float64 USDSHP float64 USDSLL float64 USDSOS float64 USDSRD float64 USDSTD float64 USDSVC float64 USDSYP float64 USDSZL float64 USDTHB float64 USDTJS float64 USDTMT float64 USDTND float64 USDTOP float64 USDTRY float64 USDTTD float64 USDTWD float64 USDTZS float64 USDUAH float64 USDUGX float64 USDUSD float64 USDUYU float64 USDUZS float64 USDVEF float64 USDVND float64 USDVUV float64 USDWST float64 USDXAF float64 USDXAG float64 USDXAU float64 USDXCD float64 USDXDR float64 USDXOF float64 USDXPF float64 USDYER float64 USDZAR float64 USDZMK float64 USDZMW float64 USDZWL float64 }
type APILayerResponse ¶
type CoinCapRecord ¶
type CoinCapRecord struct { ID string `json:"id"` Rank string `json:"rank"` Symbol string `json:"symbol"` Name string `json:"name"` Supply string `json:"supply"` MaxSupply string `json:"maxSupply"` MarketCapUSD string `json:"marketCapUsd"` VolumeUSD24Hr string `json:"volumeUsd24Hr"` PriceUSD string `json:"priceUsd"` ChangePercent24Hr string `json:"changePercent24Hr"` VWAP24Hr string `json:"vwap24Hr"` }
type CoinCapResponse ¶
type CoinCapResponse struct { Data []CoinCapRecord `json:"data"` Timestamp int64 `json:"timestamp"` }
type KitcoData ¶
type KitcoData struct { Silver KitcoRecord Gold KitcoRecord Platinum KitcoRecord Palladium KitcoRecord Rhodium KitcoRecord }
func CallKitcoWeb ¶
func ParseKitco ¶
type KitcoRecord ¶
type OpenExchangeCurrencies ¶
type OpenExchangeCurrencies struct { AED float64 AFN float64 ALL float64 AMD float64 ANG float64 AOA float64 ARS float64 AUD float64 AWG float64 AZN float64 BAM float64 BBD float64 BDT float64 BGN float64 BHD float64 BIF float64 BMD float64 BND float64 BOB float64 BRL float64 BSD float64 BTC float64 BTN float64 BWP float64 BYN float64 BZD float64 CAD float64 CDF float64 CHF float64 CLF float64 CLP float64 CNH float64 CNY float64 COP float64 CRC float64 CUC float64 CUP float64 CVE float64 CZK float64 DJF float64 DKK float64 DOP float64 DZD float64 EGP float64 ERN float64 ETB float64 EUR float64 FJD float64 FKP float64 GBP float64 GEL float64 GGP float64 GHS float64 GIP float64 GMD float64 GNF float64 GTQ float64 GYD float64 HKD float64 HNL float64 HRK float64 HTG float64 HUF float64 IDR float64 ILS float64 IMP float64 INR float64 IQD float64 IRR float64 ISK float64 JEP float64 JMD float64 JOD float64 JPY float64 KES float64 KGS float64 KHR float64 KMF float64 KPW float64 KRW float64 KWD float64 KYD float64 KZT float64 LAK float64 LBP float64 LKR float64 LRD float64 LSL float64 LYD float64 MAD float64 MDL float64 MGA float64 MKD float64 MMK float64 MNT float64 MOP float64 MRO float64 MRU float64 MUR float64 MVR float64 MWK float64 MXN float64 MYR float64 MZN float64 NAD float64 NGN float64 NIO float64 NOK float64 NPR float64 NZD float64 OMR float64 PAB float64 PEN float64 PGK float64 PHP float64 PKR float64 PLN float64 PYG float64 QAR float64 RON float64 RSD float64 RUB float64 RWF float64 SAR float64 SBD float64 SCR float64 SDG float64 SEK float64 SGD float64 SHP float64 SLL float64 SOS float64 SRD float64 SSP float64 STD float64 SVC float64 SYP float64 SZL float64 THB float64 TJS float64 TMT float64 TND float64 TOP float64 TRY float64 TTD float64 TWD float64 TZS float64 UAH float64 UGX float64 USD float64 UYU float64 UZS float64 VEF float64 VES float64 VND float64 VUV float64 WST float64 XAF float64 XAG float64 XAU float64 XCD float64 XDR float64 XOF float64 XPD float64 XPF float64 XPT float64 YER float64 ZAR float64 ZMW float64 ZWL float64 }
type OpenExchangeRates ¶
type OpenExchangeRates struct { Disclaimer string `json:"disclaimer"` License string `json:"license"` Timestamp string `json:"timestamp"` Base string `json:"base"` Currency OpenExchangeCurrencies `json:"rates"` }
type PegAssets ¶
type PegAssets struct { PNT PegItems USD PegItems EUR PegItems JPY PegItems GBP PegItems CAD PegItems CHF PegItems INR PegItems SGD PegItems CNY PegItems HKD PegItems XAU PegItems XAG PegItems XPD PegItems XPT PegItems XBT PegItems ETH PegItems LTC PegItems XBC PegItems FCT PegItems }
func PullPEGAssets ¶
func PullPEGAssets(config *config.Config) (pa PegAssets)
func (*PegAssets) FillPriceBytes ¶
func (peg *PegAssets) FillPriceBytes()
Click to show internal directories.
Click to hide internal directories.