Versions in this module Expand all Collapse all v0 v0.1.0 Jan 28, 2021 Changes in this version + func NormalizeTradeAssets(t *hProtocol.Trade) + type FinalAsset struct + Amount float64 + AnchorAsset string + AnchorAssetType string + AssetControlledByDomain bool + AuthRequired bool + AuthRevocable bool + Code string + CollateralAddressSignatures []string + CollateralAddresses []string + Conditions string + Countries string + Desc string + DisplayDecimals int + Error string + FixedNumber int + IsAssetAnchored bool + IsTrash bool + IsUnlimited bool + IsValid bool + Issuer string + IssuerDetails TOMLIssuer + LastChecked time.Time + LastValid time.Time + MaxNumber int + Name string + NumAccounts int32 + RedemptionInstructions string + Status string + Type string + type OrderbookStats struct + AskVolume float64 + BaseAssetCode string + BaseAssetIssuer string + BaseAssetType string + BidVolume float64 + CounterAssetCode string + CounterAssetIssuer string + CounterAssetType string + HighestBid float64 + LowestAsk float64 + NumAsks int + NumBids int + Spread float64 + SpreadMidPoint float64 + type ScraperConfig struct + Client *horizonclient.Client + Ctx *context.Context + Logger *hlog.Entry + func (c *ScraperConfig) FetchAllAssets(limit int, parallelism int) (assets []FinalAsset, err error) + func (c *ScraperConfig) FetchAllTrades(since time.Time, limit int) (trades []hProtocol.Trade, err error) + func (c *ScraperConfig) FetchOrderbookForAssets(bType, bCode, bIssuer, cType, cCode, cIssuer string) (OrderbookStats, error) + func (c *ScraperConfig) StreamNewTrades(cursor string, h horizonclient.TradeHandler) error + type TOMLCurrency struct + AnchorAsset string + AnchorAssetType string + Code string + CollateralAddressSignatures []string + CollateralAddresses []string + Conditions string + Desc string + DisplayDecimals int + FixedNumber int + IsAssetAnchored bool + IsUnlimited bool + Issuer string + MaxNumber int + Name string + RedemptionInstructions string + Status string + type TOMLDoc struct + OrgName string + OrgTwitter string + OrgURL string + type TOMLIssuer struct + AuthServer string + Currencies []TOMLCurrency + DepositServer string + Documentation TOMLDoc + FederationServer string + SigningKey string + TOMLURL string + TransferServer string + WebAuthEndpoint string