View Source Hyperliquid.Api.Info.TokenDetails (hyperliquid v0.2.2)
Token details.
Returns detailed information about a specific token.
See: https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/info-endpoint
Summary
Functions
Returns metadata about this endpoint.
Returns postgres table configurations (multi-table support).
Returns storage configuration for this endpoint.
Build a cache key from response data using the configured pattern.
Returns nil if cache is not enabled or no pattern configured.
Build the request payload.
Returns true if cache storage is enabled.
Returns the cache TTL if configured.
Creates a changeset for token details data.
Fetch data and persist to configured storage backends.
Fetch data and persist. Raises on error.
Check if token has genesis data.
Parse and validate the API response.
Returns true if postgres storage is enabled.
Returns the postgres table name if configured (primary table for legacy support).
Returns the upsert config for postgres (primary table for legacy support).
Get the rate limit cost for this endpoint.
Make the API request and parse the response.
Make the API request, raising on error.
Make the API request and return the raw response map (no key transformation).
Make the API request returning raw map, raising on error.
Returns true if any storage backend is enabled.
Types
@type t() :: %Hyperliquid.Api.Info.TokenDetails{ circulating_supply: String.t(), deploy_gas: String.t() | nil, deploy_time: String.t() | nil, deployer: String.t() | nil, future_emissions: String.t(), genesis: map() | nil, mark_px: String.t(), max_supply: String.t(), mid_px: String.t(), name: String.t(), non_circulating_user_balances: list(), prev_day_px: String.t(), seeded_usdc: String.t(), sz_decimals: non_neg_integer(), token_id: String.t() | nil, total_supply: String.t(), wei_decimals: non_neg_integer() }
Functions
Returns metadata about this endpoint.
Example
iex> Hyperliquid.Api.Info.TokenDetails.__endpoint_info__()
%{
endpoint: "tokenDetails",
type: :info,
rate_limit_cost: 1,
params: [:tokenId],
optional_params: [],
doc: "Retrieve token details",
returns: "Detailed information about a specific token"
}
Returns postgres table configurations (multi-table support).
Returns storage configuration for this endpoint.
Build a cache key from response data using the configured pattern.
Returns nil if cache is not enabled or no pattern configured.
Build the request payload.
Returns true if cache storage is enabled.
Returns the cache TTL if configured.
@spec changeset(t(), map()) :: Ecto.Changeset.t()
Creates a changeset for token details data.
Fetch data and persist to configured storage backends.
This calls request/N and then stores the result using Storage.Writer.
Request params are merged into stored data for cache key generation.
Fetch data and persist. Raises on error.
Check if token has genesis data.
Parse and validate the API response.
Returns true if postgres storage is enabled.
Returns the postgres table name if configured (primary table for legacy support).
Returns the upsert config for postgres (primary table for legacy support).
@spec rate_limit_cost() :: non_neg_integer()
Get the rate limit cost for this endpoint.
Make the API request and parse the response.
Make the API request, raising on error.
Make the API request and return the raw response map (no key transformation).
Make the API request returning raw map, raising on error.
Returns true if any storage backend is enabled.