Skip to main content

AlphaQuote

from lium.sdk import AlphaQuote

Defined in lium.sdk.client.

USD -> alpha quote from GET /balance/convert/alpha.

netuid is the subnet the alpha must be transferred on (the same subnet the pay-tao-api-v2 listener credits), so it — not a hardcoded constant — drives the on-chain transfer_stake.

AlphaQuote(
usd: decimal.Decimal,
alpha_amount: decimal.Decimal,
rate: decimal.Decimal,
netuid: int
)

Fields​

NameTypeDefault
usddecimal.Decimal
alpha_amountdecimal.Decimal
ratedecimal.Decimal
netuidint