Documentation
¶
Index ¶
- Constants
- Variables
- type AmountIn
- type AmountInType
- type CandleInterval
- type GlobalMarketsPerpsSortBy
- type GlobalMarketsPerpsSortOrder
- type MinDepositCapUsd
- type MinDepositCapUsdType
- type MinLiquidityUsd
- type MinLiquidityUsdType
- type Option
- func WithOperationTimeout(timeout time.Duration) Option
- func WithRetries(config retry.Config) Option
- func WithServerURL(serverURL string) Option
- func WithSetHeaders(hdrs map[string]string) Option
- func WithSkipDeserialization() Option
- func WithTemplatedServerURL(serverURL string, params map[string]string) Option
- func WithURLOverride(urlOverride string) Option
- type Options
- type Slippage
- type SlippageType
- type V2CreditBalancesChain
- type V2CreditBalancesRequest
- type V2CreditBalancesResponse
- func (v *V2CreditBalancesResponse) GetCreditBalancesResponse() *components.CreditBalancesResponse
- func (v *V2CreditBalancesResponse) GetHTTPMeta() components.HTTPMetadata
- func (v V2CreditBalancesResponse) MarshalJSON() ([]byte, error)
- func (v *V2CreditBalancesResponse) UnmarshalJSON(data []byte) error
- type V2CreditBorrowResponse
- type V2CreditBundleResponse
- type V2CreditCreateAccountResponse
- func (v *V2CreditCreateAccountResponse) GetCreateCreditAccountResponse() *components.CreateCreditAccountResponse
- func (v *V2CreditCreateAccountResponse) GetHTTPMeta() components.HTTPMetadata
- func (v V2CreditCreateAccountResponse) MarshalJSON() ([]byte, error)
- func (v *V2CreditCreateAccountResponse) UnmarshalJSON(data []byte) error
- type V2CreditPositionsChain
- type V2CreditPositionsRequest
- type V2CreditPositionsResponse
- func (v *V2CreditPositionsResponse) GetCreditPositionsResponse() *components.CreditPositionsResponse
- func (v *V2CreditPositionsResponse) GetHTTPMeta() components.HTTPMetadata
- func (v V2CreditPositionsResponse) MarshalJSON() ([]byte, error)
- func (v *V2CreditPositionsResponse) UnmarshalJSON(data []byte) error
- type V2CreditRepayResponse
- type V2CreditTransferResponse
- func (v *V2CreditTransferResponse) GetCreditTransferResponse() *components.CreditTransferResponse
- func (v *V2CreditTransferResponse) GetHTTPMeta() components.HTTPMetadata
- func (v V2CreditTransferResponse) MarshalJSON() ([]byte, error)
- func (v *V2CreditTransferResponse) UnmarshalJSON(data []byte) error
- type V2EarnAaveMarketsRequest
- type V2EarnAaveMarketsResponse
- func (v *V2EarnAaveMarketsResponse) GetHTTPMeta() components.HTTPMetadata
- func (v *V2EarnAaveMarketsResponse) GetListAaveMarketsResponse() *components.ListAaveMarketsResponse
- func (v V2EarnAaveMarketsResponse) MarshalJSON() ([]byte, error)
- func (v *V2EarnAaveMarketsResponse) UnmarshalJSON(data []byte) error
- type V2EarnBalancesChain
- type V2EarnBalancesRequest
- type V2EarnBalancesResponse
- type V2EarnBundleResponse
- type V2EarnCreateAccountResponse
- func (v *V2EarnCreateAccountResponse) GetCreateAccountResponse() *components.CreateAccountResponse
- func (v *V2EarnCreateAccountResponse) GetHTTPMeta() components.HTTPMetadata
- func (v V2EarnCreateAccountResponse) MarshalJSON() ([]byte, error)
- func (v *V2EarnCreateAccountResponse) UnmarshalJSON(data []byte) error
- type V2EarnManageResponse
- type V2EarnPendleMarketsDirection
- type V2EarnPendleMarketsMinTvlUsd
- type V2EarnPendleMarketsMinTvlUsdType
- type V2EarnPendleMarketsRequest
- func (v *V2EarnPendleMarketsRequest) GetChain() optionalnullable.OptionalNullable[components.Chain]
- func (v *V2EarnPendleMarketsRequest) GetDirection() *V2EarnPendleMarketsDirection
- func (v *V2EarnPendleMarketsRequest) GetLimit() *int64
- func (v *V2EarnPendleMarketsRequest) GetMinTvlUsd() optionalnullable.OptionalNullable[V2EarnPendleMarketsMinTvlUsd]
- func (v *V2EarnPendleMarketsRequest) GetOffset() *int64
- func (v *V2EarnPendleMarketsRequest) GetOrderBy() string
- func (v *V2EarnPendleMarketsRequest) GetUnderlyingSymbol() optionalnullable.OptionalNullable[string]
- type V2EarnPendleMarketsResponse
- func (v *V2EarnPendleMarketsResponse) GetHTTPMeta() components.HTTPMetadata
- func (v *V2EarnPendleMarketsResponse) GetPendleMarketsResponse() *components.PendleMarketsResponse
- func (v V2EarnPendleMarketsResponse) MarshalJSON() ([]byte, error)
- func (v *V2EarnPendleMarketsResponse) UnmarshalJSON(data []byte) error
- type V2EarnPositionsAllRequest
- type V2EarnPositionsAllResponse
- func (v *V2EarnPositionsAllResponse) GetEarnPositionsAllResponse() *components.EarnPositionsAllResponse
- func (v *V2EarnPositionsAllResponse) GetHTTPMeta() components.HTTPMetadata
- func (v V2EarnPositionsAllResponse) MarshalJSON() ([]byte, error)
- func (v *V2EarnPositionsAllResponse) UnmarshalJSON(data []byte) error
- type V2EarnPositionsChain
- type V2EarnPositionsRequest
- type V2EarnPositionsResponse
- type V2EarnSwapQuoteChain
- type V2EarnSwapQuoteRequest
- func (v *V2EarnSwapQuoteRequest) GetAmountIn() AmountIn
- func (v *V2EarnSwapQuoteRequest) GetChain() V2EarnSwapQuoteChain
- func (v *V2EarnSwapQuoteRequest) GetSlippage() *Slippage
- func (v *V2EarnSwapQuoteRequest) GetSyAddress() optionalnullable.OptionalNullable[string]
- func (v *V2EarnSwapQuoteRequest) GetTokenIn() string
- func (v *V2EarnSwapQuoteRequest) GetTokenOut() *string
- type V2EarnSwapQuoteResponse
- type V2EarnSwapResponse
- type V2EarnTransferResponse
- type V2EarnVaultsDirection
- type V2EarnVaultsMinTvlUsd
- type V2EarnVaultsMinTvlUsdType
- type V2EarnVaultsRequest
- func (v *V2EarnVaultsRequest) GetAssetSymbol() optionalnullable.OptionalNullable[string]
- func (v *V2EarnVaultsRequest) GetChain() optionalnullable.OptionalNullable[components.Chain]
- func (v *V2EarnVaultsRequest) GetDirection() *V2EarnVaultsDirection
- func (v *V2EarnVaultsRequest) GetLimit() *int64
- func (v *V2EarnVaultsRequest) GetMinDepositCapUsd() optionalnullable.OptionalNullable[MinDepositCapUsd]
- func (v *V2EarnVaultsRequest) GetMinLiquidityUsd() optionalnullable.OptionalNullable[MinLiquidityUsd]
- func (v *V2EarnVaultsRequest) GetMinTvlUsd() optionalnullable.OptionalNullable[V2EarnVaultsMinTvlUsd]
- func (v *V2EarnVaultsRequest) GetOffset() *int64
- func (v *V2EarnVaultsRequest) GetOrderBy() string
- type V2EarnVaultsResponse
- type V2GasSponsorshipApproveTransferResponse
- func (v *V2GasSponsorshipApproveTransferResponse) GetApproveTransferResponse() *components.ApproveTransferResponse
- func (v *V2GasSponsorshipApproveTransferResponse) GetHTTPMeta() components.HTTPMetadata
- func (v V2GasSponsorshipApproveTransferResponse) MarshalJSON() ([]byte, error)
- func (v *V2GasSponsorshipApproveTransferResponse) UnmarshalJSON(data []byte) error
- type V2GasSponsorshipPrepareResponse
- func (v *V2GasSponsorshipPrepareResponse) GetHTTPMeta() components.HTTPMetadata
- func (v *V2GasSponsorshipPrepareResponse) GetSponsorGasResponse() *components.SponsorGasResponse
- func (v V2GasSponsorshipPrepareResponse) MarshalJSON() ([]byte, error)
- func (v *V2GasSponsorshipPrepareResponse) UnmarshalJSON(data []byte) error
- type V2GlobalMarketsPerpsActivityRequest
- type V2GlobalMarketsPerpsActivityResponse
- func (v *V2GlobalMarketsPerpsActivityResponse) GetGlobalMarketsPerpsActivityResponse() *components.GlobalMarketsPerpsActivityResponse
- func (v *V2GlobalMarketsPerpsActivityResponse) GetHTTPMeta() components.HTTPMetadata
- func (v V2GlobalMarketsPerpsActivityResponse) MarshalJSON() ([]byte, error)
- func (v *V2GlobalMarketsPerpsActivityResponse) UnmarshalJSON(data []byte) error
- type V2GlobalMarketsPerpsApproveBuilderFeeResponse
- func (v *V2GlobalMarketsPerpsApproveBuilderFeeResponse) GetGlobalMarketsPerpsSignableActionResponse() *components.GlobalMarketsPerpsSignableActionResponse
- func (v *V2GlobalMarketsPerpsApproveBuilderFeeResponse) GetHTTPMeta() components.HTTPMetadata
- func (v V2GlobalMarketsPerpsApproveBuilderFeeResponse) MarshalJSON() ([]byte, error)
- func (v *V2GlobalMarketsPerpsApproveBuilderFeeResponse) UnmarshalJSON(data []byte) error
- type V2GlobalMarketsPerpsCancelOrderResponse
- func (v *V2GlobalMarketsPerpsCancelOrderResponse) GetGlobalMarketsPerpsSignableActionResponse() *components.GlobalMarketsPerpsSignableActionResponse
- func (v *V2GlobalMarketsPerpsCancelOrderResponse) GetHTTPMeta() components.HTTPMetadata
- func (v V2GlobalMarketsPerpsCancelOrderResponse) MarshalJSON() ([]byte, error)
- func (v *V2GlobalMarketsPerpsCancelOrderResponse) UnmarshalJSON(data []byte) error
- type V2GlobalMarketsPerpsCandlesRequest
- func (v *V2GlobalMarketsPerpsCandlesRequest) GetEndTime() optionalnullable.OptionalNullable[int64]
- func (v *V2GlobalMarketsPerpsCandlesRequest) GetInterval() CandleInterval
- func (v *V2GlobalMarketsPerpsCandlesRequest) GetLimit() *int64
- func (v *V2GlobalMarketsPerpsCandlesRequest) GetStartTime() optionalnullable.OptionalNullable[int64]
- func (v *V2GlobalMarketsPerpsCandlesRequest) GetSymbol() string
- type V2GlobalMarketsPerpsCandlesResponse
- func (v *V2GlobalMarketsPerpsCandlesResponse) GetGlobalMarketsPerpsCandlesResponse() *components.GlobalMarketsPerpsCandlesResponse
- func (v *V2GlobalMarketsPerpsCandlesResponse) GetHTTPMeta() components.HTTPMetadata
- func (v V2GlobalMarketsPerpsCandlesResponse) MarshalJSON() ([]byte, error)
- func (v *V2GlobalMarketsPerpsCandlesResponse) UnmarshalJSON(data []byte) error
- type V2GlobalMarketsPerpsDepositResponse
- func (v *V2GlobalMarketsPerpsDepositResponse) GetGlobalMarketsPerpsDepositResponse() *components.GlobalMarketsPerpsDepositResponse
- func (v *V2GlobalMarketsPerpsDepositResponse) GetHTTPMeta() components.HTTPMetadata
- func (v V2GlobalMarketsPerpsDepositResponse) MarshalJSON() ([]byte, error)
- func (v *V2GlobalMarketsPerpsDepositResponse) UnmarshalJSON(data []byte) error
- type V2GlobalMarketsPerpsDepositSponsorPrepareResponse
- func (v *V2GlobalMarketsPerpsDepositSponsorPrepareResponse) GetGlobalMarketsPerpsDepositSponsorPrepareResponse() *components.GlobalMarketsPerpsDepositSponsorPrepareResponse
- func (v *V2GlobalMarketsPerpsDepositSponsorPrepareResponse) GetHTTPMeta() components.HTTPMetadata
- func (v V2GlobalMarketsPerpsDepositSponsorPrepareResponse) MarshalJSON() ([]byte, error)
- func (v *V2GlobalMarketsPerpsDepositSponsorPrepareResponse) UnmarshalJSON(data []byte) error
- type V2GlobalMarketsPerpsEnableUnifiedAccountResponse
- func (v *V2GlobalMarketsPerpsEnableUnifiedAccountResponse) GetGlobalMarketsPerpsEnableUnifiedAccountResponse() *components.GlobalMarketsPerpsEnableUnifiedAccountResponse
- func (v *V2GlobalMarketsPerpsEnableUnifiedAccountResponse) GetHTTPMeta() components.HTTPMetadata
- func (v V2GlobalMarketsPerpsEnableUnifiedAccountResponse) MarshalJSON() ([]byte, error)
- func (v *V2GlobalMarketsPerpsEnableUnifiedAccountResponse) UnmarshalJSON(data []byte) error
- type V2GlobalMarketsPerpsEnsureLeverageResponse
- func (v *V2GlobalMarketsPerpsEnsureLeverageResponse) GetGlobalMarketsPerpsEnsureLeverageResponse() *components.GlobalMarketsPerpsEnsureLeverageResponse
- func (v *V2GlobalMarketsPerpsEnsureLeverageResponse) GetHTTPMeta() components.HTTPMetadata
- func (v V2GlobalMarketsPerpsEnsureLeverageResponse) MarshalJSON() ([]byte, error)
- func (v *V2GlobalMarketsPerpsEnsureLeverageResponse) UnmarshalJSON(data []byte) error
- type V2GlobalMarketsPerpsExecuteResponse
- func (v *V2GlobalMarketsPerpsExecuteResponse) GetGlobalMarketsPerpsExecuteResponse() *components.GlobalMarketsPerpsExecuteResponse
- func (v *V2GlobalMarketsPerpsExecuteResponse) GetHTTPMeta() components.HTTPMetadata
- func (v V2GlobalMarketsPerpsExecuteResponse) MarshalJSON() ([]byte, error)
- func (v *V2GlobalMarketsPerpsExecuteResponse) UnmarshalJSON(data []byte) error
- type V2GlobalMarketsPerpsLimitOrderResponse
- func (v *V2GlobalMarketsPerpsLimitOrderResponse) GetGlobalMarketsPerpsSignableActionResponse() *components.GlobalMarketsPerpsSignableActionResponse
- func (v *V2GlobalMarketsPerpsLimitOrderResponse) GetHTTPMeta() components.HTTPMetadata
- func (v V2GlobalMarketsPerpsLimitOrderResponse) MarshalJSON() ([]byte, error)
- func (v *V2GlobalMarketsPerpsLimitOrderResponse) UnmarshalJSON(data []byte) error
- type V2GlobalMarketsPerpsMarketOrderResponse
- func (v *V2GlobalMarketsPerpsMarketOrderResponse) GetGlobalMarketsPerpsSignableActionResponse() *components.GlobalMarketsPerpsSignableActionResponse
- func (v *V2GlobalMarketsPerpsMarketOrderResponse) GetHTTPMeta() components.HTTPMetadata
- func (v V2GlobalMarketsPerpsMarketOrderResponse) MarshalJSON() ([]byte, error)
- func (v *V2GlobalMarketsPerpsMarketOrderResponse) UnmarshalJSON(data []byte) error
- type V2GlobalMarketsPerpsOpportunitiesRequest
- func (v *V2GlobalMarketsPerpsOpportunitiesRequest) GetCategory() optionalnullable.OptionalNullable[components.GlobalMarketsPerpsCategory]
- func (v *V2GlobalMarketsPerpsOpportunitiesRequest) GetMinOpenInterest() optionalnullable.OptionalNullable[float64]
- func (v *V2GlobalMarketsPerpsOpportunitiesRequest) GetMinVolume24h() optionalnullable.OptionalNullable[float64]
- func (v *V2GlobalMarketsPerpsOpportunitiesRequest) GetSortBy() *GlobalMarketsPerpsSortBy
- func (v *V2GlobalMarketsPerpsOpportunitiesRequest) GetSortOrder() *GlobalMarketsPerpsSortOrder
- type V2GlobalMarketsPerpsOpportunitiesResponse
- func (v *V2GlobalMarketsPerpsOpportunitiesResponse) GetGlobalMarketsPerpsOpportunitiesResponse() *components.GlobalMarketsPerpsOpportunitiesResponse
- func (v *V2GlobalMarketsPerpsOpportunitiesResponse) GetHTTPMeta() components.HTTPMetadata
- func (v V2GlobalMarketsPerpsOpportunitiesResponse) MarshalJSON() ([]byte, error)
- func (v *V2GlobalMarketsPerpsOpportunitiesResponse) UnmarshalJSON(data []byte) error
- type V2GlobalMarketsPerpsPositionsRequest
- type V2GlobalMarketsPerpsPositionsResponse
- func (v *V2GlobalMarketsPerpsPositionsResponse) GetGlobalMarketsPerpsPositionsResponse() *components.GlobalMarketsPerpsPositionsResponse
- func (v *V2GlobalMarketsPerpsPositionsResponse) GetHTTPMeta() components.HTTPMetadata
- func (v V2GlobalMarketsPerpsPositionsResponse) MarshalJSON() ([]byte, error)
- func (v *V2GlobalMarketsPerpsPositionsResponse) UnmarshalJSON(data []byte) error
- type V2GlobalMarketsPerpsWithdrawResponse
- func (v *V2GlobalMarketsPerpsWithdrawResponse) GetGlobalMarketsPerpsSignableActionResponse() *components.GlobalMarketsPerpsSignableActionResponse
- func (v *V2GlobalMarketsPerpsWithdrawResponse) GetHTTPMeta() components.HTTPMetadata
- func (v V2GlobalMarketsPerpsWithdrawResponse) MarshalJSON() ([]byte, error)
- func (v *V2GlobalMarketsPerpsWithdrawResponse) UnmarshalJSON(data []byte) error
- type V2TokenizedAssetsCreateAccountResponse
- func (v *V2TokenizedAssetsCreateAccountResponse) GetCreateTokenizedAssetsAccountResponse() *components.CreateTokenizedAssetsAccountResponse
- func (v *V2TokenizedAssetsCreateAccountResponse) GetHTTPMeta() components.HTTPMetadata
- func (v V2TokenizedAssetsCreateAccountResponse) MarshalJSON() ([]byte, error)
- func (v *V2TokenizedAssetsCreateAccountResponse) UnmarshalJSON(data []byte) error
- type V2TokenizedAssetsMarketsRequest
- func (v *V2TokenizedAssetsMarketsRequest) GetAssetClass() optionalnullable.OptionalNullable[components.TokenizedAssetClass]
- func (v *V2TokenizedAssetsMarketsRequest) GetCategory() optionalnullable.OptionalNullable[string]
- func (v *V2TokenizedAssetsMarketsRequest) GetChain() optionalnullable.OptionalNullable[components.Chain]
- func (v *V2TokenizedAssetsMarketsRequest) GetProvider() optionalnullable.OptionalNullable[components.TokenizedAssetProvider]
- func (v *V2TokenizedAssetsMarketsRequest) GetSearch() optionalnullable.OptionalNullable[string]
- type V2TokenizedAssetsMarketsResponse
- func (v *V2TokenizedAssetsMarketsResponse) GetHTTPMeta() components.HTTPMetadata
- func (v *V2TokenizedAssetsMarketsResponse) GetTokenizedAssetsMarketsListResponse() *components.TokenizedAssetsMarketsListResponse
- func (v V2TokenizedAssetsMarketsResponse) MarshalJSON() ([]byte, error)
- func (v *V2TokenizedAssetsMarketsResponse) UnmarshalJSON(data []byte) error
- type V2TokenizedAssetsMarketsSymbolChain
- type V2TokenizedAssetsMarketsSymbolRequest
- func (v *V2TokenizedAssetsMarketsSymbolRequest) GetChain() *V2TokenizedAssetsMarketsSymbolChain
- func (v *V2TokenizedAssetsMarketsSymbolRequest) GetInterval() optionalnullable.OptionalNullable[components.TokenizedAssetsOhlcInterval]
- func (v *V2TokenizedAssetsMarketsSymbolRequest) GetRange() optionalnullable.OptionalNullable[components.TokenizedAssetsOhlcRange]
- func (v *V2TokenizedAssetsMarketsSymbolRequest) GetSymbol() string
- type V2TokenizedAssetsMarketsSymbolResponse
- func (v *V2TokenizedAssetsMarketsSymbolResponse) GetHTTPMeta() components.HTTPMetadata
- func (v *V2TokenizedAssetsMarketsSymbolResponse) GetMarketDetail() *components.MarketDetail
- func (v V2TokenizedAssetsMarketsSymbolResponse) MarshalJSON() ([]byte, error)
- func (v *V2TokenizedAssetsMarketsSymbolResponse) UnmarshalJSON(data []byte) error
- type V2TokenizedAssetsOrderOrderHashCancelRequest
- type V2TokenizedAssetsOrderOrderHashCancelResponse
- func (v *V2TokenizedAssetsOrderOrderHashCancelResponse) GetHTTPMeta() components.HTTPMetadata
- func (v *V2TokenizedAssetsOrderOrderHashCancelResponse) GetTokenizedAssetsCancelOrderResponse() *components.TokenizedAssetsCancelOrderResponse
- func (v V2TokenizedAssetsOrderOrderHashCancelResponse) MarshalJSON() ([]byte, error)
- func (v *V2TokenizedAssetsOrderOrderHashCancelResponse) UnmarshalJSON(data []byte) error
- type V2TokenizedAssetsOrderOrderHashRequest
- type V2TokenizedAssetsOrderOrderHashResponse
- func (v *V2TokenizedAssetsOrderOrderHashResponse) GetHTTPMeta() components.HTTPMetadata
- func (v *V2TokenizedAssetsOrderOrderHashResponse) GetOrderStatus() *components.OrderStatus
- func (v V2TokenizedAssetsOrderOrderHashResponse) MarshalJSON() ([]byte, error)
- func (v *V2TokenizedAssetsOrderOrderHashResponse) UnmarshalJSON(data []byte) error
- type V2TokenizedAssetsOrderResponse
- func (v *V2TokenizedAssetsOrderResponse) GetHTTPMeta() components.HTTPMetadata
- func (v *V2TokenizedAssetsOrderResponse) GetTokenizedAssetsBuildOrderResponse() *components.TokenizedAssetsBuildOrderResponse
- func (v V2TokenizedAssetsOrderResponse) MarshalJSON() ([]byte, error)
- func (v *V2TokenizedAssetsOrderResponse) UnmarshalJSON(data []byte) error
- type V2TokenizedAssetsOrderSubmitResponse
- func (v *V2TokenizedAssetsOrderSubmitResponse) GetHTTPMeta() components.HTTPMetadata
- func (v *V2TokenizedAssetsOrderSubmitResponse) GetTokenizedAssetsSubmitOrderResponse() *components.TokenizedAssetsSubmitOrderResponse
- func (v V2TokenizedAssetsOrderSubmitResponse) MarshalJSON() ([]byte, error)
- func (v *V2TokenizedAssetsOrderSubmitResponse) UnmarshalJSON(data []byte) error
- type V2TokenizedAssetsPositionsChain
- type V2TokenizedAssetsPositionsRequest
- type V2TokenizedAssetsPositionsResponse
- func (v *V2TokenizedAssetsPositionsResponse) GetHTTPMeta() components.HTTPMetadata
- func (v *V2TokenizedAssetsPositionsResponse) GetTokenizedAssetsPositionsResponse() *components.TokenizedAssetsPositionsResponse
- func (v V2TokenizedAssetsPositionsResponse) MarshalJSON() ([]byte, error)
- func (v *V2TokenizedAssetsPositionsResponse) UnmarshalJSON(data []byte) error
- type V2TokenizedAssetsQuoteResponse
- func (v *V2TokenizedAssetsQuoteResponse) GetHTTPMeta() components.HTTPMetadata
- func (v *V2TokenizedAssetsQuoteResponse) GetTokenizedAssetsQuoteResponse() *components.TokenizedAssetsQuoteResponse
- func (v V2TokenizedAssetsQuoteResponse) MarshalJSON() ([]byte, error)
- func (v *V2TokenizedAssetsQuoteResponse) UnmarshalJSON(data []byte) error
- type V2TokenizedAssetsTransactBuyResponse
- func (v *V2TokenizedAssetsTransactBuyResponse) GetHTTPMeta() components.HTTPMetadata
- func (v *V2TokenizedAssetsTransactBuyResponse) GetTokenizedAssetsTradeResponse() *components.TokenizedAssetsTradeResponse
- func (v V2TokenizedAssetsTransactBuyResponse) MarshalJSON() ([]byte, error)
- func (v *V2TokenizedAssetsTransactBuyResponse) UnmarshalJSON(data []byte) error
- type V2TokenizedAssetsTransactSellResponse
- func (v *V2TokenizedAssetsTransactSellResponse) GetHTTPMeta() components.HTTPMetadata
- func (v *V2TokenizedAssetsTransactSellResponse) GetTokenizedAssetsTradeResponse() *components.TokenizedAssetsTradeResponse
- func (v V2TokenizedAssetsTransactSellResponse) MarshalJSON() ([]byte, error)
- func (v *V2TokenizedAssetsTransactSellResponse) UnmarshalJSON(data []byte) error
- type V2TokenizedAssetsTransferResponse
- func (v *V2TokenizedAssetsTransferResponse) GetHTTPMeta() components.HTTPMetadata
- func (v *V2TokenizedAssetsTransferResponse) GetTokenizedAssetsTransferResponse() *components.TokenizedAssetsTransferResponse
- func (v V2TokenizedAssetsTransferResponse) MarshalJSON() ([]byte, error)
- func (v *V2TokenizedAssetsTransferResponse) UnmarshalJSON(data []byte) error
Constants ¶
const ( SupportedOptionRetries = "retries" SupportedOptionTimeout = "timeout" SupportedOptionAcceptHeaderOverride = "acceptHeaderOverride" SupportedOptionURLOverride = "urlOverride" SupportedOptionSkipDeserialization = "skipDeserialization" )
Variables ¶
var ErrUnsupportedOption = errors.New("unsupported option")
Functions ¶
This section is empty.
Types ¶
type AmountIn ¶ added in v0.1.16
type AmountIn struct {
Number *float64 `queryParam:"inline" union:"member"`
Str *string `queryParam:"inline" union:"member"`
Type AmountInType
}
AmountIn - Human-readable amount of `token_in` to quote (token units, not wei).
func CreateAmountInNumber ¶ added in v0.1.16
func CreateAmountInStr ¶ added in v0.1.16
func (AmountIn) MarshalJSON ¶ added in v0.1.16
func (*AmountIn) UnmarshalJSON ¶ added in v0.1.16
type AmountInType ¶ added in v0.1.16
type AmountInType string
const ( AmountInTypeNumber AmountInType = "number" AmountInTypeStr AmountInType = "str" )
type CandleInterval ¶ added in v0.1.5
type CandleInterval string
CandleInterval - Candle interval: 1m, 5m, 15m, 1h, 4h, 1d, 1w
const ( CandleIntervalOnem CandleInterval = "1m" CandleIntervalFivem CandleInterval = "5m" CandleIntervalFifteenm CandleInterval = "15m" CandleIntervalOneh CandleInterval = "1h" CandleIntervalFourh CandleInterval = "4h" CandleIntervalOned CandleInterval = "1d" CandleIntervalOnew CandleInterval = "1w" )
func (CandleInterval) ToPointer ¶ added in v0.1.5
func (e CandleInterval) ToPointer() *CandleInterval
func (*CandleInterval) UnmarshalJSON ¶ added in v0.1.5
func (e *CandleInterval) UnmarshalJSON(data []byte) error
type GlobalMarketsPerpsSortBy ¶ added in v0.1.1
type GlobalMarketsPerpsSortBy string
GlobalMarketsPerpsSortBy - Sort results by this field
const ( GlobalMarketsPerpsSortByOpenInterest GlobalMarketsPerpsSortBy = "open_interest" GlobalMarketsPerpsSortByVolume24h GlobalMarketsPerpsSortBy = "volume_24h" GlobalMarketsPerpsSortByFundingRate GlobalMarketsPerpsSortBy = "funding_rate" )
func (GlobalMarketsPerpsSortBy) ToPointer ¶ added in v0.1.1
func (e GlobalMarketsPerpsSortBy) ToPointer() *GlobalMarketsPerpsSortBy
func (*GlobalMarketsPerpsSortBy) UnmarshalJSON ¶ added in v0.1.1
func (e *GlobalMarketsPerpsSortBy) UnmarshalJSON(data []byte) error
type GlobalMarketsPerpsSortOrder ¶ added in v0.1.1
type GlobalMarketsPerpsSortOrder string
GlobalMarketsPerpsSortOrder - Sort direction
const ( GlobalMarketsPerpsSortOrderAsc GlobalMarketsPerpsSortOrder = "asc" GlobalMarketsPerpsSortOrderDesc GlobalMarketsPerpsSortOrder = "desc" )
func (GlobalMarketsPerpsSortOrder) ToPointer ¶ added in v0.1.1
func (e GlobalMarketsPerpsSortOrder) ToPointer() *GlobalMarketsPerpsSortOrder
func (*GlobalMarketsPerpsSortOrder) UnmarshalJSON ¶ added in v0.1.1
func (e *GlobalMarketsPerpsSortOrder) UnmarshalJSON(data []byte) error
type MinDepositCapUsd ¶
type MinDepositCapUsd struct {
Number *float64 `queryParam:"inline" union:"member"`
Str *string `queryParam:"inline" union:"member"`
Type MinDepositCapUsdType
}
MinDepositCapUsd - Minimum deposit capacity in USD. Vaults below this are excluded. Set to 0 to exclude paused vaults.
func CreateMinDepositCapUsdNumber ¶
func CreateMinDepositCapUsdNumber(number float64) MinDepositCapUsd
func CreateMinDepositCapUsdStr ¶
func CreateMinDepositCapUsdStr(str string) MinDepositCapUsd
func (MinDepositCapUsd) MarshalJSON ¶
func (u MinDepositCapUsd) MarshalJSON() ([]byte, error)
func (*MinDepositCapUsd) UnmarshalJSON ¶
func (u *MinDepositCapUsd) UnmarshalJSON(data []byte) error
type MinDepositCapUsdType ¶
type MinDepositCapUsdType string
const ( MinDepositCapUsdTypeNumber MinDepositCapUsdType = "number" MinDepositCapUsdTypeStr MinDepositCapUsdType = "str" )
type MinLiquidityUsd ¶
type MinLiquidityUsd struct {
Number *float64 `queryParam:"inline" union:"member"`
Str *string `queryParam:"inline" union:"member"`
Type MinLiquidityUsdType
}
MinLiquidityUsd - Minimum available liquidity in USD. Vaults below this are excluded.
func CreateMinLiquidityUsdNumber ¶
func CreateMinLiquidityUsdNumber(number float64) MinLiquidityUsd
func CreateMinLiquidityUsdStr ¶
func CreateMinLiquidityUsdStr(str string) MinLiquidityUsd
func (MinLiquidityUsd) MarshalJSON ¶
func (u MinLiquidityUsd) MarshalJSON() ([]byte, error)
func (*MinLiquidityUsd) UnmarshalJSON ¶
func (u *MinLiquidityUsd) UnmarshalJSON(data []byte) error
type MinLiquidityUsdType ¶
type MinLiquidityUsdType string
const ( MinLiquidityUsdTypeNumber MinLiquidityUsdType = "number" MinLiquidityUsdTypeStr MinLiquidityUsdType = "str" )
type Option ¶
func WithOperationTimeout ¶
WithOperationTimeout allows setting the request timeout applied for an operation.
func WithRetries ¶
WithRetries allows customizing the default retry configuration.
func WithServerURL ¶
WithServerURL allows providing an alternative server URL.
func WithSetHeaders ¶
WithSetHeaders takes a map of headers that will applied to a request. If the request contains headers that are in the map then they will be overwritten.
func WithSkipDeserialization ¶
func WithSkipDeserialization() Option
WithSkipDeserialization skips response body deserialization for JSON responses, leaving the raw body unread on the HTTP response. The caller can read the raw response body via the HTTPMeta.Response field. Non-JSON responses and error responses are always deserialized regardless of this option.
func WithTemplatedServerURL ¶
WithTemplatedServerURL allows providing an alternative server URL with templated parameters.
func WithURLOverride ¶
WithURLOverride allows overriding the URL.
type Slippage ¶ added in v0.1.16
type Slippage struct {
Number *float64 `queryParam:"inline" union:"member"`
Str *string `queryParam:"inline" union:"member"`
Type SlippageType
}
Slippage - Maximum slippage tolerance as a percentage (e.g., 1 = 1%).
func CreateSlippageNumber ¶ added in v0.1.16
func CreateSlippageStr ¶ added in v0.1.16
func (Slippage) MarshalJSON ¶ added in v0.1.16
func (*Slippage) UnmarshalJSON ¶ added in v0.1.16
type SlippageType ¶ added in v0.1.16
type SlippageType string
const ( SlippageTypeNumber SlippageType = "number" SlippageTypeStr SlippageType = "str" )
type V2CreditBalancesChain ¶
type V2CreditBalancesChain string
const ( V2CreditBalancesChainArbitrum V2CreditBalancesChain = "arbitrum" V2CreditBalancesChainBase V2CreditBalancesChain = "base" V2CreditBalancesChainEthereum V2CreditBalancesChain = "ethereum" V2CreditBalancesChainTempo V2CreditBalancesChain = "tempo" )
func (V2CreditBalancesChain) ToPointer ¶
func (e V2CreditBalancesChain) ToPointer() *V2CreditBalancesChain
func (*V2CreditBalancesChain) UnmarshalJSON ¶
func (e *V2CreditBalancesChain) UnmarshalJSON(data []byte) error
type V2CreditBalancesRequest ¶
type V2CreditBalancesRequest struct {
Chain V2CreditBalancesChain `queryParam:"style=form,explode=true,name=chain"`
// The address of the owner of the credit account.
Owner string `queryParam:"style=form,explode=true,name=owner"`
}
func (*V2CreditBalancesRequest) GetChain ¶
func (v *V2CreditBalancesRequest) GetChain() V2CreditBalancesChain
func (*V2CreditBalancesRequest) GetOwner ¶
func (v *V2CreditBalancesRequest) GetOwner() string
type V2CreditBalancesResponse ¶
type V2CreditBalancesResponse struct {
HTTPMeta components.HTTPMetadata `json:"-"`
// Successful Response
CreditBalancesResponse *components.CreditBalancesResponse
}
func (*V2CreditBalancesResponse) GetCreditBalancesResponse ¶
func (v *V2CreditBalancesResponse) GetCreditBalancesResponse() *components.CreditBalancesResponse
func (*V2CreditBalancesResponse) GetHTTPMeta ¶
func (v *V2CreditBalancesResponse) GetHTTPMeta() components.HTTPMetadata
func (V2CreditBalancesResponse) MarshalJSON ¶
func (v V2CreditBalancesResponse) MarshalJSON() ([]byte, error)
func (*V2CreditBalancesResponse) UnmarshalJSON ¶
func (v *V2CreditBalancesResponse) UnmarshalJSON(data []byte) error
type V2CreditBorrowResponse ¶
type V2CreditBorrowResponse struct {
HTTPMeta components.HTTPMetadata `json:"-"`
// Successful Response
CreditBorrowResponse *components.CreditBorrowResponse
}
func (*V2CreditBorrowResponse) GetCreditBorrowResponse ¶
func (v *V2CreditBorrowResponse) GetCreditBorrowResponse() *components.CreditBorrowResponse
func (*V2CreditBorrowResponse) GetHTTPMeta ¶
func (v *V2CreditBorrowResponse) GetHTTPMeta() components.HTTPMetadata
func (V2CreditBorrowResponse) MarshalJSON ¶
func (v V2CreditBorrowResponse) MarshalJSON() ([]byte, error)
func (*V2CreditBorrowResponse) UnmarshalJSON ¶
func (v *V2CreditBorrowResponse) UnmarshalJSON(data []byte) error
type V2CreditBundleResponse ¶
type V2CreditBundleResponse struct {
HTTPMeta components.HTTPMetadata `json:"-"`
// Successful Response
CreditBundleResponse *components.CreditBundleResponse
}
func (*V2CreditBundleResponse) GetCreditBundleResponse ¶
func (v *V2CreditBundleResponse) GetCreditBundleResponse() *components.CreditBundleResponse
func (*V2CreditBundleResponse) GetHTTPMeta ¶
func (v *V2CreditBundleResponse) GetHTTPMeta() components.HTTPMetadata
func (V2CreditBundleResponse) MarshalJSON ¶
func (v V2CreditBundleResponse) MarshalJSON() ([]byte, error)
func (*V2CreditBundleResponse) UnmarshalJSON ¶
func (v *V2CreditBundleResponse) UnmarshalJSON(data []byte) error
type V2CreditCreateAccountResponse ¶
type V2CreditCreateAccountResponse struct {
HTTPMeta components.HTTPMetadata `json:"-"`
// Successful Response
CreateCreditAccountResponse *components.CreateCreditAccountResponse
}
func (*V2CreditCreateAccountResponse) GetCreateCreditAccountResponse ¶
func (v *V2CreditCreateAccountResponse) GetCreateCreditAccountResponse() *components.CreateCreditAccountResponse
func (*V2CreditCreateAccountResponse) GetHTTPMeta ¶
func (v *V2CreditCreateAccountResponse) GetHTTPMeta() components.HTTPMetadata
func (V2CreditCreateAccountResponse) MarshalJSON ¶
func (v V2CreditCreateAccountResponse) MarshalJSON() ([]byte, error)
func (*V2CreditCreateAccountResponse) UnmarshalJSON ¶
func (v *V2CreditCreateAccountResponse) UnmarshalJSON(data []byte) error
type V2CreditPositionsChain ¶
type V2CreditPositionsChain string
const ( V2CreditPositionsChainArbitrum V2CreditPositionsChain = "arbitrum" V2CreditPositionsChainBase V2CreditPositionsChain = "base" V2CreditPositionsChainEthereum V2CreditPositionsChain = "ethereum" V2CreditPositionsChainTempo V2CreditPositionsChain = "tempo" )
func (V2CreditPositionsChain) ToPointer ¶
func (e V2CreditPositionsChain) ToPointer() *V2CreditPositionsChain
func (*V2CreditPositionsChain) UnmarshalJSON ¶
func (e *V2CreditPositionsChain) UnmarshalJSON(data []byte) error
type V2CreditPositionsRequest ¶
type V2CreditPositionsRequest struct {
Chain V2CreditPositionsChain `queryParam:"style=form,explode=true,name=chain"`
// The address of the owner of the credit account to get positions for.
Owner string `queryParam:"style=form,explode=true,name=owner"`
}
func (*V2CreditPositionsRequest) GetChain ¶
func (v *V2CreditPositionsRequest) GetChain() V2CreditPositionsChain
func (*V2CreditPositionsRequest) GetOwner ¶
func (v *V2CreditPositionsRequest) GetOwner() string
type V2CreditPositionsResponse ¶
type V2CreditPositionsResponse struct {
HTTPMeta components.HTTPMetadata `json:"-"`
// Successful Response
CreditPositionsResponse *components.CreditPositionsResponse
}
func (*V2CreditPositionsResponse) GetCreditPositionsResponse ¶
func (v *V2CreditPositionsResponse) GetCreditPositionsResponse() *components.CreditPositionsResponse
func (*V2CreditPositionsResponse) GetHTTPMeta ¶
func (v *V2CreditPositionsResponse) GetHTTPMeta() components.HTTPMetadata
func (V2CreditPositionsResponse) MarshalJSON ¶
func (v V2CreditPositionsResponse) MarshalJSON() ([]byte, error)
func (*V2CreditPositionsResponse) UnmarshalJSON ¶
func (v *V2CreditPositionsResponse) UnmarshalJSON(data []byte) error
type V2CreditRepayResponse ¶
type V2CreditRepayResponse struct {
HTTPMeta components.HTTPMetadata `json:"-"`
// Successful Response
CreditRepayResponse *components.CreditRepayResponse
}
func (*V2CreditRepayResponse) GetCreditRepayResponse ¶
func (v *V2CreditRepayResponse) GetCreditRepayResponse() *components.CreditRepayResponse
func (*V2CreditRepayResponse) GetHTTPMeta ¶
func (v *V2CreditRepayResponse) GetHTTPMeta() components.HTTPMetadata
func (V2CreditRepayResponse) MarshalJSON ¶
func (v V2CreditRepayResponse) MarshalJSON() ([]byte, error)
func (*V2CreditRepayResponse) UnmarshalJSON ¶
func (v *V2CreditRepayResponse) UnmarshalJSON(data []byte) error
type V2CreditTransferResponse ¶
type V2CreditTransferResponse struct {
HTTPMeta components.HTTPMetadata `json:"-"`
// Successful Response
CreditTransferResponse *components.CreditTransferResponse
}
func (*V2CreditTransferResponse) GetCreditTransferResponse ¶
func (v *V2CreditTransferResponse) GetCreditTransferResponse() *components.CreditTransferResponse
func (*V2CreditTransferResponse) GetHTTPMeta ¶
func (v *V2CreditTransferResponse) GetHTTPMeta() components.HTTPMetadata
func (V2CreditTransferResponse) MarshalJSON ¶
func (v V2CreditTransferResponse) MarshalJSON() ([]byte, error)
func (*V2CreditTransferResponse) UnmarshalJSON ¶
func (v *V2CreditTransferResponse) UnmarshalJSON(data []byte) error
type V2EarnAaveMarketsRequest ¶
type V2EarnAaveMarketsRequest struct {
// Optional chain filter. If not provided, returns rates for all chains.
Chain optionalnullable.OptionalNullable[components.Chain] `queryParam:"style=form,explode=true,name=chain"`
// Window in days used to compute `supply_apy_avg` / `borrow_apy_avg`. Mirrors the `days` parameter of the v1 `/v1/aave/avg_rate` endpoint.
Days *int64 `queryParam:"style=form,explode=true,name=days"`
}
func (*V2EarnAaveMarketsRequest) GetChain ¶
func (v *V2EarnAaveMarketsRequest) GetChain() optionalnullable.OptionalNullable[components.Chain]
func (*V2EarnAaveMarketsRequest) GetDays ¶ added in v0.1.6
func (v *V2EarnAaveMarketsRequest) GetDays() *int64
type V2EarnAaveMarketsResponse ¶
type V2EarnAaveMarketsResponse struct {
HTTPMeta components.HTTPMetadata `json:"-"`
// Successful Response
ListAaveMarketsResponse *components.ListAaveMarketsResponse
}
func (*V2EarnAaveMarketsResponse) GetHTTPMeta ¶
func (v *V2EarnAaveMarketsResponse) GetHTTPMeta() components.HTTPMetadata
func (*V2EarnAaveMarketsResponse) GetListAaveMarketsResponse ¶
func (v *V2EarnAaveMarketsResponse) GetListAaveMarketsResponse() *components.ListAaveMarketsResponse
func (V2EarnAaveMarketsResponse) MarshalJSON ¶
func (v V2EarnAaveMarketsResponse) MarshalJSON() ([]byte, error)
func (*V2EarnAaveMarketsResponse) UnmarshalJSON ¶
func (v *V2EarnAaveMarketsResponse) UnmarshalJSON(data []byte) error
type V2EarnBalancesChain ¶
type V2EarnBalancesChain string
const ( V2EarnBalancesChainArbitrum V2EarnBalancesChain = "arbitrum" V2EarnBalancesChainBase V2EarnBalancesChain = "base" V2EarnBalancesChainEthereum V2EarnBalancesChain = "ethereum" V2EarnBalancesChainTempo V2EarnBalancesChain = "tempo" )
func (V2EarnBalancesChain) ToPointer ¶
func (e V2EarnBalancesChain) ToPointer() *V2EarnBalancesChain
func (*V2EarnBalancesChain) UnmarshalJSON ¶
func (e *V2EarnBalancesChain) UnmarshalJSON(data []byte) error
type V2EarnBalancesRequest ¶
type V2EarnBalancesRequest struct {
Chain V2EarnBalancesChain `queryParam:"style=form,explode=true,name=chain"`
// The address of the owner of the earn account.
Owner string `queryParam:"style=form,explode=true,name=owner"`
}
func (*V2EarnBalancesRequest) GetChain ¶
func (v *V2EarnBalancesRequest) GetChain() V2EarnBalancesChain
func (*V2EarnBalancesRequest) GetOwner ¶
func (v *V2EarnBalancesRequest) GetOwner() string
type V2EarnBalancesResponse ¶
type V2EarnBalancesResponse struct {
HTTPMeta components.HTTPMetadata `json:"-"`
// Successful Response
EarnBalancesResponse *components.EarnBalancesResponse
}
func (*V2EarnBalancesResponse) GetEarnBalancesResponse ¶
func (v *V2EarnBalancesResponse) GetEarnBalancesResponse() *components.EarnBalancesResponse
func (*V2EarnBalancesResponse) GetHTTPMeta ¶
func (v *V2EarnBalancesResponse) GetHTTPMeta() components.HTTPMetadata
func (V2EarnBalancesResponse) MarshalJSON ¶
func (v V2EarnBalancesResponse) MarshalJSON() ([]byte, error)
func (*V2EarnBalancesResponse) UnmarshalJSON ¶
func (v *V2EarnBalancesResponse) UnmarshalJSON(data []byte) error
type V2EarnBundleResponse ¶
type V2EarnBundleResponse struct {
HTTPMeta components.HTTPMetadata `json:"-"`
// Successful Response
V2BundleResponse *components.V2BundleResponse
}
func (*V2EarnBundleResponse) GetHTTPMeta ¶
func (v *V2EarnBundleResponse) GetHTTPMeta() components.HTTPMetadata
func (*V2EarnBundleResponse) GetV2BundleResponse ¶
func (v *V2EarnBundleResponse) GetV2BundleResponse() *components.V2BundleResponse
func (V2EarnBundleResponse) MarshalJSON ¶
func (v V2EarnBundleResponse) MarshalJSON() ([]byte, error)
func (*V2EarnBundleResponse) UnmarshalJSON ¶
func (v *V2EarnBundleResponse) UnmarshalJSON(data []byte) error
type V2EarnCreateAccountResponse ¶
type V2EarnCreateAccountResponse struct {
HTTPMeta components.HTTPMetadata `json:"-"`
// Successful Response
CreateAccountResponse *components.CreateAccountResponse
}
func (*V2EarnCreateAccountResponse) GetCreateAccountResponse ¶
func (v *V2EarnCreateAccountResponse) GetCreateAccountResponse() *components.CreateAccountResponse
func (*V2EarnCreateAccountResponse) GetHTTPMeta ¶
func (v *V2EarnCreateAccountResponse) GetHTTPMeta() components.HTTPMetadata
func (V2EarnCreateAccountResponse) MarshalJSON ¶
func (v V2EarnCreateAccountResponse) MarshalJSON() ([]byte, error)
func (*V2EarnCreateAccountResponse) UnmarshalJSON ¶
func (v *V2EarnCreateAccountResponse) UnmarshalJSON(data []byte) error
type V2EarnManageResponse ¶
type V2EarnManageResponse struct {
HTTPMeta components.HTTPMetadata `json:"-"`
// Successful Response
EarnManageResponse *components.EarnManageResponse
}
func (*V2EarnManageResponse) GetEarnManageResponse ¶
func (v *V2EarnManageResponse) GetEarnManageResponse() *components.EarnManageResponse
func (*V2EarnManageResponse) GetHTTPMeta ¶
func (v *V2EarnManageResponse) GetHTTPMeta() components.HTTPMetadata
func (V2EarnManageResponse) MarshalJSON ¶
func (v V2EarnManageResponse) MarshalJSON() ([]byte, error)
func (*V2EarnManageResponse) UnmarshalJSON ¶
func (v *V2EarnManageResponse) UnmarshalJSON(data []byte) error
type V2EarnPendleMarketsDirection ¶
type V2EarnPendleMarketsDirection string
V2EarnPendleMarketsDirection - The direction to order the results by.
const ( V2EarnPendleMarketsDirectionAsc V2EarnPendleMarketsDirection = "asc" V2EarnPendleMarketsDirectionDesc V2EarnPendleMarketsDirection = "desc" )
func (V2EarnPendleMarketsDirection) ToPointer ¶
func (e V2EarnPendleMarketsDirection) ToPointer() *V2EarnPendleMarketsDirection
func (*V2EarnPendleMarketsDirection) UnmarshalJSON ¶
func (e *V2EarnPendleMarketsDirection) UnmarshalJSON(data []byte) error
type V2EarnPendleMarketsMinTvlUsd ¶
type V2EarnPendleMarketsMinTvlUsd struct {
Number *float64 `queryParam:"inline" union:"member"`
Str *string `queryParam:"inline" union:"member"`
Type V2EarnPendleMarketsMinTvlUsdType
}
V2EarnPendleMarketsMinTvlUsd - Minimum TVL in USD. Markets with TVL below this value will be excluded.
func CreateV2EarnPendleMarketsMinTvlUsdNumber ¶
func CreateV2EarnPendleMarketsMinTvlUsdNumber(number float64) V2EarnPendleMarketsMinTvlUsd
func CreateV2EarnPendleMarketsMinTvlUsdStr ¶
func CreateV2EarnPendleMarketsMinTvlUsdStr(str string) V2EarnPendleMarketsMinTvlUsd
func (V2EarnPendleMarketsMinTvlUsd) MarshalJSON ¶
func (u V2EarnPendleMarketsMinTvlUsd) MarshalJSON() ([]byte, error)
func (*V2EarnPendleMarketsMinTvlUsd) UnmarshalJSON ¶
func (u *V2EarnPendleMarketsMinTvlUsd) UnmarshalJSON(data []byte) error
type V2EarnPendleMarketsMinTvlUsdType ¶
type V2EarnPendleMarketsMinTvlUsdType string
const ( V2EarnPendleMarketsMinTvlUsdTypeNumber V2EarnPendleMarketsMinTvlUsdType = "number" V2EarnPendleMarketsMinTvlUsdTypeStr V2EarnPendleMarketsMinTvlUsdType = "str" )
type V2EarnPendleMarketsRequest ¶
type V2EarnPendleMarketsRequest struct {
// The field to order the results by.
OrderBy string `queryParam:"style=form,explode=true,name=order_by"`
// The direction to order the results by.
Direction *V2EarnPendleMarketsDirection `queryParam:"style=form,explode=true,name=direction"`
// The offset of the first item to return.
Offset *int64 `queryParam:"style=form,explode=true,name=offset"`
// The number of items to return.
Limit *int64 `queryParam:"style=form,explode=true,name=limit"`
// Optional chain filter. If not provided, returns markets for all chains.
Chain optionalnullable.OptionalNullable[components.Chain] `queryParam:"style=form,explode=true,name=chain"`
// Filter markets by underlying asset symbol (e.g., 'USDC', 'WETH').
UnderlyingSymbol optionalnullable.OptionalNullable[string] `queryParam:"style=form,explode=true,name=underlying_symbol"`
// Minimum TVL in USD. Markets with TVL below this value will be excluded.
MinTvlUsd optionalnullable.OptionalNullable[V2EarnPendleMarketsMinTvlUsd] `queryParam:"style=form,explode=true,name=min_tvl_usd"`
}
func (*V2EarnPendleMarketsRequest) GetChain ¶
func (v *V2EarnPendleMarketsRequest) GetChain() optionalnullable.OptionalNullable[components.Chain]
func (*V2EarnPendleMarketsRequest) GetDirection ¶
func (v *V2EarnPendleMarketsRequest) GetDirection() *V2EarnPendleMarketsDirection
func (*V2EarnPendleMarketsRequest) GetLimit ¶
func (v *V2EarnPendleMarketsRequest) GetLimit() *int64
func (*V2EarnPendleMarketsRequest) GetMinTvlUsd ¶
func (v *V2EarnPendleMarketsRequest) GetMinTvlUsd() optionalnullable.OptionalNullable[V2EarnPendleMarketsMinTvlUsd]
func (*V2EarnPendleMarketsRequest) GetOffset ¶
func (v *V2EarnPendleMarketsRequest) GetOffset() *int64
func (*V2EarnPendleMarketsRequest) GetOrderBy ¶
func (v *V2EarnPendleMarketsRequest) GetOrderBy() string
func (*V2EarnPendleMarketsRequest) GetUnderlyingSymbol ¶
func (v *V2EarnPendleMarketsRequest) GetUnderlyingSymbol() optionalnullable.OptionalNullable[string]
type V2EarnPendleMarketsResponse ¶
type V2EarnPendleMarketsResponse struct {
HTTPMeta components.HTTPMetadata `json:"-"`
// Successful Response
PendleMarketsResponse *components.PendleMarketsResponse
}
func (*V2EarnPendleMarketsResponse) GetHTTPMeta ¶
func (v *V2EarnPendleMarketsResponse) GetHTTPMeta() components.HTTPMetadata
func (*V2EarnPendleMarketsResponse) GetPendleMarketsResponse ¶
func (v *V2EarnPendleMarketsResponse) GetPendleMarketsResponse() *components.PendleMarketsResponse
func (V2EarnPendleMarketsResponse) MarshalJSON ¶
func (v V2EarnPendleMarketsResponse) MarshalJSON() ([]byte, error)
func (*V2EarnPendleMarketsResponse) UnmarshalJSON ¶
func (v *V2EarnPendleMarketsResponse) UnmarshalJSON(data []byte) error
type V2EarnPositionsAllRequest ¶
type V2EarnPositionsAllRequest struct {
// The address of the owner of the earn account.
Owner string `queryParam:"style=form,explode=true,name=owner"`
}
func (*V2EarnPositionsAllRequest) GetOwner ¶
func (v *V2EarnPositionsAllRequest) GetOwner() string
type V2EarnPositionsAllResponse ¶
type V2EarnPositionsAllResponse struct {
HTTPMeta components.HTTPMetadata `json:"-"`
// Successful Response
EarnPositionsAllResponse *components.EarnPositionsAllResponse
}
func (*V2EarnPositionsAllResponse) GetEarnPositionsAllResponse ¶
func (v *V2EarnPositionsAllResponse) GetEarnPositionsAllResponse() *components.EarnPositionsAllResponse
func (*V2EarnPositionsAllResponse) GetHTTPMeta ¶
func (v *V2EarnPositionsAllResponse) GetHTTPMeta() components.HTTPMetadata
func (V2EarnPositionsAllResponse) MarshalJSON ¶
func (v V2EarnPositionsAllResponse) MarshalJSON() ([]byte, error)
func (*V2EarnPositionsAllResponse) UnmarshalJSON ¶
func (v *V2EarnPositionsAllResponse) UnmarshalJSON(data []byte) error
type V2EarnPositionsChain ¶
type V2EarnPositionsChain string
const ( V2EarnPositionsChainArbitrum V2EarnPositionsChain = "arbitrum" V2EarnPositionsChainBase V2EarnPositionsChain = "base" V2EarnPositionsChainEthereum V2EarnPositionsChain = "ethereum" V2EarnPositionsChainTempo V2EarnPositionsChain = "tempo" )
func (V2EarnPositionsChain) ToPointer ¶
func (e V2EarnPositionsChain) ToPointer() *V2EarnPositionsChain
func (*V2EarnPositionsChain) UnmarshalJSON ¶
func (e *V2EarnPositionsChain) UnmarshalJSON(data []byte) error
type V2EarnPositionsRequest ¶
type V2EarnPositionsRequest struct {
Chain V2EarnPositionsChain `queryParam:"style=form,explode=true,name=chain"`
// The address of the owner of the earn account to get positions for.
Owner string `queryParam:"style=form,explode=true,name=owner"`
}
func (*V2EarnPositionsRequest) GetChain ¶
func (v *V2EarnPositionsRequest) GetChain() V2EarnPositionsChain
func (*V2EarnPositionsRequest) GetOwner ¶
func (v *V2EarnPositionsRequest) GetOwner() string
type V2EarnPositionsResponse ¶
type V2EarnPositionsResponse struct {
HTTPMeta components.HTTPMetadata `json:"-"`
// Successful Response
EarnPositionsResponse *components.EarnPositionsResponse
}
func (*V2EarnPositionsResponse) GetEarnPositionsResponse ¶
func (v *V2EarnPositionsResponse) GetEarnPositionsResponse() *components.EarnPositionsResponse
func (*V2EarnPositionsResponse) GetHTTPMeta ¶
func (v *V2EarnPositionsResponse) GetHTTPMeta() components.HTTPMetadata
func (V2EarnPositionsResponse) MarshalJSON ¶
func (v V2EarnPositionsResponse) MarshalJSON() ([]byte, error)
func (*V2EarnPositionsResponse) UnmarshalJSON ¶
func (v *V2EarnPositionsResponse) UnmarshalJSON(data []byte) error
type V2EarnSwapQuoteChain ¶ added in v0.1.16
type V2EarnSwapQuoteChain string
V2EarnSwapQuoteChain - The chain to use.
const ( V2EarnSwapQuoteChainBase V2EarnSwapQuoteChain = "base" V2EarnSwapQuoteChainEthereum V2EarnSwapQuoteChain = "ethereum" V2EarnSwapQuoteChainArbitrum V2EarnSwapQuoteChain = "arbitrum" V2EarnSwapQuoteChainHyperevm V2EarnSwapQuoteChain = "hyperevm" V2EarnSwapQuoteChainTempo V2EarnSwapQuoteChain = "tempo" )
func (V2EarnSwapQuoteChain) ToPointer ¶ added in v0.1.16
func (e V2EarnSwapQuoteChain) ToPointer() *V2EarnSwapQuoteChain
func (*V2EarnSwapQuoteChain) UnmarshalJSON ¶ added in v0.1.16
func (e *V2EarnSwapQuoteChain) UnmarshalJSON(data []byte) error
type V2EarnSwapQuoteRequest ¶ added in v0.1.16
type V2EarnSwapQuoteRequest struct {
// Target blockchain network.
Chain V2EarnSwapQuoteChain `queryParam:"style=form,explode=true,name=chain"`
// Token to sell (input). A token symbol (e.g. 'WETH') or any token address.
TokenIn string `queryParam:"style=form,explode=true,name=token_in"`
// Token to buy (output). A token symbol (e.g. 'USDC') or any token address.
TokenOut *string `queryParam:"style=form,explode=true,name=token_out"`
// Optional Pendle SY (Standardized Yield) address. When provided, `token_in` is overridden with the token the PT actually redeems into on withdrawal (the SY asset if it is a valid token-out, else the SY yield token) — use this to gauge a Pendle position's real exit liquidity rather than the reported underlying.
SyAddress optionalnullable.OptionalNullable[string] `queryParam:"style=form,explode=true,name=sy_address"`
// Human-readable amount of `token_in` to quote (token units, not wei).
AmountIn AmountIn `queryParam:"style=form,explode=true,name=amount_in"`
// Maximum slippage tolerance as a percentage (e.g., 1 = 1%).
Slippage *Slippage `queryParam:"style=form,explode=true,name=slippage"`
}
func (*V2EarnSwapQuoteRequest) GetAmountIn ¶ added in v0.1.16
func (v *V2EarnSwapQuoteRequest) GetAmountIn() AmountIn
func (*V2EarnSwapQuoteRequest) GetChain ¶ added in v0.1.16
func (v *V2EarnSwapQuoteRequest) GetChain() V2EarnSwapQuoteChain
func (*V2EarnSwapQuoteRequest) GetSlippage ¶ added in v0.1.16
func (v *V2EarnSwapQuoteRequest) GetSlippage() *Slippage
func (*V2EarnSwapQuoteRequest) GetSyAddress ¶ added in v0.1.16
func (v *V2EarnSwapQuoteRequest) GetSyAddress() optionalnullable.OptionalNullable[string]
func (*V2EarnSwapQuoteRequest) GetTokenIn ¶ added in v0.1.16
func (v *V2EarnSwapQuoteRequest) GetTokenIn() string
func (*V2EarnSwapQuoteRequest) GetTokenOut ¶ added in v0.1.16
func (v *V2EarnSwapQuoteRequest) GetTokenOut() *string
type V2EarnSwapQuoteResponse ¶ added in v0.1.16
type V2EarnSwapQuoteResponse struct {
HTTPMeta components.HTTPMetadata `json:"-"`
// Successful Response
EarnSwapQuoteResponse *components.EarnSwapQuoteResponse
}
func (*V2EarnSwapQuoteResponse) GetEarnSwapQuoteResponse ¶ added in v0.1.16
func (v *V2EarnSwapQuoteResponse) GetEarnSwapQuoteResponse() *components.EarnSwapQuoteResponse
func (*V2EarnSwapQuoteResponse) GetHTTPMeta ¶ added in v0.1.16
func (v *V2EarnSwapQuoteResponse) GetHTTPMeta() components.HTTPMetadata
func (V2EarnSwapQuoteResponse) MarshalJSON ¶ added in v0.1.16
func (v V2EarnSwapQuoteResponse) MarshalJSON() ([]byte, error)
func (*V2EarnSwapQuoteResponse) UnmarshalJSON ¶ added in v0.1.16
func (v *V2EarnSwapQuoteResponse) UnmarshalJSON(data []byte) error
type V2EarnSwapResponse ¶
type V2EarnSwapResponse struct {
HTTPMeta components.HTTPMetadata `json:"-"`
// Successful Response
EarnSwapResponse *components.EarnSwapResponse
}
func (*V2EarnSwapResponse) GetEarnSwapResponse ¶
func (v *V2EarnSwapResponse) GetEarnSwapResponse() *components.EarnSwapResponse
func (*V2EarnSwapResponse) GetHTTPMeta ¶
func (v *V2EarnSwapResponse) GetHTTPMeta() components.HTTPMetadata
func (V2EarnSwapResponse) MarshalJSON ¶
func (v V2EarnSwapResponse) MarshalJSON() ([]byte, error)
func (*V2EarnSwapResponse) UnmarshalJSON ¶
func (v *V2EarnSwapResponse) UnmarshalJSON(data []byte) error
type V2EarnTransferResponse ¶
type V2EarnTransferResponse struct {
HTTPMeta components.HTTPMetadata `json:"-"`
// Successful Response
EarnTransferResponse *components.EarnTransferResponse
}
func (*V2EarnTransferResponse) GetEarnTransferResponse ¶
func (v *V2EarnTransferResponse) GetEarnTransferResponse() *components.EarnTransferResponse
func (*V2EarnTransferResponse) GetHTTPMeta ¶
func (v *V2EarnTransferResponse) GetHTTPMeta() components.HTTPMetadata
func (V2EarnTransferResponse) MarshalJSON ¶
func (v V2EarnTransferResponse) MarshalJSON() ([]byte, error)
func (*V2EarnTransferResponse) UnmarshalJSON ¶
func (v *V2EarnTransferResponse) UnmarshalJSON(data []byte) error
type V2EarnVaultsDirection ¶
type V2EarnVaultsDirection string
V2EarnVaultsDirection - The direction to order the results by.
const ( V2EarnVaultsDirectionAsc V2EarnVaultsDirection = "asc" V2EarnVaultsDirectionDesc V2EarnVaultsDirection = "desc" )
func (V2EarnVaultsDirection) ToPointer ¶
func (e V2EarnVaultsDirection) ToPointer() *V2EarnVaultsDirection
func (*V2EarnVaultsDirection) UnmarshalJSON ¶
func (e *V2EarnVaultsDirection) UnmarshalJSON(data []byte) error
type V2EarnVaultsMinTvlUsd ¶
type V2EarnVaultsMinTvlUsd struct {
Number *float64 `queryParam:"inline" union:"member"`
Str *string `queryParam:"inline" union:"member"`
Type V2EarnVaultsMinTvlUsdType
}
V2EarnVaultsMinTvlUsd - Minimum TVL in USD. Vaults with TVL below this value will be excluded.
func CreateV2EarnVaultsMinTvlUsdNumber ¶
func CreateV2EarnVaultsMinTvlUsdNumber(number float64) V2EarnVaultsMinTvlUsd
func CreateV2EarnVaultsMinTvlUsdStr ¶
func CreateV2EarnVaultsMinTvlUsdStr(str string) V2EarnVaultsMinTvlUsd
func (V2EarnVaultsMinTvlUsd) MarshalJSON ¶
func (u V2EarnVaultsMinTvlUsd) MarshalJSON() ([]byte, error)
func (*V2EarnVaultsMinTvlUsd) UnmarshalJSON ¶
func (u *V2EarnVaultsMinTvlUsd) UnmarshalJSON(data []byte) error
type V2EarnVaultsMinTvlUsdType ¶
type V2EarnVaultsMinTvlUsdType string
const ( V2EarnVaultsMinTvlUsdTypeNumber V2EarnVaultsMinTvlUsdType = "number" V2EarnVaultsMinTvlUsdTypeStr V2EarnVaultsMinTvlUsdType = "str" )
type V2EarnVaultsRequest ¶
type V2EarnVaultsRequest struct {
// The field to order the results by.
OrderBy string `queryParam:"style=form,explode=true,name=order_by"`
// The direction to order the results by.
Direction *V2EarnVaultsDirection `queryParam:"style=form,explode=true,name=direction"`
// The offset of the first item to return.
Offset *int64 `queryParam:"style=form,explode=true,name=offset"`
// The number of items to return.
Limit *int64 `queryParam:"style=form,explode=true,name=limit"`
// Optional chain filter. If not provided, returns vaults for all chains.
Chain optionalnullable.OptionalNullable[components.Chain] `queryParam:"style=form,explode=true,name=chain"`
// Filter vaults by underlying asset symbol (e.g., 'USDC', 'WETH').
AssetSymbol optionalnullable.OptionalNullable[string] `queryParam:"style=form,explode=true,name=asset_symbol"`
// Minimum TVL in USD. Vaults with TVL below this value will be excluded.
MinTvlUsd optionalnullable.OptionalNullable[V2EarnVaultsMinTvlUsd] `queryParam:"style=form,explode=true,name=min_tvl_usd"`
// Minimum available liquidity in USD. Vaults below this are excluded.
MinLiquidityUsd optionalnullable.OptionalNullable[MinLiquidityUsd] `queryParam:"style=form,explode=true,name=min_liquidity_usd"`
// Minimum deposit capacity in USD. Vaults below this are excluded. Set to 0 to exclude paused vaults.
MinDepositCapUsd optionalnullable.OptionalNullable[MinDepositCapUsd] `queryParam:"style=form,explode=true,name=min_deposit_cap_usd"`
}
func (*V2EarnVaultsRequest) GetAssetSymbol ¶
func (v *V2EarnVaultsRequest) GetAssetSymbol() optionalnullable.OptionalNullable[string]
func (*V2EarnVaultsRequest) GetChain ¶
func (v *V2EarnVaultsRequest) GetChain() optionalnullable.OptionalNullable[components.Chain]
func (*V2EarnVaultsRequest) GetDirection ¶
func (v *V2EarnVaultsRequest) GetDirection() *V2EarnVaultsDirection
func (*V2EarnVaultsRequest) GetLimit ¶
func (v *V2EarnVaultsRequest) GetLimit() *int64
func (*V2EarnVaultsRequest) GetMinDepositCapUsd ¶
func (v *V2EarnVaultsRequest) GetMinDepositCapUsd() optionalnullable.OptionalNullable[MinDepositCapUsd]
func (*V2EarnVaultsRequest) GetMinLiquidityUsd ¶
func (v *V2EarnVaultsRequest) GetMinLiquidityUsd() optionalnullable.OptionalNullable[MinLiquidityUsd]
func (*V2EarnVaultsRequest) GetMinTvlUsd ¶
func (v *V2EarnVaultsRequest) GetMinTvlUsd() optionalnullable.OptionalNullable[V2EarnVaultsMinTvlUsd]
func (*V2EarnVaultsRequest) GetOffset ¶
func (v *V2EarnVaultsRequest) GetOffset() *int64
func (*V2EarnVaultsRequest) GetOrderBy ¶
func (v *V2EarnVaultsRequest) GetOrderBy() string
type V2EarnVaultsResponse ¶
type V2EarnVaultsResponse struct {
HTTPMeta components.HTTPMetadata `json:"-"`
// Successful Response
VaultsResponse *components.VaultsResponse
}
func (*V2EarnVaultsResponse) GetHTTPMeta ¶
func (v *V2EarnVaultsResponse) GetHTTPMeta() components.HTTPMetadata
func (*V2EarnVaultsResponse) GetVaultsResponse ¶
func (v *V2EarnVaultsResponse) GetVaultsResponse() *components.VaultsResponse
func (V2EarnVaultsResponse) MarshalJSON ¶
func (v V2EarnVaultsResponse) MarshalJSON() ([]byte, error)
func (*V2EarnVaultsResponse) UnmarshalJSON ¶
func (v *V2EarnVaultsResponse) UnmarshalJSON(data []byte) error
type V2GasSponsorshipApproveTransferResponse ¶
type V2GasSponsorshipApproveTransferResponse struct {
HTTPMeta components.HTTPMetadata `json:"-"`
// Successful Response
ApproveTransferResponse *components.ApproveTransferResponse
}
func (*V2GasSponsorshipApproveTransferResponse) GetApproveTransferResponse ¶
func (v *V2GasSponsorshipApproveTransferResponse) GetApproveTransferResponse() *components.ApproveTransferResponse
func (*V2GasSponsorshipApproveTransferResponse) GetHTTPMeta ¶
func (v *V2GasSponsorshipApproveTransferResponse) GetHTTPMeta() components.HTTPMetadata
func (V2GasSponsorshipApproveTransferResponse) MarshalJSON ¶
func (v V2GasSponsorshipApproveTransferResponse) MarshalJSON() ([]byte, error)
func (*V2GasSponsorshipApproveTransferResponse) UnmarshalJSON ¶
func (v *V2GasSponsorshipApproveTransferResponse) UnmarshalJSON(data []byte) error
type V2GasSponsorshipPrepareResponse ¶
type V2GasSponsorshipPrepareResponse struct {
HTTPMeta components.HTTPMetadata `json:"-"`
// Successful Response
SponsorGasResponse *components.SponsorGasResponse
}
func (*V2GasSponsorshipPrepareResponse) GetHTTPMeta ¶
func (v *V2GasSponsorshipPrepareResponse) GetHTTPMeta() components.HTTPMetadata
func (*V2GasSponsorshipPrepareResponse) GetSponsorGasResponse ¶
func (v *V2GasSponsorshipPrepareResponse) GetSponsorGasResponse() *components.SponsorGasResponse
func (V2GasSponsorshipPrepareResponse) MarshalJSON ¶
func (v V2GasSponsorshipPrepareResponse) MarshalJSON() ([]byte, error)
func (*V2GasSponsorshipPrepareResponse) UnmarshalJSON ¶
func (v *V2GasSponsorshipPrepareResponse) UnmarshalJSON(data []byte) error
type V2GlobalMarketsPerpsActivityRequest ¶ added in v0.1.3
type V2GlobalMarketsPerpsActivityRequest struct {
// End-user EOA whose activity should be fetched.
Owner string `queryParam:"style=form,explode=true,name=owner"`
// Optional builder address. When provided, the response includes the current builder-fee approval state for this (owner, builder) pair.
Builder optionalnullable.OptionalNullable[string] `queryParam:"style=form,explode=true,name=builder"`
}
func (*V2GlobalMarketsPerpsActivityRequest) GetBuilder ¶ added in v0.1.3
func (v *V2GlobalMarketsPerpsActivityRequest) GetBuilder() optionalnullable.OptionalNullable[string]
func (*V2GlobalMarketsPerpsActivityRequest) GetOwner ¶ added in v0.1.3
func (v *V2GlobalMarketsPerpsActivityRequest) GetOwner() string
type V2GlobalMarketsPerpsActivityResponse ¶ added in v0.1.3
type V2GlobalMarketsPerpsActivityResponse struct {
HTTPMeta components.HTTPMetadata `json:"-"`
// Successful Response
GlobalMarketsPerpsActivityResponse *components.GlobalMarketsPerpsActivityResponse
}
func (*V2GlobalMarketsPerpsActivityResponse) GetGlobalMarketsPerpsActivityResponse ¶ added in v0.1.3
func (v *V2GlobalMarketsPerpsActivityResponse) GetGlobalMarketsPerpsActivityResponse() *components.GlobalMarketsPerpsActivityResponse
func (*V2GlobalMarketsPerpsActivityResponse) GetHTTPMeta ¶ added in v0.1.3
func (v *V2GlobalMarketsPerpsActivityResponse) GetHTTPMeta() components.HTTPMetadata
func (V2GlobalMarketsPerpsActivityResponse) MarshalJSON ¶ added in v0.1.3
func (v V2GlobalMarketsPerpsActivityResponse) MarshalJSON() ([]byte, error)
func (*V2GlobalMarketsPerpsActivityResponse) UnmarshalJSON ¶ added in v0.1.3
func (v *V2GlobalMarketsPerpsActivityResponse) UnmarshalJSON(data []byte) error
type V2GlobalMarketsPerpsApproveBuilderFeeResponse ¶ added in v0.1.1
type V2GlobalMarketsPerpsApproveBuilderFeeResponse struct {
HTTPMeta components.HTTPMetadata `json:"-"`
// Successful Response
GlobalMarketsPerpsSignableActionResponse *components.GlobalMarketsPerpsSignableActionResponse
}
func (*V2GlobalMarketsPerpsApproveBuilderFeeResponse) GetGlobalMarketsPerpsSignableActionResponse ¶ added in v0.1.1
func (v *V2GlobalMarketsPerpsApproveBuilderFeeResponse) GetGlobalMarketsPerpsSignableActionResponse() *components.GlobalMarketsPerpsSignableActionResponse
func (*V2GlobalMarketsPerpsApproveBuilderFeeResponse) GetHTTPMeta ¶ added in v0.1.1
func (v *V2GlobalMarketsPerpsApproveBuilderFeeResponse) GetHTTPMeta() components.HTTPMetadata
func (V2GlobalMarketsPerpsApproveBuilderFeeResponse) MarshalJSON ¶ added in v0.1.1
func (v V2GlobalMarketsPerpsApproveBuilderFeeResponse) MarshalJSON() ([]byte, error)
func (*V2GlobalMarketsPerpsApproveBuilderFeeResponse) UnmarshalJSON ¶ added in v0.1.1
func (v *V2GlobalMarketsPerpsApproveBuilderFeeResponse) UnmarshalJSON(data []byte) error
type V2GlobalMarketsPerpsCancelOrderResponse ¶ added in v0.1.1
type V2GlobalMarketsPerpsCancelOrderResponse struct {
HTTPMeta components.HTTPMetadata `json:"-"`
// Successful Response
GlobalMarketsPerpsSignableActionResponse *components.GlobalMarketsPerpsSignableActionResponse
}
func (*V2GlobalMarketsPerpsCancelOrderResponse) GetGlobalMarketsPerpsSignableActionResponse ¶ added in v0.1.1
func (v *V2GlobalMarketsPerpsCancelOrderResponse) GetGlobalMarketsPerpsSignableActionResponse() *components.GlobalMarketsPerpsSignableActionResponse
func (*V2GlobalMarketsPerpsCancelOrderResponse) GetHTTPMeta ¶ added in v0.1.1
func (v *V2GlobalMarketsPerpsCancelOrderResponse) GetHTTPMeta() components.HTTPMetadata
func (V2GlobalMarketsPerpsCancelOrderResponse) MarshalJSON ¶ added in v0.1.1
func (v V2GlobalMarketsPerpsCancelOrderResponse) MarshalJSON() ([]byte, error)
func (*V2GlobalMarketsPerpsCancelOrderResponse) UnmarshalJSON ¶ added in v0.1.1
func (v *V2GlobalMarketsPerpsCancelOrderResponse) UnmarshalJSON(data []byte) error
type V2GlobalMarketsPerpsCandlesRequest ¶ added in v0.1.5
type V2GlobalMarketsPerpsCandlesRequest struct {
// Asset ticker (e.g. AAPL, GOLD, EUR). The xyz: HIP-3 DEX prefix is added server-side if not already present.
Symbol string `queryParam:"style=form,explode=true,name=symbol"`
// Candle interval: 1m, 5m, 15m, 1h, 4h, 1d, 1w
Interval CandleInterval `queryParam:"style=form,explode=true,name=interval"`
// Number of candles to return (max 5000, capped by Hyperliquid).
Limit *int64 `queryParam:"style=form,explode=true,name=limit"`
// Optional start of the candle window in unix milliseconds. If omitted, computed as end_time - limit * interval.
StartTime optionalnullable.OptionalNullable[int64] `queryParam:"style=form,explode=true,name=start_time"`
// Optional end of the candle window in unix milliseconds. Defaults to now.
EndTime optionalnullable.OptionalNullable[int64] `queryParam:"style=form,explode=true,name=end_time"`
}
func (*V2GlobalMarketsPerpsCandlesRequest) GetEndTime ¶ added in v0.1.5
func (v *V2GlobalMarketsPerpsCandlesRequest) GetEndTime() optionalnullable.OptionalNullable[int64]
func (*V2GlobalMarketsPerpsCandlesRequest) GetInterval ¶ added in v0.1.5
func (v *V2GlobalMarketsPerpsCandlesRequest) GetInterval() CandleInterval
func (*V2GlobalMarketsPerpsCandlesRequest) GetLimit ¶ added in v0.1.5
func (v *V2GlobalMarketsPerpsCandlesRequest) GetLimit() *int64
func (*V2GlobalMarketsPerpsCandlesRequest) GetStartTime ¶ added in v0.1.5
func (v *V2GlobalMarketsPerpsCandlesRequest) GetStartTime() optionalnullable.OptionalNullable[int64]
func (*V2GlobalMarketsPerpsCandlesRequest) GetSymbol ¶ added in v0.1.5
func (v *V2GlobalMarketsPerpsCandlesRequest) GetSymbol() string
type V2GlobalMarketsPerpsCandlesResponse ¶ added in v0.1.5
type V2GlobalMarketsPerpsCandlesResponse struct {
HTTPMeta components.HTTPMetadata `json:"-"`
// Successful Response
GlobalMarketsPerpsCandlesResponse *components.GlobalMarketsPerpsCandlesResponse
}
func (*V2GlobalMarketsPerpsCandlesResponse) GetGlobalMarketsPerpsCandlesResponse ¶ added in v0.1.5
func (v *V2GlobalMarketsPerpsCandlesResponse) GetGlobalMarketsPerpsCandlesResponse() *components.GlobalMarketsPerpsCandlesResponse
func (*V2GlobalMarketsPerpsCandlesResponse) GetHTTPMeta ¶ added in v0.1.5
func (v *V2GlobalMarketsPerpsCandlesResponse) GetHTTPMeta() components.HTTPMetadata
func (V2GlobalMarketsPerpsCandlesResponse) MarshalJSON ¶ added in v0.1.5
func (v V2GlobalMarketsPerpsCandlesResponse) MarshalJSON() ([]byte, error)
func (*V2GlobalMarketsPerpsCandlesResponse) UnmarshalJSON ¶ added in v0.1.5
func (v *V2GlobalMarketsPerpsCandlesResponse) UnmarshalJSON(data []byte) error
type V2GlobalMarketsPerpsDepositResponse ¶ added in v0.1.1
type V2GlobalMarketsPerpsDepositResponse struct {
HTTPMeta components.HTTPMetadata `json:"-"`
// Successful Response
GlobalMarketsPerpsDepositResponse *components.GlobalMarketsPerpsDepositResponse
}
func (*V2GlobalMarketsPerpsDepositResponse) GetGlobalMarketsPerpsDepositResponse ¶ added in v0.1.1
func (v *V2GlobalMarketsPerpsDepositResponse) GetGlobalMarketsPerpsDepositResponse() *components.GlobalMarketsPerpsDepositResponse
func (*V2GlobalMarketsPerpsDepositResponse) GetHTTPMeta ¶ added in v0.1.1
func (v *V2GlobalMarketsPerpsDepositResponse) GetHTTPMeta() components.HTTPMetadata
func (V2GlobalMarketsPerpsDepositResponse) MarshalJSON ¶ added in v0.1.1
func (v V2GlobalMarketsPerpsDepositResponse) MarshalJSON() ([]byte, error)
func (*V2GlobalMarketsPerpsDepositResponse) UnmarshalJSON ¶ added in v0.1.1
func (v *V2GlobalMarketsPerpsDepositResponse) UnmarshalJSON(data []byte) error
type V2GlobalMarketsPerpsDepositSponsorPrepareResponse ¶ added in v0.1.7
type V2GlobalMarketsPerpsDepositSponsorPrepareResponse struct {
HTTPMeta components.HTTPMetadata `json:"-"`
// Successful Response
GlobalMarketsPerpsDepositSponsorPrepareResponse *components.GlobalMarketsPerpsDepositSponsorPrepareResponse
}
func (*V2GlobalMarketsPerpsDepositSponsorPrepareResponse) GetGlobalMarketsPerpsDepositSponsorPrepareResponse ¶ added in v0.1.7
func (v *V2GlobalMarketsPerpsDepositSponsorPrepareResponse) GetGlobalMarketsPerpsDepositSponsorPrepareResponse() *components.GlobalMarketsPerpsDepositSponsorPrepareResponse
func (*V2GlobalMarketsPerpsDepositSponsorPrepareResponse) GetHTTPMeta ¶ added in v0.1.7
func (v *V2GlobalMarketsPerpsDepositSponsorPrepareResponse) GetHTTPMeta() components.HTTPMetadata
func (V2GlobalMarketsPerpsDepositSponsorPrepareResponse) MarshalJSON ¶ added in v0.1.7
func (v V2GlobalMarketsPerpsDepositSponsorPrepareResponse) MarshalJSON() ([]byte, error)
func (*V2GlobalMarketsPerpsDepositSponsorPrepareResponse) UnmarshalJSON ¶ added in v0.1.7
func (v *V2GlobalMarketsPerpsDepositSponsorPrepareResponse) UnmarshalJSON(data []byte) error
type V2GlobalMarketsPerpsEnableUnifiedAccountResponse ¶ added in v0.1.1
type V2GlobalMarketsPerpsEnableUnifiedAccountResponse struct {
HTTPMeta components.HTTPMetadata `json:"-"`
// Successful Response
GlobalMarketsPerpsEnableUnifiedAccountResponse *components.GlobalMarketsPerpsEnableUnifiedAccountResponse
}
func (*V2GlobalMarketsPerpsEnableUnifiedAccountResponse) GetGlobalMarketsPerpsEnableUnifiedAccountResponse ¶ added in v0.1.1
func (v *V2GlobalMarketsPerpsEnableUnifiedAccountResponse) GetGlobalMarketsPerpsEnableUnifiedAccountResponse() *components.GlobalMarketsPerpsEnableUnifiedAccountResponse
func (*V2GlobalMarketsPerpsEnableUnifiedAccountResponse) GetHTTPMeta ¶ added in v0.1.1
func (v *V2GlobalMarketsPerpsEnableUnifiedAccountResponse) GetHTTPMeta() components.HTTPMetadata
func (V2GlobalMarketsPerpsEnableUnifiedAccountResponse) MarshalJSON ¶ added in v0.1.1
func (v V2GlobalMarketsPerpsEnableUnifiedAccountResponse) MarshalJSON() ([]byte, error)
func (*V2GlobalMarketsPerpsEnableUnifiedAccountResponse) UnmarshalJSON ¶ added in v0.1.1
func (v *V2GlobalMarketsPerpsEnableUnifiedAccountResponse) UnmarshalJSON(data []byte) error
type V2GlobalMarketsPerpsEnsureLeverageResponse ¶ added in v0.1.1
type V2GlobalMarketsPerpsEnsureLeverageResponse struct {
HTTPMeta components.HTTPMetadata `json:"-"`
// Successful Response
GlobalMarketsPerpsEnsureLeverageResponse *components.GlobalMarketsPerpsEnsureLeverageResponse
}
func (*V2GlobalMarketsPerpsEnsureLeverageResponse) GetGlobalMarketsPerpsEnsureLeverageResponse ¶ added in v0.1.1
func (v *V2GlobalMarketsPerpsEnsureLeverageResponse) GetGlobalMarketsPerpsEnsureLeverageResponse() *components.GlobalMarketsPerpsEnsureLeverageResponse
func (*V2GlobalMarketsPerpsEnsureLeverageResponse) GetHTTPMeta ¶ added in v0.1.1
func (v *V2GlobalMarketsPerpsEnsureLeverageResponse) GetHTTPMeta() components.HTTPMetadata
func (V2GlobalMarketsPerpsEnsureLeverageResponse) MarshalJSON ¶ added in v0.1.1
func (v V2GlobalMarketsPerpsEnsureLeverageResponse) MarshalJSON() ([]byte, error)
func (*V2GlobalMarketsPerpsEnsureLeverageResponse) UnmarshalJSON ¶ added in v0.1.1
func (v *V2GlobalMarketsPerpsEnsureLeverageResponse) UnmarshalJSON(data []byte) error
type V2GlobalMarketsPerpsExecuteResponse ¶ added in v0.1.1
type V2GlobalMarketsPerpsExecuteResponse struct {
HTTPMeta components.HTTPMetadata `json:"-"`
// Successful Response
GlobalMarketsPerpsExecuteResponse *components.GlobalMarketsPerpsExecuteResponse
}
func (*V2GlobalMarketsPerpsExecuteResponse) GetGlobalMarketsPerpsExecuteResponse ¶ added in v0.1.1
func (v *V2GlobalMarketsPerpsExecuteResponse) GetGlobalMarketsPerpsExecuteResponse() *components.GlobalMarketsPerpsExecuteResponse
func (*V2GlobalMarketsPerpsExecuteResponse) GetHTTPMeta ¶ added in v0.1.1
func (v *V2GlobalMarketsPerpsExecuteResponse) GetHTTPMeta() components.HTTPMetadata
func (V2GlobalMarketsPerpsExecuteResponse) MarshalJSON ¶ added in v0.1.1
func (v V2GlobalMarketsPerpsExecuteResponse) MarshalJSON() ([]byte, error)
func (*V2GlobalMarketsPerpsExecuteResponse) UnmarshalJSON ¶ added in v0.1.1
func (v *V2GlobalMarketsPerpsExecuteResponse) UnmarshalJSON(data []byte) error
type V2GlobalMarketsPerpsLimitOrderResponse ¶ added in v0.1.1
type V2GlobalMarketsPerpsLimitOrderResponse struct {
HTTPMeta components.HTTPMetadata `json:"-"`
// Successful Response
GlobalMarketsPerpsSignableActionResponse *components.GlobalMarketsPerpsSignableActionResponse
}
func (*V2GlobalMarketsPerpsLimitOrderResponse) GetGlobalMarketsPerpsSignableActionResponse ¶ added in v0.1.1
func (v *V2GlobalMarketsPerpsLimitOrderResponse) GetGlobalMarketsPerpsSignableActionResponse() *components.GlobalMarketsPerpsSignableActionResponse
func (*V2GlobalMarketsPerpsLimitOrderResponse) GetHTTPMeta ¶ added in v0.1.1
func (v *V2GlobalMarketsPerpsLimitOrderResponse) GetHTTPMeta() components.HTTPMetadata
func (V2GlobalMarketsPerpsLimitOrderResponse) MarshalJSON ¶ added in v0.1.1
func (v V2GlobalMarketsPerpsLimitOrderResponse) MarshalJSON() ([]byte, error)
func (*V2GlobalMarketsPerpsLimitOrderResponse) UnmarshalJSON ¶ added in v0.1.1
func (v *V2GlobalMarketsPerpsLimitOrderResponse) UnmarshalJSON(data []byte) error
type V2GlobalMarketsPerpsMarketOrderResponse ¶ added in v0.1.1
type V2GlobalMarketsPerpsMarketOrderResponse struct {
HTTPMeta components.HTTPMetadata `json:"-"`
// Successful Response
GlobalMarketsPerpsSignableActionResponse *components.GlobalMarketsPerpsSignableActionResponse
}
func (*V2GlobalMarketsPerpsMarketOrderResponse) GetGlobalMarketsPerpsSignableActionResponse ¶ added in v0.1.1
func (v *V2GlobalMarketsPerpsMarketOrderResponse) GetGlobalMarketsPerpsSignableActionResponse() *components.GlobalMarketsPerpsSignableActionResponse
func (*V2GlobalMarketsPerpsMarketOrderResponse) GetHTTPMeta ¶ added in v0.1.1
func (v *V2GlobalMarketsPerpsMarketOrderResponse) GetHTTPMeta() components.HTTPMetadata
func (V2GlobalMarketsPerpsMarketOrderResponse) MarshalJSON ¶ added in v0.1.1
func (v V2GlobalMarketsPerpsMarketOrderResponse) MarshalJSON() ([]byte, error)
func (*V2GlobalMarketsPerpsMarketOrderResponse) UnmarshalJSON ¶ added in v0.1.1
func (v *V2GlobalMarketsPerpsMarketOrderResponse) UnmarshalJSON(data []byte) error
type V2GlobalMarketsPerpsOpportunitiesRequest ¶ added in v0.1.1
type V2GlobalMarketsPerpsOpportunitiesRequest struct {
// Filter by minimum open interest in USD
MinOpenInterest optionalnullable.OptionalNullable[float64] `queryParam:"style=form,explode=true,name=min_open_interest"`
// Filter by minimum 24h volume in USD
MinVolume24h optionalnullable.OptionalNullable[float64] `queryParam:"style=form,explode=true,name=min_volume_24h"`
// Filter by asset category: stock, commodity, forex
Category optionalnullable.OptionalNullable[components.GlobalMarketsPerpsCategory] `queryParam:"style=form,explode=true,name=category"`
// Sort results by this field
SortBy *GlobalMarketsPerpsSortBy `queryParam:"style=form,explode=true,name=sort_by"`
// Sort direction
SortOrder *GlobalMarketsPerpsSortOrder `queryParam:"style=form,explode=true,name=sort_order"`
}
func (*V2GlobalMarketsPerpsOpportunitiesRequest) GetCategory ¶ added in v0.1.1
func (v *V2GlobalMarketsPerpsOpportunitiesRequest) GetCategory() optionalnullable.OptionalNullable[components.GlobalMarketsPerpsCategory]
func (*V2GlobalMarketsPerpsOpportunitiesRequest) GetMinOpenInterest ¶ added in v0.1.1
func (v *V2GlobalMarketsPerpsOpportunitiesRequest) GetMinOpenInterest() optionalnullable.OptionalNullable[float64]
func (*V2GlobalMarketsPerpsOpportunitiesRequest) GetMinVolume24h ¶ added in v0.1.1
func (v *V2GlobalMarketsPerpsOpportunitiesRequest) GetMinVolume24h() optionalnullable.OptionalNullable[float64]
func (*V2GlobalMarketsPerpsOpportunitiesRequest) GetSortBy ¶ added in v0.1.1
func (v *V2GlobalMarketsPerpsOpportunitiesRequest) GetSortBy() *GlobalMarketsPerpsSortBy
func (*V2GlobalMarketsPerpsOpportunitiesRequest) GetSortOrder ¶ added in v0.1.1
func (v *V2GlobalMarketsPerpsOpportunitiesRequest) GetSortOrder() *GlobalMarketsPerpsSortOrder
type V2GlobalMarketsPerpsOpportunitiesResponse ¶ added in v0.1.1
type V2GlobalMarketsPerpsOpportunitiesResponse struct {
HTTPMeta components.HTTPMetadata `json:"-"`
// Successful Response
GlobalMarketsPerpsOpportunitiesResponse *components.GlobalMarketsPerpsOpportunitiesResponse
}
func (*V2GlobalMarketsPerpsOpportunitiesResponse) GetGlobalMarketsPerpsOpportunitiesResponse ¶ added in v0.1.1
func (v *V2GlobalMarketsPerpsOpportunitiesResponse) GetGlobalMarketsPerpsOpportunitiesResponse() *components.GlobalMarketsPerpsOpportunitiesResponse
func (*V2GlobalMarketsPerpsOpportunitiesResponse) GetHTTPMeta ¶ added in v0.1.1
func (v *V2GlobalMarketsPerpsOpportunitiesResponse) GetHTTPMeta() components.HTTPMetadata
func (V2GlobalMarketsPerpsOpportunitiesResponse) MarshalJSON ¶ added in v0.1.1
func (v V2GlobalMarketsPerpsOpportunitiesResponse) MarshalJSON() ([]byte, error)
func (*V2GlobalMarketsPerpsOpportunitiesResponse) UnmarshalJSON ¶ added in v0.1.1
func (v *V2GlobalMarketsPerpsOpportunitiesResponse) UnmarshalJSON(data []byte) error
type V2GlobalMarketsPerpsPositionsRequest ¶ added in v0.1.1
type V2GlobalMarketsPerpsPositionsRequest struct {
// User's EOA address (looks up their global markets perps product account)
Owner string `queryParam:"style=form,explode=true,name=owner"`
// Filter to a specific asset ticker (e.g. AAPL)
Asset optionalnullable.OptionalNullable[string] `queryParam:"style=form,explode=true,name=asset"`
}
func (*V2GlobalMarketsPerpsPositionsRequest) GetAsset ¶ added in v0.1.1
func (v *V2GlobalMarketsPerpsPositionsRequest) GetAsset() optionalnullable.OptionalNullable[string]
func (*V2GlobalMarketsPerpsPositionsRequest) GetOwner ¶ added in v0.1.1
func (v *V2GlobalMarketsPerpsPositionsRequest) GetOwner() string
type V2GlobalMarketsPerpsPositionsResponse ¶ added in v0.1.1
type V2GlobalMarketsPerpsPositionsResponse struct {
HTTPMeta components.HTTPMetadata `json:"-"`
// Successful Response
GlobalMarketsPerpsPositionsResponse *components.GlobalMarketsPerpsPositionsResponse
}
func (*V2GlobalMarketsPerpsPositionsResponse) GetGlobalMarketsPerpsPositionsResponse ¶ added in v0.1.1
func (v *V2GlobalMarketsPerpsPositionsResponse) GetGlobalMarketsPerpsPositionsResponse() *components.GlobalMarketsPerpsPositionsResponse
func (*V2GlobalMarketsPerpsPositionsResponse) GetHTTPMeta ¶ added in v0.1.1
func (v *V2GlobalMarketsPerpsPositionsResponse) GetHTTPMeta() components.HTTPMetadata
func (V2GlobalMarketsPerpsPositionsResponse) MarshalJSON ¶ added in v0.1.1
func (v V2GlobalMarketsPerpsPositionsResponse) MarshalJSON() ([]byte, error)
func (*V2GlobalMarketsPerpsPositionsResponse) UnmarshalJSON ¶ added in v0.1.1
func (v *V2GlobalMarketsPerpsPositionsResponse) UnmarshalJSON(data []byte) error
type V2GlobalMarketsPerpsWithdrawResponse ¶ added in v0.1.1
type V2GlobalMarketsPerpsWithdrawResponse struct {
HTTPMeta components.HTTPMetadata `json:"-"`
// Successful Response
GlobalMarketsPerpsSignableActionResponse *components.GlobalMarketsPerpsSignableActionResponse
}
func (*V2GlobalMarketsPerpsWithdrawResponse) GetGlobalMarketsPerpsSignableActionResponse ¶ added in v0.1.1
func (v *V2GlobalMarketsPerpsWithdrawResponse) GetGlobalMarketsPerpsSignableActionResponse() *components.GlobalMarketsPerpsSignableActionResponse
func (*V2GlobalMarketsPerpsWithdrawResponse) GetHTTPMeta ¶ added in v0.1.1
func (v *V2GlobalMarketsPerpsWithdrawResponse) GetHTTPMeta() components.HTTPMetadata
func (V2GlobalMarketsPerpsWithdrawResponse) MarshalJSON ¶ added in v0.1.1
func (v V2GlobalMarketsPerpsWithdrawResponse) MarshalJSON() ([]byte, error)
func (*V2GlobalMarketsPerpsWithdrawResponse) UnmarshalJSON ¶ added in v0.1.1
func (v *V2GlobalMarketsPerpsWithdrawResponse) UnmarshalJSON(data []byte) error
type V2TokenizedAssetsCreateAccountResponse ¶
type V2TokenizedAssetsCreateAccountResponse struct {
HTTPMeta components.HTTPMetadata `json:"-"`
// Successful Response
CreateTokenizedAssetsAccountResponse *components.CreateTokenizedAssetsAccountResponse
}
func (*V2TokenizedAssetsCreateAccountResponse) GetCreateTokenizedAssetsAccountResponse ¶
func (v *V2TokenizedAssetsCreateAccountResponse) GetCreateTokenizedAssetsAccountResponse() *components.CreateTokenizedAssetsAccountResponse
func (*V2TokenizedAssetsCreateAccountResponse) GetHTTPMeta ¶
func (v *V2TokenizedAssetsCreateAccountResponse) GetHTTPMeta() components.HTTPMetadata
func (V2TokenizedAssetsCreateAccountResponse) MarshalJSON ¶
func (v V2TokenizedAssetsCreateAccountResponse) MarshalJSON() ([]byte, error)
func (*V2TokenizedAssetsCreateAccountResponse) UnmarshalJSON ¶
func (v *V2TokenizedAssetsCreateAccountResponse) UnmarshalJSON(data []byte) error
type V2TokenizedAssetsMarketsRequest ¶
type V2TokenizedAssetsMarketsRequest struct {
// Filter markets by category (e.g. 'tech', 'finance').
Category optionalnullable.OptionalNullable[string] `queryParam:"style=form,explode=true,name=category"`
// Case-insensitive substring match against the on-chain symbol, underlying ticker, and underlying name.
Search optionalnullable.OptionalNullable[string] `queryParam:"style=form,explode=true,name=search"`
// Filter by issuer ('ondo' equities, 'midas' RWA yield).
Provider optionalnullable.OptionalNullable[components.TokenizedAssetProvider] `queryParam:"style=form,explode=true,name=provider"`
// Filter by asset class (EQUITY, T_BILLS, BASIS_TRADE, BTC_YIELD).
AssetClass optionalnullable.OptionalNullable[components.TokenizedAssetClass] `queryParam:"style=form,explode=true,name=asset_class"`
// Filter by network. Equities are Ethereum-only; RWA yield assets exist on Ethereum and Base.
Chain optionalnullable.OptionalNullable[components.Chain] `queryParam:"style=form,explode=true,name=chain"`
}
func (*V2TokenizedAssetsMarketsRequest) GetAssetClass ¶ added in v0.1.17
func (v *V2TokenizedAssetsMarketsRequest) GetAssetClass() optionalnullable.OptionalNullable[components.TokenizedAssetClass]
func (*V2TokenizedAssetsMarketsRequest) GetCategory ¶
func (v *V2TokenizedAssetsMarketsRequest) GetCategory() optionalnullable.OptionalNullable[string]
func (*V2TokenizedAssetsMarketsRequest) GetChain ¶ added in v0.1.17
func (v *V2TokenizedAssetsMarketsRequest) GetChain() optionalnullable.OptionalNullable[components.Chain]
func (*V2TokenizedAssetsMarketsRequest) GetProvider ¶ added in v0.1.17
func (v *V2TokenizedAssetsMarketsRequest) GetProvider() optionalnullable.OptionalNullable[components.TokenizedAssetProvider]
func (*V2TokenizedAssetsMarketsRequest) GetSearch ¶
func (v *V2TokenizedAssetsMarketsRequest) GetSearch() optionalnullable.OptionalNullable[string]
type V2TokenizedAssetsMarketsResponse ¶
type V2TokenizedAssetsMarketsResponse struct {
HTTPMeta components.HTTPMetadata `json:"-"`
// Successful Response
TokenizedAssetsMarketsListResponse *components.TokenizedAssetsMarketsListResponse
}
func (*V2TokenizedAssetsMarketsResponse) GetHTTPMeta ¶
func (v *V2TokenizedAssetsMarketsResponse) GetHTTPMeta() components.HTTPMetadata
func (*V2TokenizedAssetsMarketsResponse) GetTokenizedAssetsMarketsListResponse ¶
func (v *V2TokenizedAssetsMarketsResponse) GetTokenizedAssetsMarketsListResponse() *components.TokenizedAssetsMarketsListResponse
func (V2TokenizedAssetsMarketsResponse) MarshalJSON ¶
func (v V2TokenizedAssetsMarketsResponse) MarshalJSON() ([]byte, error)
func (*V2TokenizedAssetsMarketsResponse) UnmarshalJSON ¶
func (v *V2TokenizedAssetsMarketsResponse) UnmarshalJSON(data []byte) error
type V2TokenizedAssetsMarketsSymbolChain ¶ added in v0.1.20
type V2TokenizedAssetsMarketsSymbolChain string
V2TokenizedAssetsMarketsSymbolChain - The chain to use.
const ( V2TokenizedAssetsMarketsSymbolChainBase V2TokenizedAssetsMarketsSymbolChain = "base" V2TokenizedAssetsMarketsSymbolChainEthereum V2TokenizedAssetsMarketsSymbolChain = "ethereum" V2TokenizedAssetsMarketsSymbolChainArbitrum V2TokenizedAssetsMarketsSymbolChain = "arbitrum" V2TokenizedAssetsMarketsSymbolChainHyperevm V2TokenizedAssetsMarketsSymbolChain = "hyperevm" V2TokenizedAssetsMarketsSymbolChainTempo V2TokenizedAssetsMarketsSymbolChain = "tempo" )
func (V2TokenizedAssetsMarketsSymbolChain) ToPointer ¶ added in v0.1.20
func (e V2TokenizedAssetsMarketsSymbolChain) ToPointer() *V2TokenizedAssetsMarketsSymbolChain
func (*V2TokenizedAssetsMarketsSymbolChain) UnmarshalJSON ¶ added in v0.1.20
func (e *V2TokenizedAssetsMarketsSymbolChain) UnmarshalJSON(data []byte) error
type V2TokenizedAssetsMarketsSymbolRequest ¶
type V2TokenizedAssetsMarketsSymbolRequest struct {
Symbol string `pathParam:"style=simple,explode=false,name=symbol"`
// Network the market is deployed on (defaults to Ethereum). A token deployed on multiple chains (e.g. Midas RWA on Ethereum and Base) is resolved per chain; 404 if the symbol isn't deployed there. Ondo equities are Ethereum-only.
Chain *V2TokenizedAssetsMarketsSymbolChain `queryParam:"style=form,explode=true,name=chain"`
// Optional candle interval. Must be paired with `range` and form a valid `(interval, range)` pair to include OHLC candles in the response.
Interval optionalnullable.OptionalNullable[components.TokenizedAssetsOhlcInterval] `queryParam:"style=form,explode=true,name=interval"`
// Optional lookback window. Must be paired with `interval` and form a valid `(interval, range)` pair to include OHLC candles in the response.
Range optionalnullable.OptionalNullable[components.TokenizedAssetsOhlcRange] `queryParam:"style=form,explode=true,name=range"`
}
func (*V2TokenizedAssetsMarketsSymbolRequest) GetChain ¶ added in v0.1.20
func (v *V2TokenizedAssetsMarketsSymbolRequest) GetChain() *V2TokenizedAssetsMarketsSymbolChain
func (*V2TokenizedAssetsMarketsSymbolRequest) GetInterval ¶
func (v *V2TokenizedAssetsMarketsSymbolRequest) GetInterval() optionalnullable.OptionalNullable[components.TokenizedAssetsOhlcInterval]
func (*V2TokenizedAssetsMarketsSymbolRequest) GetRange ¶
func (v *V2TokenizedAssetsMarketsSymbolRequest) GetRange() optionalnullable.OptionalNullable[components.TokenizedAssetsOhlcRange]
func (*V2TokenizedAssetsMarketsSymbolRequest) GetSymbol ¶
func (v *V2TokenizedAssetsMarketsSymbolRequest) GetSymbol() string
type V2TokenizedAssetsMarketsSymbolResponse ¶
type V2TokenizedAssetsMarketsSymbolResponse struct {
HTTPMeta components.HTTPMetadata `json:"-"`
// Successful Response
MarketDetail *components.MarketDetail
}
func (*V2TokenizedAssetsMarketsSymbolResponse) GetHTTPMeta ¶
func (v *V2TokenizedAssetsMarketsSymbolResponse) GetHTTPMeta() components.HTTPMetadata
func (*V2TokenizedAssetsMarketsSymbolResponse) GetMarketDetail ¶
func (v *V2TokenizedAssetsMarketsSymbolResponse) GetMarketDetail() *components.MarketDetail
func (V2TokenizedAssetsMarketsSymbolResponse) MarshalJSON ¶
func (v V2TokenizedAssetsMarketsSymbolResponse) MarshalJSON() ([]byte, error)
func (*V2TokenizedAssetsMarketsSymbolResponse) UnmarshalJSON ¶
func (v *V2TokenizedAssetsMarketsSymbolResponse) UnmarshalJSON(data []byte) error
type V2TokenizedAssetsOrderOrderHashCancelRequest ¶
type V2TokenizedAssetsOrderOrderHashCancelRequest struct {
OrderHash string `pathParam:"style=simple,explode=false,name=order_hash"`
Body components.TokenizedAssetsCancelOrderRequest `request:"mediaType=application/json"`
}
func (*V2TokenizedAssetsOrderOrderHashCancelRequest) GetBody ¶
func (v *V2TokenizedAssetsOrderOrderHashCancelRequest) GetBody() components.TokenizedAssetsCancelOrderRequest
func (*V2TokenizedAssetsOrderOrderHashCancelRequest) GetOrderHash ¶
func (v *V2TokenizedAssetsOrderOrderHashCancelRequest) GetOrderHash() string
type V2TokenizedAssetsOrderOrderHashCancelResponse ¶
type V2TokenizedAssetsOrderOrderHashCancelResponse struct {
HTTPMeta components.HTTPMetadata `json:"-"`
// Successful Response
TokenizedAssetsCancelOrderResponse *components.TokenizedAssetsCancelOrderResponse
}
func (*V2TokenizedAssetsOrderOrderHashCancelResponse) GetHTTPMeta ¶
func (v *V2TokenizedAssetsOrderOrderHashCancelResponse) GetHTTPMeta() components.HTTPMetadata
func (*V2TokenizedAssetsOrderOrderHashCancelResponse) GetTokenizedAssetsCancelOrderResponse ¶
func (v *V2TokenizedAssetsOrderOrderHashCancelResponse) GetTokenizedAssetsCancelOrderResponse() *components.TokenizedAssetsCancelOrderResponse
func (V2TokenizedAssetsOrderOrderHashCancelResponse) MarshalJSON ¶
func (v V2TokenizedAssetsOrderOrderHashCancelResponse) MarshalJSON() ([]byte, error)
func (*V2TokenizedAssetsOrderOrderHashCancelResponse) UnmarshalJSON ¶
func (v *V2TokenizedAssetsOrderOrderHashCancelResponse) UnmarshalJSON(data []byte) error
type V2TokenizedAssetsOrderOrderHashRequest ¶
type V2TokenizedAssetsOrderOrderHashRequest struct {
OrderHash string `pathParam:"style=simple,explode=false,name=order_hash"`
}
func (*V2TokenizedAssetsOrderOrderHashRequest) GetOrderHash ¶
func (v *V2TokenizedAssetsOrderOrderHashRequest) GetOrderHash() string
type V2TokenizedAssetsOrderOrderHashResponse ¶
type V2TokenizedAssetsOrderOrderHashResponse struct {
HTTPMeta components.HTTPMetadata `json:"-"`
// Successful Response
OrderStatus *components.OrderStatus
}
func (*V2TokenizedAssetsOrderOrderHashResponse) GetHTTPMeta ¶
func (v *V2TokenizedAssetsOrderOrderHashResponse) GetHTTPMeta() components.HTTPMetadata
func (*V2TokenizedAssetsOrderOrderHashResponse) GetOrderStatus ¶
func (v *V2TokenizedAssetsOrderOrderHashResponse) GetOrderStatus() *components.OrderStatus
func (V2TokenizedAssetsOrderOrderHashResponse) MarshalJSON ¶
func (v V2TokenizedAssetsOrderOrderHashResponse) MarshalJSON() ([]byte, error)
func (*V2TokenizedAssetsOrderOrderHashResponse) UnmarshalJSON ¶
func (v *V2TokenizedAssetsOrderOrderHashResponse) UnmarshalJSON(data []byte) error
type V2TokenizedAssetsOrderResponse ¶
type V2TokenizedAssetsOrderResponse struct {
HTTPMeta components.HTTPMetadata `json:"-"`
// Successful Response
TokenizedAssetsBuildOrderResponse *components.TokenizedAssetsBuildOrderResponse
}
func (*V2TokenizedAssetsOrderResponse) GetHTTPMeta ¶
func (v *V2TokenizedAssetsOrderResponse) GetHTTPMeta() components.HTTPMetadata
func (*V2TokenizedAssetsOrderResponse) GetTokenizedAssetsBuildOrderResponse ¶
func (v *V2TokenizedAssetsOrderResponse) GetTokenizedAssetsBuildOrderResponse() *components.TokenizedAssetsBuildOrderResponse
func (V2TokenizedAssetsOrderResponse) MarshalJSON ¶
func (v V2TokenizedAssetsOrderResponse) MarshalJSON() ([]byte, error)
func (*V2TokenizedAssetsOrderResponse) UnmarshalJSON ¶
func (v *V2TokenizedAssetsOrderResponse) UnmarshalJSON(data []byte) error
type V2TokenizedAssetsOrderSubmitResponse ¶
type V2TokenizedAssetsOrderSubmitResponse struct {
HTTPMeta components.HTTPMetadata `json:"-"`
// Successful Response
TokenizedAssetsSubmitOrderResponse *components.TokenizedAssetsSubmitOrderResponse
}
func (*V2TokenizedAssetsOrderSubmitResponse) GetHTTPMeta ¶
func (v *V2TokenizedAssetsOrderSubmitResponse) GetHTTPMeta() components.HTTPMetadata
func (*V2TokenizedAssetsOrderSubmitResponse) GetTokenizedAssetsSubmitOrderResponse ¶
func (v *V2TokenizedAssetsOrderSubmitResponse) GetTokenizedAssetsSubmitOrderResponse() *components.TokenizedAssetsSubmitOrderResponse
func (V2TokenizedAssetsOrderSubmitResponse) MarshalJSON ¶
func (v V2TokenizedAssetsOrderSubmitResponse) MarshalJSON() ([]byte, error)
func (*V2TokenizedAssetsOrderSubmitResponse) UnmarshalJSON ¶
func (v *V2TokenizedAssetsOrderSubmitResponse) UnmarshalJSON(data []byte) error
type V2TokenizedAssetsPositionsChain ¶ added in v0.1.17
type V2TokenizedAssetsPositionsChain string
V2TokenizedAssetsPositionsChain - The chain to use.
const ( V2TokenizedAssetsPositionsChainBase V2TokenizedAssetsPositionsChain = "base" V2TokenizedAssetsPositionsChainEthereum V2TokenizedAssetsPositionsChain = "ethereum" V2TokenizedAssetsPositionsChainArbitrum V2TokenizedAssetsPositionsChain = "arbitrum" V2TokenizedAssetsPositionsChainHyperevm V2TokenizedAssetsPositionsChain = "hyperevm" V2TokenizedAssetsPositionsChainTempo V2TokenizedAssetsPositionsChain = "tempo" )
func (V2TokenizedAssetsPositionsChain) ToPointer ¶ added in v0.1.17
func (e V2TokenizedAssetsPositionsChain) ToPointer() *V2TokenizedAssetsPositionsChain
func (*V2TokenizedAssetsPositionsChain) UnmarshalJSON ¶ added in v0.1.17
func (e *V2TokenizedAssetsPositionsChain) UnmarshalJSON(data []byte) error
type V2TokenizedAssetsPositionsRequest ¶
type V2TokenizedAssetsPositionsRequest struct {
// The address of the owner of the Tokenized Assets Account to get positions for. The account address is derived deterministically from this owner; balances are read from the derived account.
Owner string `queryParam:"style=form,explode=true,name=owner"`
// Network to read positions on (defaults to Ethereum). Equities exist on Ethereum only; RWA yield assets also exist on Base.
Chain *V2TokenizedAssetsPositionsChain `queryParam:"style=form,explode=true,name=chain"`
}
func (*V2TokenizedAssetsPositionsRequest) GetChain ¶ added in v0.1.17
func (v *V2TokenizedAssetsPositionsRequest) GetChain() *V2TokenizedAssetsPositionsChain
func (*V2TokenizedAssetsPositionsRequest) GetOwner ¶ added in v0.1.8
func (v *V2TokenizedAssetsPositionsRequest) GetOwner() string
type V2TokenizedAssetsPositionsResponse ¶
type V2TokenizedAssetsPositionsResponse struct {
HTTPMeta components.HTTPMetadata `json:"-"`
// Successful Response
TokenizedAssetsPositionsResponse *components.TokenizedAssetsPositionsResponse
}
func (*V2TokenizedAssetsPositionsResponse) GetHTTPMeta ¶
func (v *V2TokenizedAssetsPositionsResponse) GetHTTPMeta() components.HTTPMetadata
func (*V2TokenizedAssetsPositionsResponse) GetTokenizedAssetsPositionsResponse ¶
func (v *V2TokenizedAssetsPositionsResponse) GetTokenizedAssetsPositionsResponse() *components.TokenizedAssetsPositionsResponse
func (V2TokenizedAssetsPositionsResponse) MarshalJSON ¶
func (v V2TokenizedAssetsPositionsResponse) MarshalJSON() ([]byte, error)
func (*V2TokenizedAssetsPositionsResponse) UnmarshalJSON ¶
func (v *V2TokenizedAssetsPositionsResponse) UnmarshalJSON(data []byte) error
type V2TokenizedAssetsQuoteResponse ¶
type V2TokenizedAssetsQuoteResponse struct {
HTTPMeta components.HTTPMetadata `json:"-"`
// Successful Response
TokenizedAssetsQuoteResponse *components.TokenizedAssetsQuoteResponse
}
func (*V2TokenizedAssetsQuoteResponse) GetHTTPMeta ¶
func (v *V2TokenizedAssetsQuoteResponse) GetHTTPMeta() components.HTTPMetadata
func (*V2TokenizedAssetsQuoteResponse) GetTokenizedAssetsQuoteResponse ¶
func (v *V2TokenizedAssetsQuoteResponse) GetTokenizedAssetsQuoteResponse() *components.TokenizedAssetsQuoteResponse
func (V2TokenizedAssetsQuoteResponse) MarshalJSON ¶
func (v V2TokenizedAssetsQuoteResponse) MarshalJSON() ([]byte, error)
func (*V2TokenizedAssetsQuoteResponse) UnmarshalJSON ¶
func (v *V2TokenizedAssetsQuoteResponse) UnmarshalJSON(data []byte) error
type V2TokenizedAssetsTransactBuyResponse ¶ added in v0.1.17
type V2TokenizedAssetsTransactBuyResponse struct {
HTTPMeta components.HTTPMetadata `json:"-"`
// Successful Response
TokenizedAssetsTradeResponse *components.TokenizedAssetsTradeResponse
}
func (*V2TokenizedAssetsTransactBuyResponse) GetHTTPMeta ¶ added in v0.1.17
func (v *V2TokenizedAssetsTransactBuyResponse) GetHTTPMeta() components.HTTPMetadata
func (*V2TokenizedAssetsTransactBuyResponse) GetTokenizedAssetsTradeResponse ¶ added in v0.1.17
func (v *V2TokenizedAssetsTransactBuyResponse) GetTokenizedAssetsTradeResponse() *components.TokenizedAssetsTradeResponse
func (V2TokenizedAssetsTransactBuyResponse) MarshalJSON ¶ added in v0.1.17
func (v V2TokenizedAssetsTransactBuyResponse) MarshalJSON() ([]byte, error)
func (*V2TokenizedAssetsTransactBuyResponse) UnmarshalJSON ¶ added in v0.1.17
func (v *V2TokenizedAssetsTransactBuyResponse) UnmarshalJSON(data []byte) error
type V2TokenizedAssetsTransactSellResponse ¶ added in v0.1.17
type V2TokenizedAssetsTransactSellResponse struct {
HTTPMeta components.HTTPMetadata `json:"-"`
// Successful Response
TokenizedAssetsTradeResponse *components.TokenizedAssetsTradeResponse
}
func (*V2TokenizedAssetsTransactSellResponse) GetHTTPMeta ¶ added in v0.1.17
func (v *V2TokenizedAssetsTransactSellResponse) GetHTTPMeta() components.HTTPMetadata
func (*V2TokenizedAssetsTransactSellResponse) GetTokenizedAssetsTradeResponse ¶ added in v0.1.17
func (v *V2TokenizedAssetsTransactSellResponse) GetTokenizedAssetsTradeResponse() *components.TokenizedAssetsTradeResponse
func (V2TokenizedAssetsTransactSellResponse) MarshalJSON ¶ added in v0.1.17
func (v V2TokenizedAssetsTransactSellResponse) MarshalJSON() ([]byte, error)
func (*V2TokenizedAssetsTransactSellResponse) UnmarshalJSON ¶ added in v0.1.17
func (v *V2TokenizedAssetsTransactSellResponse) UnmarshalJSON(data []byte) error
type V2TokenizedAssetsTransferResponse ¶ added in v0.1.18
type V2TokenizedAssetsTransferResponse struct {
HTTPMeta components.HTTPMetadata `json:"-"`
// Successful Response
TokenizedAssetsTransferResponse *components.TokenizedAssetsTransferResponse
}
func (*V2TokenizedAssetsTransferResponse) GetHTTPMeta ¶ added in v0.1.18
func (v *V2TokenizedAssetsTransferResponse) GetHTTPMeta() components.HTTPMetadata
func (*V2TokenizedAssetsTransferResponse) GetTokenizedAssetsTransferResponse ¶ added in v0.1.18
func (v *V2TokenizedAssetsTransferResponse) GetTokenizedAssetsTransferResponse() *components.TokenizedAssetsTransferResponse
func (V2TokenizedAssetsTransferResponse) MarshalJSON ¶ added in v0.1.18
func (v V2TokenizedAssetsTransferResponse) MarshalJSON() ([]byte, error)
func (*V2TokenizedAssetsTransferResponse) UnmarshalJSON ¶ added in v0.1.18
func (v *V2TokenizedAssetsTransferResponse) UnmarshalJSON(data []byte) error
Source Files
¶
- options.go
- v2creditbalances.go
- v2creditborrow.go
- v2creditbundle.go
- v2creditcreateaccount.go
- v2creditpositions.go
- v2creditrepay.go
- v2credittransfer.go
- v2earnaavemarkets.go
- v2earnbalances.go
- v2earnbundle.go
- v2earncreateaccount.go
- v2earnmanage.go
- v2earnpendlemarkets.go
- v2earnpositions.go
- v2earnpositionsall.go
- v2earnswap.go
- v2earnswapquote.go
- v2earntransfer.go
- v2earnvaults.go
- v2gassponsorshipapprovetransfer.go
- v2gassponsorshipprepare.go
- v2globalmarketsperpsactivity.go
- v2globalmarketsperpsapprovebuilderfee.go
- v2globalmarketsperpscancelorder.go
- v2globalmarketsperpscandles.go
- v2globalmarketsperpsdeposit.go
- v2globalmarketsperpsdepositsponsorprepare.go
- v2globalmarketsperpsenableunifiedaccount.go
- v2globalmarketsperpsensureleverage.go
- v2globalmarketsperpsexecute.go
- v2globalmarketsperpslimitorder.go
- v2globalmarketsperpsmarketorder.go
- v2globalmarketsperpsopportunities.go
- v2globalmarketsperpspositions.go
- v2globalmarketsperpswithdraw.go
- v2tokenizedassetscreateaccount.go
- v2tokenizedassetsmarkets.go
- v2tokenizedassetsmarketssymbol.go
- v2tokenizedassetsorder.go
- v2tokenizedassetsorderorderhash.go
- v2tokenizedassetsorderorderhashcancel.go
- v2tokenizedassetsordersubmit.go
- v2tokenizedassetspositions.go
- v2tokenizedassetsquote.go
- v2tokenizedassetstransactbuy.go
- v2tokenizedassetstransactsell.go
- v2tokenizedassetstransfer.go