package
0.0.0-20250311023717-5c21e974eed8
Repository: https://github.com/thrasher-corp/gocryptotrader.git
Documentation: pkg.go.dev

# Functions

CollectBalances converts a map of sub-account balances into a slice.
DeployCredentialsToContext sets credentials for internal use to context which can override default credential values.
DeploySubAccountOverrideToContext sets subaccount as override to credentials as a separate flag.
GetBalance returns the internal balance for that asset item.
GetHoldings returns full holdings for an exchange.
ParseCredentialsMetadata intercepts and converts credentials metadata to a static type for authentication processing and protection.
Process processes new account holdings updates.
SubscribeToExchangeAccount subscribes to your exchange account.

# Constants

Default credential values.
ContextCredentialsFlag used for retrieving api credentials from context.
ContextSubAccountFlag used for retrieving just the sub account from context, when the default config credentials sub account needs to be changed while the same keys can be used.
Default credential values.
Default credential values.
Default credential values.
Default credential values.
Default credential values.

# Variables

# Structs

Accounts holds a stream ID and a map to the exchange holdings.
Balance is a sub-type to store currency name and individual totals.
Change defines incoming balance change on currency holdings.
ContextCredentialsStore protects the stored credentials for use in a context.
Credentials define parameters that allow for an authenticated request.
Holdings is a generic type to hold each exchange's holdings for all enabled currencies.
Protected limits the access to the underlying credentials outside of this package.
ProtectedBalance stores the full balance information for that specific asset.
Service holds ticker information for each individual exchange.
SubAccount defines a singular account type with associated currency balances.