Documentation
¶
Overview ¶
Package-level custom authentication for the Bitget Wallet SDK.
This file is hand-written and NOT generated by Fern. It is protected by .fernignore so that `fern generate` will never overwrite it.
Bitget Wallet requires every request to carry an HMAC-SHA256 signature that is computed per-request from the path, query, body, API key and timestamp. The Fern-generated SDK only injects the static `x-api-key` header, so the signing logic must be supplied as custom code. We do this by wrapping the standard net/http client: SigningHTTPClient intercepts each request right before it is sent (when path/query/body are finalized), computes the signature, and sets the `x-api-timestamp` and `x-api-signature` headers.
Usage:
c := client.NewClient( option.WithHTTPClient(bgw.NewSigningHTTPClient(apiKey, apiSecret, nil)), )
The signing algorithm follows https://web3.bitget.com/en/docs/authentication :
- Build a JSON object: {apiPath, body, <each query param>, x-api-key, x-api-timestamp}
- apiPath is the request path WITHOUT the query string.
- body is the raw JSON request body string (empty string when there is no body).
- Marshal with keys sorted alphabetically (Go's json.Marshal sorts map keys), then HMAC-SHA256 with the API secret, and base64-encode the result.
Index ¶
- Variables
- func Bool(b bool) *bool
- func Byte(b byte) *byte
- func Bytes(b []byte) *[]byte
- func Complex64(c complex64) *complex64
- func Complex128(c complex128) *complex128
- func Float32(f float32) *float32
- func Float64(f float64) *float64
- func Int(i int) *int
- func Int8(i int8) *int8
- func Int16(i int16) *int16
- func Int32(i int32) *int32
- func Int64(i int64) *int64
- func MustParseDate(date string) time.Time
- func MustParseDateTime(datetime string) time.Time
- func Rune(r rune) *rune
- func String(s string) *string
- func Time(t time.Time) *time.Time
- func UUID(u uuid.UUID) *uuid.UUID
- func Uint(u uint) *uint
- func Uint8(u uint8) *uint8
- func Uint16(u uint16) *uint16
- func Uint32(u uint32) *uint32
- func Uint64(u uint64) *uint64
- func Uintptr(u uintptr) *uintptr
- type BadRequestError
- type BalancesV3Request
- type BalancesV3Response
- func (b *BalancesV3Response) GetCode() *int
- func (b *BalancesV3Response) GetData() map[string]*BalancesV3ResponseDataValue
- func (b *BalancesV3Response) GetExtraProperties() map[string]interface{}
- func (b *BalancesV3Response) GetMessage() *string
- func (b *BalancesV3Response) MarshalJSON() ([]byte, error)
- func (b *BalancesV3Response) SetCode(code *int)
- func (b *BalancesV3Response) SetData(data map[string]*BalancesV3ResponseDataValue)
- func (b *BalancesV3Response) SetMessage(message *string)
- func (b *BalancesV3Response) String() string
- func (b *BalancesV3Response) UnmarshalJSON(data []byte) error
- type BalancesV3ResponseDataValue
- func (b *BalancesV3ResponseDataValue) GetAddress() *string
- func (b *BalancesV3ResponseDataValue) GetBalance() *string
- func (b *BalancesV3ResponseDataValue) GetChain() *string
- func (b *BalancesV3ResponseDataValue) GetCode() *int
- func (b *BalancesV3ResponseDataValue) GetContract() *string
- func (b *BalancesV3ResponseDataValue) GetExtraProperties() map[string]interface{}
- func (b *BalancesV3ResponseDataValue) GetMessage() *string
- func (b *BalancesV3ResponseDataValue) GetUpdateTime() *int
- func (b *BalancesV3ResponseDataValue) MarshalJSON() ([]byte, error)
- func (b *BalancesV3ResponseDataValue) SetAddress(address *string)
- func (b *BalancesV3ResponseDataValue) SetBalance(balance *string)
- func (b *BalancesV3ResponseDataValue) SetChain(chain *string)
- func (b *BalancesV3ResponseDataValue) SetCode(code *int)
- func (b *BalancesV3ResponseDataValue) SetContract(contract *string)
- func (b *BalancesV3ResponseDataValue) SetMessage(message *string)
- func (b *BalancesV3ResponseDataValue) SetUpdateTime(updateTime *int)
- func (b *BalancesV3ResponseDataValue) String() string
- func (b *BalancesV3ResponseDataValue) UnmarshalJSON(data []byte) error
- type BaseResponse
- func (b *BaseResponse) GetData() any
- func (b *BaseResponse) GetErrorCode() *int
- func (b *BaseResponse) GetExtraProperties() map[string]interface{}
- func (b *BaseResponse) GetMsg() *string
- func (b *BaseResponse) GetStatus() *int
- func (b *BaseResponse) GetTimestamp() *int64
- func (b *BaseResponse) GetTitle() *string
- func (b *BaseResponse) GetTrace() *string
- func (b *BaseResponse) MarshalJSON() ([]byte, error)
- func (b *BaseResponse) SetData(data any)
- func (b *BaseResponse) SetErrorCode(errorCode *int)
- func (b *BaseResponse) SetMsg(msg *string)
- func (b *BaseResponse) SetStatus(status *int)
- func (b *BaseResponse) SetTimestamp(timestamp *int64)
- func (b *BaseResponse) SetTitle(title *string)
- func (b *BaseResponse) SetTrace(trace *string)
- func (b *BaseResponse) String() string
- func (b *BaseResponse) UnmarshalJSON(data []byte) error
- type BatchGetBaseInfoRequest
- type BatchGetBaseInfoRequestListItem
- func (b *BatchGetBaseInfoRequestListItem) GetChain() string
- func (b *BatchGetBaseInfoRequestListItem) GetContract() string
- func (b *BatchGetBaseInfoRequestListItem) GetExtraProperties() map[string]interface{}
- func (b *BatchGetBaseInfoRequestListItem) MarshalJSON() ([]byte, error)
- func (b *BatchGetBaseInfoRequestListItem) SetChain(chain string)
- func (b *BatchGetBaseInfoRequestListItem) SetContract(contract string)
- func (b *BatchGetBaseInfoRequestListItem) String() string
- func (b *BatchGetBaseInfoRequestListItem) UnmarshalJSON(data []byte) error
- type BatchGetBaseInfoResponse
- func (b *BatchGetBaseInfoResponse) GetData() *BatchGetBaseInfoResponseData
- func (b *BatchGetBaseInfoResponse) GetExtraProperties() map[string]interface{}
- func (b *BatchGetBaseInfoResponse) GetStatus() *int
- func (b *BatchGetBaseInfoResponse) GetTraceID() *string
- func (b *BatchGetBaseInfoResponse) MarshalJSON() ([]byte, error)
- func (b *BatchGetBaseInfoResponse) SetData(data *BatchGetBaseInfoResponseData)
- func (b *BatchGetBaseInfoResponse) SetStatus(status *int)
- func (b *BatchGetBaseInfoResponse) SetTraceID(traceID *string)
- func (b *BatchGetBaseInfoResponse) String() string
- func (b *BatchGetBaseInfoResponse) UnmarshalJSON(data []byte) error
- type BatchGetBaseInfoResponseData
- func (b *BatchGetBaseInfoResponseData) GetExtraProperties() map[string]interface{}
- func (b *BatchGetBaseInfoResponseData) GetList() []*TokenBaseInfo
- func (b *BatchGetBaseInfoResponseData) MarshalJSON() ([]byte, error)
- func (b *BatchGetBaseInfoResponseData) SetList(list []*TokenBaseInfo)
- func (b *BatchGetBaseInfoResponseData) String() string
- func (b *BatchGetBaseInfoResponseData) UnmarshalJSON(data []byte) error
- type BatchGetFullInfoRequest
- type BatchGetFullInfoRequestListItem
- func (b *BatchGetFullInfoRequestListItem) GetChain() string
- func (b *BatchGetFullInfoRequestListItem) GetContract() string
- func (b *BatchGetFullInfoRequestListItem) GetExtraProperties() map[string]interface{}
- func (b *BatchGetFullInfoRequestListItem) MarshalJSON() ([]byte, error)
- func (b *BatchGetFullInfoRequestListItem) SetChain(chain string)
- func (b *BatchGetFullInfoRequestListItem) SetContract(contract string)
- func (b *BatchGetFullInfoRequestListItem) String() string
- func (b *BatchGetFullInfoRequestListItem) UnmarshalJSON(data []byte) error
- type BatchGetFullInfoResponse
- func (b *BatchGetFullInfoResponse) GetData() *BatchGetFullInfoResponseData
- func (b *BatchGetFullInfoResponse) GetExtraProperties() map[string]interface{}
- func (b *BatchGetFullInfoResponse) GetStatus() *int
- func (b *BatchGetFullInfoResponse) GetTraceID() *string
- func (b *BatchGetFullInfoResponse) MarshalJSON() ([]byte, error)
- func (b *BatchGetFullInfoResponse) SetData(data *BatchGetFullInfoResponseData)
- func (b *BatchGetFullInfoResponse) SetStatus(status *int)
- func (b *BatchGetFullInfoResponse) SetTraceID(traceID *string)
- func (b *BatchGetFullInfoResponse) String() string
- func (b *BatchGetFullInfoResponse) UnmarshalJSON(data []byte) error
- type BatchGetFullInfoResponseData
- func (b *BatchGetFullInfoResponseData) GetExtraProperties() map[string]interface{}
- func (b *BatchGetFullInfoResponseData) GetList() []*FullTokenInfo
- func (b *BatchGetFullInfoResponseData) MarshalJSON() ([]byte, error)
- func (b *BatchGetFullInfoResponseData) SetList(list []*FullTokenInfo)
- func (b *BatchGetFullInfoResponseData) String() string
- func (b *BatchGetFullInfoResponseData) UnmarshalJSON(data []byte) error
- type BatchGetTxInfoRequest
- type BatchGetTxInfoRequestListItem
- func (b *BatchGetTxInfoRequestListItem) GetChain() string
- func (b *BatchGetTxInfoRequestListItem) GetContract() string
- func (b *BatchGetTxInfoRequestListItem) GetExtraProperties() map[string]interface{}
- func (b *BatchGetTxInfoRequestListItem) MarshalJSON() ([]byte, error)
- func (b *BatchGetTxInfoRequestListItem) SetChain(chain string)
- func (b *BatchGetTxInfoRequestListItem) SetContract(contract string)
- func (b *BatchGetTxInfoRequestListItem) String() string
- func (b *BatchGetTxInfoRequestListItem) UnmarshalJSON(data []byte) error
- type BatchGetTxInfoResponse
- func (b *BatchGetTxInfoResponse) GetData() *BatchGetTxInfoResponseData
- func (b *BatchGetTxInfoResponse) GetExtraProperties() map[string]interface{}
- func (b *BatchGetTxInfoResponse) GetStatus() *int
- func (b *BatchGetTxInfoResponse) GetTraceID() *string
- func (b *BatchGetTxInfoResponse) MarshalJSON() ([]byte, error)
- func (b *BatchGetTxInfoResponse) SetData(data *BatchGetTxInfoResponseData)
- func (b *BatchGetTxInfoResponse) SetStatus(status *int)
- func (b *BatchGetTxInfoResponse) SetTraceID(traceID *string)
- func (b *BatchGetTxInfoResponse) String() string
- func (b *BatchGetTxInfoResponse) UnmarshalJSON(data []byte) error
- type BatchGetTxInfoResponseData
- func (b *BatchGetTxInfoResponseData) GetExtraProperties() map[string]interface{}
- func (b *BatchGetTxInfoResponseData) GetList() []*BatchGetTxInfoResponseDataListItem
- func (b *BatchGetTxInfoResponseData) MarshalJSON() ([]byte, error)
- func (b *BatchGetTxInfoResponseData) SetList(list []*BatchGetTxInfoResponseDataListItem)
- func (b *BatchGetTxInfoResponseData) String() string
- func (b *BatchGetTxInfoResponseData) UnmarshalJSON(data []byte) error
- type BatchGetTxInfoResponseDataListItem
- func (b *BatchGetTxInfoResponseDataListItem) GetChain() *string
- func (b *BatchGetTxInfoResponseDataListItem) GetContract() *string
- func (b *BatchGetTxInfoResponseDataListItem) GetExtraProperties() map[string]interface{}
- func (b *BatchGetTxInfoResponseDataListItem) GetPrice() *float64
- func (b *BatchGetTxInfoResponseDataListItem) GetTxnInfo() map[string]*TxnInfoInterval
- func (b *BatchGetTxInfoResponseDataListItem) MarshalJSON() ([]byte, error)
- func (b *BatchGetTxInfoResponseDataListItem) SetChain(chain *string)
- func (b *BatchGetTxInfoResponseDataListItem) SetContract(contract *string)
- func (b *BatchGetTxInfoResponseDataListItem) SetPrice(price *float64)
- func (b *BatchGetTxInfoResponseDataListItem) SetTxnInfo(txnInfo map[string]*TxnInfoInterval)
- func (b *BatchGetTxInfoResponseDataListItem) String() string
- func (b *BatchGetTxInfoResponseDataListItem) UnmarshalJSON(data []byte) error
- type ChainInfo
- func (c *ChainInfo) GetChain() *string
- func (c *ChainInfo) GetExtraProperties() map[string]interface{}
- func (c *ChainInfo) GetIcon() *string
- func (c *ChainInfo) GetName() *string
- func (c *ChainInfo) MarshalJSON() ([]byte, error)
- func (c *ChainInfo) SetChain(chain *string)
- func (c *ChainInfo) SetIcon(icon *string)
- func (c *ChainInfo) SetName(name *string)
- func (c *ChainInfo) String() string
- func (c *ChainInfo) UnmarshalJSON(data []byte) error
- type ChainResponse
- func (c *ChainResponse) GetCode() *int
- func (c *ChainResponse) GetData() any
- func (c *ChainResponse) GetExtraProperties() map[string]interface{}
- func (c *ChainResponse) GetMessage() *string
- func (c *ChainResponse) MarshalJSON() ([]byte, error)
- func (c *ChainResponse) SetCode(code *int)
- func (c *ChainResponse) SetData(data any)
- func (c *ChainResponse) SetMessage(message *string)
- func (c *ChainResponse) String() string
- func (c *ChainResponse) UnmarshalJSON(data []byte) error
- type ChainSendRequest
- type ChainSendResponse
- func (c *ChainSendResponse) GetCode() *int
- func (c *ChainSendResponse) GetData() *ChainSendResponseData
- func (c *ChainSendResponse) GetExtraProperties() map[string]interface{}
- func (c *ChainSendResponse) GetMessage() *string
- func (c *ChainSendResponse) MarshalJSON() ([]byte, error)
- func (c *ChainSendResponse) SetCode(code *int)
- func (c *ChainSendResponse) SetData(data *ChainSendResponseData)
- func (c *ChainSendResponse) SetMessage(message *string)
- func (c *ChainSendResponse) String() string
- func (c *ChainSendResponse) UnmarshalJSON(data []byte) error
- type ChainSendResponseData
- func (c *ChainSendResponseData) GetExtraProperties() map[string]interface{}
- func (c *ChainSendResponseData) GetTxid() *string
- func (c *ChainSendResponseData) MarshalJSON() ([]byte, error)
- func (c *ChainSendResponseData) SetTxid(txid *string)
- func (c *ChainSendResponseData) String() string
- func (c *ChainSendResponseData) UnmarshalJSON(data []byte) error
- type Fee
- func (f *Fee) GetAppFee() *FeeBucket
- func (f *Fee) GetExtraProperties() map[string]interface{}
- func (f *Fee) GetGasFee() *FeeBucket
- func (f *Fee) GetLpFee() *FeeBucket
- func (f *Fee) GetPlatformFee() *FeeBucket
- func (f *Fee) GetSwapFee() *FeeBucket
- func (f *Fee) GetTotalAmountInUsd() *string
- func (f *Fee) MarshalJSON() ([]byte, error)
- func (f *Fee) SetAppFee(appFee *FeeBucket)
- func (f *Fee) SetGasFee(gasFee *FeeBucket)
- func (f *Fee) SetLpFee(lpFee *FeeBucket)
- func (f *Fee) SetPlatformFee(platformFee *FeeBucket)
- func (f *Fee) SetSwapFee(swapFee *FeeBucket)
- func (f *Fee) SetTotalAmountInUsd(totalAmountInUsd *string)
- func (f *Fee) String() string
- func (f *Fee) UnmarshalJSON(data []byte) error
- type FeeBucket
- func (f *FeeBucket) GetAmountInUsd() *string
- func (f *FeeBucket) GetExtraProperties() map[string]interface{}
- func (f *FeeBucket) GetItems() []*FeeBucketItemsItem
- func (f *FeeBucket) MarshalJSON() ([]byte, error)
- func (f *FeeBucket) SetAmountInUsd(amountInUsd *string)
- func (f *FeeBucket) SetItems(items []*FeeBucketItemsItem)
- func (f *FeeBucket) String() string
- func (f *FeeBucket) UnmarshalJSON(data []byte) error
- type FeeBucketItemsItem
- func (f *FeeBucketItemsItem) GetAmount() *string
- func (f *FeeBucketItemsItem) GetAmountInStableCoin() *string
- func (f *FeeBucketItemsItem) GetAmountInUsd() *string
- func (f *FeeBucketItemsItem) GetExtraProperties() map[string]interface{}
- func (f *FeeBucketItemsItem) GetToken() *TokenInfo
- func (f *FeeBucketItemsItem) GetType() *FeeBucketItemsItemType
- func (f *FeeBucketItemsItem) MarshalJSON() ([]byte, error)
- func (f *FeeBucketItemsItem) SetAmount(amount *string)
- func (f *FeeBucketItemsItem) SetAmountInStableCoin(amountInStableCoin *string)
- func (f *FeeBucketItemsItem) SetAmountInUsd(amountInUsd *string)
- func (f *FeeBucketItemsItem) SetToken(token *TokenInfo)
- func (f *FeeBucketItemsItem) SetType(type_ *FeeBucketItemsItemType)
- func (f *FeeBucketItemsItem) String() string
- func (f *FeeBucketItemsItem) UnmarshalJSON(data []byte) error
- type FeeBucketItemsItemType
- type FileParam
- type FileParamOption
- type ForbiddenError
- type FullTokenInfo
- func (f *FullTokenInfo) GetAbout() *string
- func (f *FullTokenInfo) GetChain() *string
- func (f *FullTokenInfo) GetCirculatingSupply() *float64
- func (f *FullTokenInfo) GetContract() *string
- func (f *FullTokenInfo) GetDecimals() *float64
- func (f *FullTokenInfo) GetDevHolderBalance() *float64
- func (f *FullTokenInfo) GetDevHolderPercent() *float64
- func (f *FullTokenInfo) GetDevIssueCoinCount() *float64
- func (f *FullTokenInfo) GetDevRugCoinCount() *float64
- func (f *FullTokenInfo) GetDevRugPercent() *float64
- func (f *FullTokenInfo) GetDiscord() *string
- func (f *FullTokenInfo) GetExtraProperties() map[string]interface{}
- func (f *FullTokenInfo) GetFacebook() *string
- func (f *FullTokenInfo) GetHolders() *float64
- func (f *FullTokenInfo) GetIcon() *string
- func (f *FullTokenInfo) GetInsiderHolderPercent() *float64
- func (f *FullTokenInfo) GetIssueDate() *float64
- func (f *FullTokenInfo) GetLiquidity() *float64
- func (f *FullTokenInfo) GetLockLpPercent() *float64
- func (f *FullTokenInfo) GetMarket() *FullTokenInfoMarket
- func (f *FullTokenInfo) GetMaxSupply() *float64
- func (f *FullTokenInfo) GetName() *string
- func (f *FullTokenInfo) GetPrice() *float64
- func (f *FullTokenInfo) GetSecurity() *SecurityInfo
- func (f *FullTokenInfo) GetSniperHolderPercent() *float64
- func (f *FullTokenInfo) GetSymbol() *string
- func (f *FullTokenInfo) GetTelegram() *string
- func (f *FullTokenInfo) GetTop10HolderPercent() *float64
- func (f *FullTokenInfo) GetTotalSupply() *float64
- func (f *FullTokenInfo) GetTwitter() *string
- func (f *FullTokenInfo) GetWebsite() *string
- func (f *FullTokenInfo) GetWhitepaper() *string
- func (f *FullTokenInfo) MarshalJSON() ([]byte, error)
- func (f *FullTokenInfo) SetAbout(about *string)
- func (f *FullTokenInfo) SetChain(chain *string)
- func (f *FullTokenInfo) SetCirculatingSupply(circulatingSupply *float64)
- func (f *FullTokenInfo) SetContract(contract *string)
- func (f *FullTokenInfo) SetDecimals(decimals *float64)
- func (f *FullTokenInfo) SetDevHolderBalance(devHolderBalance *float64)
- func (f *FullTokenInfo) SetDevHolderPercent(devHolderPercent *float64)
- func (f *FullTokenInfo) SetDevIssueCoinCount(devIssueCoinCount *float64)
- func (f *FullTokenInfo) SetDevRugCoinCount(devRugCoinCount *float64)
- func (f *FullTokenInfo) SetDevRugPercent(devRugPercent *float64)
- func (f *FullTokenInfo) SetDiscord(discord *string)
- func (f *FullTokenInfo) SetFacebook(facebook *string)
- func (f *FullTokenInfo) SetHolders(holders *float64)
- func (f *FullTokenInfo) SetIcon(icon *string)
- func (f *FullTokenInfo) SetInsiderHolderPercent(insiderHolderPercent *float64)
- func (f *FullTokenInfo) SetIssueDate(issueDate *float64)
- func (f *FullTokenInfo) SetLiquidity(liquidity *float64)
- func (f *FullTokenInfo) SetLockLpPercent(lockLpPercent *float64)
- func (f *FullTokenInfo) SetMarket(market *FullTokenInfoMarket)
- func (f *FullTokenInfo) SetMaxSupply(maxSupply *float64)
- func (f *FullTokenInfo) SetName(name *string)
- func (f *FullTokenInfo) SetPrice(price *float64)
- func (f *FullTokenInfo) SetSecurity(security *SecurityInfo)
- func (f *FullTokenInfo) SetSniperHolderPercent(sniperHolderPercent *float64)
- func (f *FullTokenInfo) SetSymbol(symbol *string)
- func (f *FullTokenInfo) SetTelegram(telegram *string)
- func (f *FullTokenInfo) SetTop10HolderPercent(top10HolderPercent *float64)
- func (f *FullTokenInfo) SetTotalSupply(totalSupply *float64)
- func (f *FullTokenInfo) SetTwitter(twitter *string)
- func (f *FullTokenInfo) SetWebsite(website *string)
- func (f *FullTokenInfo) SetWhitepaper(whitepaper *string)
- func (f *FullTokenInfo) String() string
- func (f *FullTokenInfo) UnmarshalJSON(data []byte) error
- type FullTokenInfoMarket
- func (f *FullTokenInfoMarket) GetAge() *float64
- func (f *FullTokenInfoMarket) GetChange1H() *float64
- func (f *FullTokenInfoMarket) GetChange4H() *float64
- func (f *FullTokenInfoMarket) GetChange5M() *float64
- func (f *FullTokenInfoMarket) GetChange24H() *float64
- func (f *FullTokenInfoMarket) GetExtraProperties() map[string]interface{}
- func (f *FullTokenInfoMarket) GetFdv() *float64
- func (f *FullTokenInfoMarket) GetLiquidity() *float64
- func (f *FullTokenInfoMarket) GetMarketCap() *float64
- func (f *FullTokenInfoMarket) GetPairs() []*FullTokenInfoMarketPairsItem
- func (f *FullTokenInfoMarket) GetPrice() *float64
- func (f *FullTokenInfoMarket) GetTurnover() *float64
- func (f *FullTokenInfoMarket) GetVolumeUsd1H() *float64
- func (f *FullTokenInfoMarket) GetVolumeUsd4H() *float64
- func (f *FullTokenInfoMarket) GetVolumeUsd5M() *float64
- func (f *FullTokenInfoMarket) GetVolumeUsd24H() *float64
- func (f *FullTokenInfoMarket) MarshalJSON() ([]byte, error)
- func (f *FullTokenInfoMarket) SetAge(age *float64)
- func (f *FullTokenInfoMarket) SetChange1H(change1H *float64)
- func (f *FullTokenInfoMarket) SetChange4H(change4H *float64)
- func (f *FullTokenInfoMarket) SetChange5M(change5M *float64)
- func (f *FullTokenInfoMarket) SetChange24H(change24H *float64)
- func (f *FullTokenInfoMarket) SetFdv(fdv *float64)
- func (f *FullTokenInfoMarket) SetLiquidity(liquidity *float64)
- func (f *FullTokenInfoMarket) SetMarketCap(marketCap *float64)
- func (f *FullTokenInfoMarket) SetPairs(pairs []*FullTokenInfoMarketPairsItem)
- func (f *FullTokenInfoMarket) SetPrice(price *float64)
- func (f *FullTokenInfoMarket) SetTurnover(turnover *float64)
- func (f *FullTokenInfoMarket) SetVolumeUsd1H(volumeUsd1H *float64)
- func (f *FullTokenInfoMarket) SetVolumeUsd4H(volumeUsd4H *float64)
- func (f *FullTokenInfoMarket) SetVolumeUsd5M(volumeUsd5M *float64)
- func (f *FullTokenInfoMarket) SetVolumeUsd24H(volumeUsd24H *float64)
- func (f *FullTokenInfoMarket) String() string
- func (f *FullTokenInfoMarket) UnmarshalJSON(data []byte) error
- type FullTokenInfoMarketPairsItem
- func (f *FullTokenInfoMarketPairsItem) GetExtraProperties() map[string]interface{}
- func (f *FullTokenInfoMarketPairsItem) GetLiquidity() *float64
- func (f *FullTokenInfoMarketPairsItem) GetPoolAddress() *string
- func (f *FullTokenInfoMarketPairsItem) GetProtocol() *string
- func (f *FullTokenInfoMarketPairsItem) GetToken0Symbol() *string
- func (f *FullTokenInfoMarketPairsItem) GetToken1Symbol() *string
- func (f *FullTokenInfoMarketPairsItem) MarshalJSON() ([]byte, error)
- func (f *FullTokenInfoMarketPairsItem) SetLiquidity(liquidity *float64)
- func (f *FullTokenInfoMarketPairsItem) SetPoolAddress(poolAddress *string)
- func (f *FullTokenInfoMarketPairsItem) SetProtocol(protocol *string)
- func (f *FullTokenInfoMarketPairsItem) SetToken0Symbol(token0Symbol *string)
- func (f *FullTokenInfoMarketPairsItem) SetToken1Symbol(token1Symbol *string)
- func (f *FullTokenInfoMarketPairsItem) String() string
- func (f *FullTokenInfoMarketPairsItem) UnmarshalJSON(data []byte) error
- type GetBaseInfoRequest
- type GetBaseInfoResponse
- func (g *GetBaseInfoResponse) GetData() *TokenBaseInfo
- func (g *GetBaseInfoResponse) GetExtraProperties() map[string]interface{}
- func (g *GetBaseInfoResponse) GetStatus() *int
- func (g *GetBaseInfoResponse) GetTraceID() *string
- func (g *GetBaseInfoResponse) MarshalJSON() ([]byte, error)
- func (g *GetBaseInfoResponse) SetData(data *TokenBaseInfo)
- func (g *GetBaseInfoResponse) SetStatus(status *int)
- func (g *GetBaseInfoResponse) SetTraceID(traceID *string)
- func (g *GetBaseInfoResponse) String() string
- func (g *GetBaseInfoResponse) UnmarshalJSON(data []byte) error
- type GetGasPriceRequest
- type GetGasPriceResponse
- func (g *GetGasPriceResponse) GetCode() *int
- func (g *GetGasPriceResponse) GetData() *GetGasPriceResponseData
- func (g *GetGasPriceResponse) GetExtraProperties() map[string]interface{}
- func (g *GetGasPriceResponse) GetMessage() *string
- func (g *GetGasPriceResponse) MarshalJSON() ([]byte, error)
- func (g *GetGasPriceResponse) SetCode(code *int)
- func (g *GetGasPriceResponse) SetData(data *GetGasPriceResponseData)
- func (g *GetGasPriceResponse) SetMessage(message *string)
- func (g *GetGasPriceResponse) String() string
- func (g *GetGasPriceResponse) UnmarshalJSON(data []byte) error
- type GetGasPriceResponseData
- func (g *GetGasPriceResponseData) GetChainType() *string
- func (g *GetGasPriceResponseData) GetEip1559() *GetGasPriceResponseDataEip1559
- func (g *GetGasPriceResponseData) GetExtraProperties() map[string]interface{}
- func (g *GetGasPriceResponseData) GetFastGasPrice() *string
- func (g *GetGasPriceResponseData) GetGasPrice() *string
- func (g *GetGasPriceResponseData) GetMediumGasPrice() *string
- func (g *GetGasPriceResponseData) MarshalJSON() ([]byte, error)
- func (g *GetGasPriceResponseData) SetChainType(chainType *string)
- func (g *GetGasPriceResponseData) SetEip1559(eip1559 *GetGasPriceResponseDataEip1559)
- func (g *GetGasPriceResponseData) SetFastGasPrice(fastGasPrice *string)
- func (g *GetGasPriceResponseData) SetGasPrice(gasPrice *string)
- func (g *GetGasPriceResponseData) SetMediumGasPrice(mediumGasPrice *string)
- func (g *GetGasPriceResponseData) String() string
- func (g *GetGasPriceResponseData) UnmarshalJSON(data []byte) error
- type GetGasPriceResponseDataEip1559
- func (g *GetGasPriceResponseDataEip1559) GetBaseFeePerGas() *string
- func (g *GetGasPriceResponseDataEip1559) GetExtraProperties() map[string]interface{}
- func (g *GetGasPriceResponseDataEip1559) GetMaxPriorityFeePerGas() *string
- func (g *GetGasPriceResponseDataEip1559) GetMaxPriorityFeePerGasTiered() *GetGasPriceResponseDataEip1559MaxPriorityFeePerGasTiered
- func (g *GetGasPriceResponseDataEip1559) MarshalJSON() ([]byte, error)
- func (g *GetGasPriceResponseDataEip1559) SetBaseFeePerGas(baseFeePerGas *string)
- func (g *GetGasPriceResponseDataEip1559) SetMaxPriorityFeePerGas(maxPriorityFeePerGas *string)
- func (g *GetGasPriceResponseDataEip1559) SetMaxPriorityFeePerGasTiered(...)
- func (g *GetGasPriceResponseDataEip1559) String() string
- func (g *GetGasPriceResponseDataEip1559) UnmarshalJSON(data []byte) error
- type GetGasPriceResponseDataEip1559MaxPriorityFeePerGasTiered
- func (g *GetGasPriceResponseDataEip1559MaxPriorityFeePerGasTiered) GetExtraProperties() map[string]interface{}
- func (g *GetGasPriceResponseDataEip1559MaxPriorityFeePerGasTiered) GetFast() *string
- func (g *GetGasPriceResponseDataEip1559MaxPriorityFeePerGasTiered) GetMedium() *string
- func (g *GetGasPriceResponseDataEip1559MaxPriorityFeePerGasTiered) GetNormal() *string
- func (g *GetGasPriceResponseDataEip1559MaxPriorityFeePerGasTiered) MarshalJSON() ([]byte, error)
- func (g *GetGasPriceResponseDataEip1559MaxPriorityFeePerGasTiered) SetFast(fast *string)
- func (g *GetGasPriceResponseDataEip1559MaxPriorityFeePerGasTiered) SetMedium(medium *string)
- func (g *GetGasPriceResponseDataEip1559MaxPriorityFeePerGasTiered) SetNormal(normal *string)
- func (g *GetGasPriceResponseDataEip1559MaxPriorityFeePerGasTiered) String() string
- func (g *GetGasPriceResponseDataEip1559MaxPriorityFeePerGasTiered) UnmarshalJSON(data []byte) error
- type GetKlineRequest
- func (g *GetKlineRequest) MarshalJSON() ([]byte, error)
- func (g *GetKlineRequest) SetChain(chain string)
- func (g *GetKlineRequest) SetContract(contract string)
- func (g *GetKlineRequest) SetPeriod(period GetKlineRequestPeriod)
- func (g *GetKlineRequest) SetSize(size float64)
- func (g *GetKlineRequest) UnmarshalJSON(data []byte) error
- type GetKlineRequestPeriod
- type GetKlineResponse
- func (g *GetKlineResponse) GetData() *GetKlineResponseData
- func (g *GetKlineResponse) GetExtraProperties() map[string]interface{}
- func (g *GetKlineResponse) GetStatus() *int
- func (g *GetKlineResponse) GetTraceID() *string
- func (g *GetKlineResponse) MarshalJSON() ([]byte, error)
- func (g *GetKlineResponse) SetData(data *GetKlineResponseData)
- func (g *GetKlineResponse) SetStatus(status *int)
- func (g *GetKlineResponse) SetTraceID(traceID *string)
- func (g *GetKlineResponse) String() string
- func (g *GetKlineResponse) UnmarshalJSON(data []byte) error
- type GetKlineResponseData
- func (g *GetKlineResponseData) GetExtraProperties() map[string]interface{}
- func (g *GetKlineResponseData) GetList() []*GetKlineResponseDataListItem
- func (g *GetKlineResponseData) MarshalJSON() ([]byte, error)
- func (g *GetKlineResponseData) SetList(list []*GetKlineResponseDataListItem)
- func (g *GetKlineResponseData) String() string
- func (g *GetKlineResponseData) UnmarshalJSON(data []byte) error
- type GetKlineResponseDataListItem
- func (g *GetKlineResponseDataListItem) GetAmount() *float64
- func (g *GetKlineResponseDataListItem) GetBuyAmount() *float64
- func (g *GetKlineResponseDataListItem) GetBuyTurnover() *float64
- func (g *GetKlineResponseDataListItem) GetClose() *float64
- func (g *GetKlineResponseDataListItem) GetExtraProperties() map[string]interface{}
- func (g *GetKlineResponseDataListItem) GetHigh() *float64
- func (g *GetKlineResponseDataListItem) GetLow() *float64
- func (g *GetKlineResponseDataListItem) GetOpen() *float64
- func (g *GetKlineResponseDataListItem) GetSellAmount() *float64
- func (g *GetKlineResponseDataListItem) GetSellTurnover() *float64
- func (g *GetKlineResponseDataListItem) GetTs() *float64
- func (g *GetKlineResponseDataListItem) GetTurnover() *float64
- func (g *GetKlineResponseDataListItem) MarshalJSON() ([]byte, error)
- func (g *GetKlineResponseDataListItem) SetAmount(amount *float64)
- func (g *GetKlineResponseDataListItem) SetBuyAmount(buyAmount *float64)
- func (g *GetKlineResponseDataListItem) SetBuyTurnover(buyTurnover *float64)
- func (g *GetKlineResponseDataListItem) SetClose(close *float64)
- func (g *GetKlineResponseDataListItem) SetHigh(high *float64)
- func (g *GetKlineResponseDataListItem) SetLow(low *float64)
- func (g *GetKlineResponseDataListItem) SetOpen(open *float64)
- func (g *GetKlineResponseDataListItem) SetSellAmount(sellAmount *float64)
- func (g *GetKlineResponseDataListItem) SetSellTurnover(sellTurnover *float64)
- func (g *GetKlineResponseDataListItem) SetTs(ts *float64)
- func (g *GetKlineResponseDataListItem) SetTurnover(turnover *float64)
- func (g *GetKlineResponseDataListItem) String() string
- func (g *GetKlineResponseDataListItem) UnmarshalJSON(data []byte) error
- type GetTxInfoRequest
- type GetTxInfoResponse
- func (g *GetTxInfoResponse) GetData() *GetTxInfoResponseData
- func (g *GetTxInfoResponse) GetExtraProperties() map[string]interface{}
- func (g *GetTxInfoResponse) GetStatus() *int
- func (g *GetTxInfoResponse) GetTraceID() *string
- func (g *GetTxInfoResponse) MarshalJSON() ([]byte, error)
- func (g *GetTxInfoResponse) SetData(data *GetTxInfoResponseData)
- func (g *GetTxInfoResponse) SetStatus(status *int)
- func (g *GetTxInfoResponse) SetTraceID(traceID *string)
- func (g *GetTxInfoResponse) String() string
- func (g *GetTxInfoResponse) UnmarshalJSON(data []byte) error
- type GetTxInfoResponseData
- func (g *GetTxInfoResponseData) GetChain() *string
- func (g *GetTxInfoResponseData) GetContract() *string
- func (g *GetTxInfoResponseData) GetExtraProperties() map[string]interface{}
- func (g *GetTxInfoResponseData) GetPrice() *float64
- func (g *GetTxInfoResponseData) GetTxnInfo() map[string]*TxnInfoInterval
- func (g *GetTxInfoResponseData) MarshalJSON() ([]byte, error)
- func (g *GetTxInfoResponseData) SetChain(chain *string)
- func (g *GetTxInfoResponseData) SetContract(contract *string)
- func (g *GetTxInfoResponseData) SetPrice(price *float64)
- func (g *GetTxInfoResponseData) SetTxnInfo(txnInfo map[string]*TxnInfoInterval)
- func (g *GetTxInfoResponseData) String() string
- func (g *GetTxInfoResponseData) UnmarshalJSON(data []byte) error
- type HistoricalCoinsRequest
- type HistoricalCoinsResponse
- func (h *HistoricalCoinsResponse) GetData() *HistoricalCoinsResponseData
- func (h *HistoricalCoinsResponse) GetErrmsg() *string
- func (h *HistoricalCoinsResponse) GetErrno() *float64
- func (h *HistoricalCoinsResponse) GetExtraProperties() map[string]interface{}
- func (h *HistoricalCoinsResponse) GetStatus() *int
- func (h *HistoricalCoinsResponse) GetTraceID() *string
- func (h *HistoricalCoinsResponse) MarshalJSON() ([]byte, error)
- func (h *HistoricalCoinsResponse) SetData(data *HistoricalCoinsResponseData)
- func (h *HistoricalCoinsResponse) SetErrmsg(errmsg *string)
- func (h *HistoricalCoinsResponse) SetErrno(errno *float64)
- func (h *HistoricalCoinsResponse) SetStatus(status *int)
- func (h *HistoricalCoinsResponse) SetTraceID(traceID *string)
- func (h *HistoricalCoinsResponse) String() string
- func (h *HistoricalCoinsResponse) UnmarshalJSON(data []byte) error
- type HistoricalCoinsResponseData
- func (h *HistoricalCoinsResponseData) GetExtraProperties() map[string]interface{}
- func (h *HistoricalCoinsResponseData) GetLastTime() *string
- func (h *HistoricalCoinsResponseData) GetTokenList() []*HistoricalCoinsResponseDataTokenListItem
- func (h *HistoricalCoinsResponseData) MarshalJSON() ([]byte, error)
- func (h *HistoricalCoinsResponseData) SetLastTime(lastTime *string)
- func (h *HistoricalCoinsResponseData) SetTokenList(tokenList []*HistoricalCoinsResponseDataTokenListItem)
- func (h *HistoricalCoinsResponseData) String() string
- func (h *HistoricalCoinsResponseData) UnmarshalJSON(data []byte) error
- type HistoricalCoinsResponseDataTokenListItem
- func (h *HistoricalCoinsResponseDataTokenListItem) GetChain() *string
- func (h *HistoricalCoinsResponseDataTokenListItem) GetContract() *string
- func (h *HistoricalCoinsResponseDataTokenListItem) GetCreateTime() *string
- func (h *HistoricalCoinsResponseDataTokenListItem) GetDecimals() *float64
- func (h *HistoricalCoinsResponseDataTokenListItem) GetExtraProperties() map[string]interface{}
- func (h *HistoricalCoinsResponseDataTokenListItem) GetIcon() *string
- func (h *HistoricalCoinsResponseDataTokenListItem) GetName() *string
- func (h *HistoricalCoinsResponseDataTokenListItem) GetSymbol() *string
- func (h *HistoricalCoinsResponseDataTokenListItem) MarshalJSON() ([]byte, error)
- func (h *HistoricalCoinsResponseDataTokenListItem) SetChain(chain *string)
- func (h *HistoricalCoinsResponseDataTokenListItem) SetContract(contract *string)
- func (h *HistoricalCoinsResponseDataTokenListItem) SetCreateTime(createTime *string)
- func (h *HistoricalCoinsResponseDataTokenListItem) SetDecimals(decimals *float64)
- func (h *HistoricalCoinsResponseDataTokenListItem) SetIcon(icon *string)
- func (h *HistoricalCoinsResponseDataTokenListItem) SetName(name *string)
- func (h *HistoricalCoinsResponseDataTokenListItem) SetSymbol(symbol *string)
- func (h *HistoricalCoinsResponseDataTokenListItem) String() string
- func (h *HistoricalCoinsResponseDataTokenListItem) UnmarshalJSON(data []byte) error
- type InstructionQuoteRequest
- func (i *InstructionQuoteRequest) MarshalJSON() ([]byte, error)
- func (i *InstructionQuoteRequest) SetEstimateGas(estimateGas *bool)
- func (i *InstructionQuoteRequest) SetFeeRate(feeRate *float64)
- func (i *InstructionQuoteRequest) SetFromAddress(fromAddress *string)
- func (i *InstructionQuoteRequest) SetFromAmount(fromAmount string)
- func (i *InstructionQuoteRequest) SetFromChain(fromChain string)
- func (i *InstructionQuoteRequest) SetFromContract(fromContract string)
- func (i *InstructionQuoteRequest) SetFromSymbol(fromSymbol *string)
- func (i *InstructionQuoteRequest) SetMarket(market *string)
- func (i *InstructionQuoteRequest) SetSolMaxAccounts(solMaxAccounts *string)
- func (i *InstructionQuoteRequest) SetToAddress(toAddress *string)
- func (i *InstructionQuoteRequest) SetToChain(toChain string)
- func (i *InstructionQuoteRequest) SetToContract(toContract string)
- func (i *InstructionQuoteRequest) SetToSymbol(toSymbol *string)
- func (i *InstructionQuoteRequest) SetTxOrigin(txOrigin *string)
- func (i *InstructionQuoteRequest) UnmarshalJSON(data []byte) error
- type InstructionQuoteResponse
- func (i *InstructionQuoteResponse) GetData() *InstructionQuoteResponseData
- func (i *InstructionQuoteResponse) GetErrorCode() *int
- func (i *InstructionQuoteResponse) GetExtraProperties() map[string]interface{}
- func (i *InstructionQuoteResponse) GetMsg() *string
- func (i *InstructionQuoteResponse) GetStatus() *int
- func (i *InstructionQuoteResponse) GetTimestamp() *int64
- func (i *InstructionQuoteResponse) GetTitle() *string
- func (i *InstructionQuoteResponse) GetTrace() *string
- func (i *InstructionQuoteResponse) MarshalJSON() ([]byte, error)
- func (i *InstructionQuoteResponse) SetData(data *InstructionQuoteResponseData)
- func (i *InstructionQuoteResponse) SetErrorCode(errorCode *int)
- func (i *InstructionQuoteResponse) SetMsg(msg *string)
- func (i *InstructionQuoteResponse) SetStatus(status *int)
- func (i *InstructionQuoteResponse) SetTimestamp(timestamp *int64)
- func (i *InstructionQuoteResponse) SetTitle(title *string)
- func (i *InstructionQuoteResponse) SetTrace(trace *string)
- func (i *InstructionQuoteResponse) String() string
- func (i *InstructionQuoteResponse) UnmarshalJSON(data []byte) error
- type InstructionQuoteResponseData
- func (i *InstructionQuoteResponseData) GetComputeUnits() *float64
- func (i *InstructionQuoteResponseData) GetEstimateRevert() *bool
- func (i *InstructionQuoteResponseData) GetExtraProperties() map[string]interface{}
- func (i *InstructionQuoteResponseData) GetGasLimit() *float64
- func (i *InstructionQuoteResponseData) GetMarket() *string
- func (i *InstructionQuoteResponseData) GetSlippage() *string
- func (i *InstructionQuoteResponseData) GetToAmount() *string
- func (i *InstructionQuoteResponseData) MarshalJSON() ([]byte, error)
- func (i *InstructionQuoteResponseData) SetComputeUnits(computeUnits *float64)
- func (i *InstructionQuoteResponseData) SetEstimateRevert(estimateRevert *bool)
- func (i *InstructionQuoteResponseData) SetGasLimit(gasLimit *float64)
- func (i *InstructionQuoteResponseData) SetMarket(market *string)
- func (i *InstructionQuoteResponseData) SetSlippage(slippage *string)
- func (i *InstructionQuoteResponseData) SetToAmount(toAmount *string)
- func (i *InstructionQuoteResponseData) String() string
- func (i *InstructionQuoteResponseData) UnmarshalJSON(data []byte) error
- type InstructionSendRequest
- type InstructionSendRequestTxsItem
- func (i *InstructionSendRequestTxsItem) GetChain() string
- func (i *InstructionSendRequestTxsItem) GetExtraProperties() map[string]interface{}
- func (i *InstructionSendRequestTxsItem) GetFrom() string
- func (i *InstructionSendRequestTxsItem) GetID() string
- func (i *InstructionSendRequestTxsItem) GetNonce() float64
- func (i *InstructionSendRequestTxsItem) GetProvider() *string
- func (i *InstructionSendRequestTxsItem) GetRawTx() string
- func (i *InstructionSendRequestTxsItem) MarshalJSON() ([]byte, error)
- func (i *InstructionSendRequestTxsItem) SetChain(chain string)
- func (i *InstructionSendRequestTxsItem) SetFrom(from string)
- func (i *InstructionSendRequestTxsItem) SetID(id string)
- func (i *InstructionSendRequestTxsItem) SetNonce(nonce float64)
- func (i *InstructionSendRequestTxsItem) SetProvider(provider *string)
- func (i *InstructionSendRequestTxsItem) SetRawTx(rawTx string)
- func (i *InstructionSendRequestTxsItem) String() string
- func (i *InstructionSendRequestTxsItem) UnmarshalJSON(data []byte) error
- type InstructionSendResponse
- func (i *InstructionSendResponse) GetData() []*InstructionSendResponseDataItem
- func (i *InstructionSendResponse) GetErrorCode() *int
- func (i *InstructionSendResponse) GetExtraProperties() map[string]interface{}
- func (i *InstructionSendResponse) GetMsg() *string
- func (i *InstructionSendResponse) GetStatus() *int
- func (i *InstructionSendResponse) GetTimestamp() *int64
- func (i *InstructionSendResponse) GetTitle() *string
- func (i *InstructionSendResponse) GetTrace() *string
- func (i *InstructionSendResponse) MarshalJSON() ([]byte, error)
- func (i *InstructionSendResponse) SetData(data []*InstructionSendResponseDataItem)
- func (i *InstructionSendResponse) SetErrorCode(errorCode *int)
- func (i *InstructionSendResponse) SetMsg(msg *string)
- func (i *InstructionSendResponse) SetStatus(status *int)
- func (i *InstructionSendResponse) SetTimestamp(timestamp *int64)
- func (i *InstructionSendResponse) SetTitle(title *string)
- func (i *InstructionSendResponse) SetTrace(trace *string)
- func (i *InstructionSendResponse) String() string
- func (i *InstructionSendResponse) UnmarshalJSON(data []byte) error
- type InstructionSendResponseDataItem
- func (i *InstructionSendResponseDataItem) GetCode() *string
- func (i *InstructionSendResponseDataItem) GetExtraProperties() map[string]interface{}
- func (i *InstructionSendResponseDataItem) GetID() *string
- func (i *InstructionSendResponseDataItem) GetMessage() *string
- func (i *InstructionSendResponseDataItem) GetTxHash() *string
- func (i *InstructionSendResponseDataItem) MarshalJSON() ([]byte, error)
- func (i *InstructionSendResponseDataItem) SetCode(code *string)
- func (i *InstructionSendResponseDataItem) SetID(id *string)
- func (i *InstructionSendResponseDataItem) SetMessage(message *string)
- func (i *InstructionSendResponseDataItem) SetTxHash(txHash *string)
- func (i *InstructionSendResponseDataItem) String() string
- func (i *InstructionSendResponseDataItem) UnmarshalJSON(data []byte) error
- type InstructionSwapRequest
- func (i *InstructionSwapRequest) MarshalJSON() ([]byte, error)
- func (i *InstructionSwapRequest) SetDeadline(deadline *float64)
- func (i *InstructionSwapRequest) SetExecutorAddress(executorAddress *string)
- func (i *InstructionSwapRequest) SetFeePayer(feePayer *string)
- func (i *InstructionSwapRequest) SetFeeRate(feeRate *float64)
- func (i *InstructionSwapRequest) SetFromAddress(fromAddress string)
- func (i *InstructionSwapRequest) SetFromAmount(fromAmount string)
- func (i *InstructionSwapRequest) SetFromChain(fromChain string)
- func (i *InstructionSwapRequest) SetFromContract(fromContract string)
- func (i *InstructionSwapRequest) SetFromSymbol(fromSymbol *string)
- func (i *InstructionSwapRequest) SetMarket(market string)
- func (i *InstructionSwapRequest) SetProtocols(protocols *string)
- func (i *InstructionSwapRequest) SetRequestMod(requestMod *InstructionSwapRequestRequestMod)
- func (i *InstructionSwapRequest) SetSlippage(slippage *float64)
- func (i *InstructionSwapRequest) SetSolMaxAccounts(solMaxAccounts *string)
- func (i *InstructionSwapRequest) SetToAddress(toAddress string)
- func (i *InstructionSwapRequest) SetToChain(toChain string)
- func (i *InstructionSwapRequest) SetToContract(toContract string)
- func (i *InstructionSwapRequest) SetToSymbol(toSymbol *string)
- func (i *InstructionSwapRequest) SetTxOrigin(txOrigin *string)
- func (i *InstructionSwapRequest) UnmarshalJSON(data []byte) error
- type InstructionSwapRequestRequestMod
- type InstructionSwapResponse
- func (i *InstructionSwapResponse) GetData() *InstructionSwapResponseData
- func (i *InstructionSwapResponse) GetErrorCode() *int
- func (i *InstructionSwapResponse) GetExtraProperties() map[string]interface{}
- func (i *InstructionSwapResponse) GetMsg() *string
- func (i *InstructionSwapResponse) GetStatus() *int
- func (i *InstructionSwapResponse) GetTimestamp() *int64
- func (i *InstructionSwapResponse) GetTitle() *string
- func (i *InstructionSwapResponse) GetTrace() *string
- func (i *InstructionSwapResponse) MarshalJSON() ([]byte, error)
- func (i *InstructionSwapResponse) SetData(data *InstructionSwapResponseData)
- func (i *InstructionSwapResponse) SetErrorCode(errorCode *int)
- func (i *InstructionSwapResponse) SetMsg(msg *string)
- func (i *InstructionSwapResponse) SetStatus(status *int)
- func (i *InstructionSwapResponse) SetTimestamp(timestamp *int64)
- func (i *InstructionSwapResponse) SetTitle(title *string)
- func (i *InstructionSwapResponse) SetTrace(trace *string)
- func (i *InstructionSwapResponse) String() string
- func (i *InstructionSwapResponse) UnmarshalJSON(data []byte) error
- type InstructionSwapResponseData
- func (i *InstructionSwapResponseData) GetAddressLookupTableAccount() []string
- func (i *InstructionSwapResponseData) GetCalldata() *string
- func (i *InstructionSwapResponseData) GetComputeUnits() *float64
- func (i *InstructionSwapResponseData) GetContract() *string
- func (i *InstructionSwapResponseData) GetDeadline() *float64
- func (i *InstructionSwapResponseData) GetExtraProperties() map[string]interface{}
- func (i *InstructionSwapResponseData) GetID() *string
- func (i *InstructionSwapResponseData) GetInstructionLists() []map[string]any
- func (i *InstructionSwapResponseData) GetMarket() *string
- func (i *InstructionSwapResponseData) MarshalJSON() ([]byte, error)
- func (i *InstructionSwapResponseData) SetAddressLookupTableAccount(addressLookupTableAccount []string)
- func (i *InstructionSwapResponseData) SetCalldata(calldata *string)
- func (i *InstructionSwapResponseData) SetComputeUnits(computeUnits *float64)
- func (i *InstructionSwapResponseData) SetContract(contract *string)
- func (i *InstructionSwapResponseData) SetDeadline(deadline *float64)
- func (i *InstructionSwapResponseData) SetID(id *string)
- func (i *InstructionSwapResponseData) SetInstructionLists(instructionLists []map[string]any)
- func (i *InstructionSwapResponseData) SetMarket(market *string)
- func (i *InstructionSwapResponseData) String() string
- func (i *InstructionSwapResponseData) UnmarshalJSON(data []byte) error
- type InstructionSwaprRequest
- func (i *InstructionSwaprRequest) MarshalJSON() ([]byte, error)
- func (i *InstructionSwaprRequest) SetAmount(amount string)
- func (i *InstructionSwaprRequest) SetDeadline(deadline *int)
- func (i *InstructionSwaprRequest) SetExecutorAddress(executorAddress *string)
- func (i *InstructionSwaprRequest) SetFeeRate(feeRate float64)
- func (i *InstructionSwaprRequest) SetFromAddress(fromAddress string)
- func (i *InstructionSwaprRequest) SetFromChain(fromChain string)
- func (i *InstructionSwaprRequest) SetFromContract(fromContract string)
- func (i *InstructionSwaprRequest) SetRequestMode(requestMode InstructionSwaprRequestRequestMode)
- func (i *InstructionSwaprRequest) SetSlippage(slippage *string)
- func (i *InstructionSwaprRequest) SetToAddress(toAddress string)
- func (i *InstructionSwaprRequest) SetToContract(toContract string)
- func (i *InstructionSwaprRequest) UnmarshalJSON(data []byte) error
- type InstructionSwaprRequestRequestMode
- type InstructionSwaprResponse
- func (i *InstructionSwaprResponse) GetData() *InstructionSwaprResponseData
- func (i *InstructionSwaprResponse) GetErrorCode() *int
- func (i *InstructionSwaprResponse) GetExtraProperties() map[string]interface{}
- func (i *InstructionSwaprResponse) GetMsg() *string
- func (i *InstructionSwaprResponse) GetStatus() *int
- func (i *InstructionSwaprResponse) GetTimestamp() *int64
- func (i *InstructionSwaprResponse) GetTitle() *string
- func (i *InstructionSwaprResponse) GetTrace() *string
- func (i *InstructionSwaprResponse) MarshalJSON() ([]byte, error)
- func (i *InstructionSwaprResponse) SetData(data *InstructionSwaprResponseData)
- func (i *InstructionSwaprResponse) SetErrorCode(errorCode *int)
- func (i *InstructionSwaprResponse) SetMsg(msg *string)
- func (i *InstructionSwaprResponse) SetStatus(status *int)
- func (i *InstructionSwaprResponse) SetTimestamp(timestamp *int64)
- func (i *InstructionSwaprResponse) SetTitle(title *string)
- func (i *InstructionSwaprResponse) SetTrace(trace *string)
- func (i *InstructionSwaprResponse) String() string
- func (i *InstructionSwaprResponse) UnmarshalJSON(data []byte) error
- type InstructionSwaprResponseData
- func (i *InstructionSwaprResponseData) GetAmountIn() *string
- func (i *InstructionSwaprResponseData) GetExpectedAmountOut() *string
- func (i *InstructionSwaprResponseData) GetExpiresAt() *float64
- func (i *InstructionSwaprResponseData) GetExtraProperties() map[string]interface{}
- func (i *InstructionSwaprResponseData) GetFee() *InstructionSwaprResponseDataFee
- func (i *InstructionSwaprResponseData) GetID() *string
- func (i *InstructionSwaprResponseData) GetMarket() *string
- func (i *InstructionSwaprResponseData) GetMinAmountOut() *string
- func (i *InstructionSwaprResponseData) GetPriceImpact() *string
- func (i *InstructionSwaprResponseData) GetRecommendSlippage() *float64
- func (i *InstructionSwaprResponseData) GetTxs() []*InstructionSwaprResponseDataTxsItem
- func (i *InstructionSwaprResponseData) MarshalJSON() ([]byte, error)
- func (i *InstructionSwaprResponseData) SetAmountIn(amountIn *string)
- func (i *InstructionSwaprResponseData) SetExpectedAmountOut(expectedAmountOut *string)
- func (i *InstructionSwaprResponseData) SetExpiresAt(expiresAt *float64)
- func (i *InstructionSwaprResponseData) SetFee(fee *InstructionSwaprResponseDataFee)
- func (i *InstructionSwaprResponseData) SetID(id *string)
- func (i *InstructionSwaprResponseData) SetMarket(market *string)
- func (i *InstructionSwaprResponseData) SetMinAmountOut(minAmountOut *string)
- func (i *InstructionSwaprResponseData) SetPriceImpact(priceImpact *string)
- func (i *InstructionSwaprResponseData) SetRecommendSlippage(recommendSlippage *float64)
- func (i *InstructionSwaprResponseData) SetTxs(txs []*InstructionSwaprResponseDataTxsItem)
- func (i *InstructionSwaprResponseData) String() string
- func (i *InstructionSwaprResponseData) UnmarshalJSON(data []byte) error
- type InstructionSwaprResponseDataFee
- func (i *InstructionSwaprResponseDataFee) GetExtraProperties() map[string]interface{}
- func (i *InstructionSwaprResponseDataFee) GetPlatformFee() *InstructionSwaprResponseDataFeePlatformFee
- func (i *InstructionSwaprResponseDataFee) GetTotalAmountInUsd() *string
- func (i *InstructionSwaprResponseDataFee) MarshalJSON() ([]byte, error)
- func (i *InstructionSwaprResponseDataFee) SetPlatformFee(platformFee *InstructionSwaprResponseDataFeePlatformFee)
- func (i *InstructionSwaprResponseDataFee) SetTotalAmountInUsd(totalAmountInUsd *string)
- func (i *InstructionSwaprResponseDataFee) String() string
- func (i *InstructionSwaprResponseDataFee) UnmarshalJSON(data []byte) error
- type InstructionSwaprResponseDataFeePlatformFee
- func (i *InstructionSwaprResponseDataFeePlatformFee) GetAmountInUsd() *string
- func (i *InstructionSwaprResponseDataFeePlatformFee) GetExtraProperties() map[string]interface{}
- func (i *InstructionSwaprResponseDataFeePlatformFee) GetItems() []map[string]any
- func (i *InstructionSwaprResponseDataFeePlatformFee) MarshalJSON() ([]byte, error)
- func (i *InstructionSwaprResponseDataFeePlatformFee) SetAmountInUsd(amountInUsd *string)
- func (i *InstructionSwaprResponseDataFeePlatformFee) SetItems(items []map[string]any)
- func (i *InstructionSwaprResponseDataFeePlatformFee) String() string
- func (i *InstructionSwaprResponseDataFeePlatformFee) UnmarshalJSON(data []byte) error
- type InstructionSwaprResponseDataTxsItem
- func (i *InstructionSwaprResponseDataTxsItem) GetCalldata() string
- func (i *InstructionSwaprResponseDataTxsItem) GetChainID() float64
- func (i *InstructionSwaprResponseDataTxsItem) GetExtraProperties() map[string]interface{}
- func (i *InstructionSwaprResponseDataTxsItem) GetFunction() string
- func (i *InstructionSwaprResponseDataTxsItem) GetGasLimit() string
- func (i *InstructionSwaprResponseDataTxsItem) GetGasPrice() string
- func (i *InstructionSwaprResponseDataTxsItem) GetNonce() float64
- func (i *InstructionSwaprResponseDataTxsItem) GetTo() string
- func (i *InstructionSwaprResponseDataTxsItem) GetValue() string
- func (i *InstructionSwaprResponseDataTxsItem) MarshalJSON() ([]byte, error)
- func (i *InstructionSwaprResponseDataTxsItem) SetCalldata(calldata string)
- func (i *InstructionSwaprResponseDataTxsItem) SetChainID(chainID float64)
- func (i *InstructionSwaprResponseDataTxsItem) SetFunction(function string)
- func (i *InstructionSwaprResponseDataTxsItem) SetGasLimit(gasLimit string)
- func (i *InstructionSwaprResponseDataTxsItem) SetGasPrice(gasPrice string)
- func (i *InstructionSwaprResponseDataTxsItem) SetNonce(nonce float64)
- func (i *InstructionSwaprResponseDataTxsItem) SetTo(to string)
- func (i *InstructionSwaprResponseDataTxsItem) SetValue(value string)
- func (i *InstructionSwaprResponseDataTxsItem) String() string
- func (i *InstructionSwaprResponseDataTxsItem) UnmarshalJSON(data []byte) error
- type MarketResponse
- func (m *MarketResponse) GetData() any
- func (m *MarketResponse) GetExtraProperties() map[string]interface{}
- func (m *MarketResponse) GetStatus() *int
- func (m *MarketResponse) GetTraceID() *string
- func (m *MarketResponse) MarshalJSON() ([]byte, error)
- func (m *MarketResponse) SetData(data any)
- func (m *MarketResponse) SetStatus(status *int)
- func (m *MarketResponse) SetTraceID(traceID *string)
- func (m *MarketResponse) String() string
- func (m *MarketResponse) UnmarshalJSON(data []byte) error
- type OrderCheckOrdersFeeRequest
- type OrderCheckOrdersFeeResponse
- func (o *OrderCheckOrdersFeeResponse) GetData() *OrderCheckOrdersFeeResponseData
- func (o *OrderCheckOrdersFeeResponse) GetErrorCode() *int
- func (o *OrderCheckOrdersFeeResponse) GetExtraProperties() map[string]interface{}
- func (o *OrderCheckOrdersFeeResponse) GetMsg() *string
- func (o *OrderCheckOrdersFeeResponse) GetStatus() *int
- func (o *OrderCheckOrdersFeeResponse) GetTimestamp() *int64
- func (o *OrderCheckOrdersFeeResponse) GetTitle() *string
- func (o *OrderCheckOrdersFeeResponse) GetTrace() *string
- func (o *OrderCheckOrdersFeeResponse) MarshalJSON() ([]byte, error)
- func (o *OrderCheckOrdersFeeResponse) SetData(data *OrderCheckOrdersFeeResponseData)
- func (o *OrderCheckOrdersFeeResponse) SetErrorCode(errorCode *int)
- func (o *OrderCheckOrdersFeeResponse) SetMsg(msg *string)
- func (o *OrderCheckOrdersFeeResponse) SetStatus(status *int)
- func (o *OrderCheckOrdersFeeResponse) SetTimestamp(timestamp *int64)
- func (o *OrderCheckOrdersFeeResponse) SetTitle(title *string)
- func (o *OrderCheckOrdersFeeResponse) SetTrace(trace *string)
- func (o *OrderCheckOrdersFeeResponse) String() string
- func (o *OrderCheckOrdersFeeResponse) UnmarshalJSON(data []byte) error
- type OrderCheckOrdersFeeResponseData
- func (o *OrderCheckOrdersFeeResponseData) GetExtraProperties() map[string]interface{}
- func (o *OrderCheckOrdersFeeResponseData) GetItems() []*OrderCheckOrdersFeeResponseDataItemsItem
- func (o *OrderCheckOrdersFeeResponseData) MarshalJSON() ([]byte, error)
- func (o *OrderCheckOrdersFeeResponseData) SetItems(items []*OrderCheckOrdersFeeResponseDataItemsItem)
- func (o *OrderCheckOrdersFeeResponseData) String() string
- func (o *OrderCheckOrdersFeeResponseData) UnmarshalJSON(data []byte) error
- type OrderCheckOrdersFeeResponseDataItemsItem
- func (o *OrderCheckOrdersFeeResponseDataItemsItem) GetExtraProperties() map[string]interface{}
- func (o *OrderCheckOrdersFeeResponseDataItemsItem) GetFee() *Fee
- func (o *OrderCheckOrdersFeeResponseDataItemsItem) GetOrderID() *string
- func (o *OrderCheckOrdersFeeResponseDataItemsItem) MarshalJSON() ([]byte, error)
- func (o *OrderCheckOrdersFeeResponseDataItemsItem) SetFee(fee *Fee)
- func (o *OrderCheckOrdersFeeResponseDataItemsItem) SetOrderID(orderID *string)
- func (o *OrderCheckOrdersFeeResponseDataItemsItem) String() string
- func (o *OrderCheckOrdersFeeResponseDataItemsItem) UnmarshalJSON(data []byte) error
- type OrderGetSwapOrderRequest
- type OrderGetSwapOrderResponse
- func (o *OrderGetSwapOrderResponse) GetData() *OrderGetSwapOrderResponseData
- func (o *OrderGetSwapOrderResponse) GetErrorCode() *int
- func (o *OrderGetSwapOrderResponse) GetExtraProperties() map[string]interface{}
- func (o *OrderGetSwapOrderResponse) GetMsg() *string
- func (o *OrderGetSwapOrderResponse) GetStatus() *int
- func (o *OrderGetSwapOrderResponse) GetTimestamp() *int64
- func (o *OrderGetSwapOrderResponse) GetTitle() *string
- func (o *OrderGetSwapOrderResponse) GetTrace() *string
- func (o *OrderGetSwapOrderResponse) MarshalJSON() ([]byte, error)
- func (o *OrderGetSwapOrderResponse) SetData(data *OrderGetSwapOrderResponseData)
- func (o *OrderGetSwapOrderResponse) SetErrorCode(errorCode *int)
- func (o *OrderGetSwapOrderResponse) SetMsg(msg *string)
- func (o *OrderGetSwapOrderResponse) SetStatus(status *int)
- func (o *OrderGetSwapOrderResponse) SetTimestamp(timestamp *int64)
- func (o *OrderGetSwapOrderResponse) SetTitle(title *string)
- func (o *OrderGetSwapOrderResponse) SetTrace(trace *string)
- func (o *OrderGetSwapOrderResponse) String() string
- func (o *OrderGetSwapOrderResponse) UnmarshalJSON(data []byte) error
- type OrderGetSwapOrderResponseData
- func (o *OrderGetSwapOrderResponseData) GetChainInfo() []*ChainInfo
- func (o *OrderGetSwapOrderResponseData) GetCreateTime() *int64
- func (o *OrderGetSwapOrderResponseData) GetExtraProperties() map[string]interface{}
- func (o *OrderGetSwapOrderResponseData) GetFee() *Fee
- func (o *OrderGetSwapOrderResponseData) GetFromAmount() *string
- func (o *OrderGetSwapOrderResponseData) GetFromChain() *string
- func (o *OrderGetSwapOrderResponseData) GetFromContract() *string
- func (o *OrderGetSwapOrderResponseData) GetGasFee() *OrderGetSwapOrderResponseDataGasFee
- func (o *OrderGetSwapOrderResponseData) GetMessage() *string
- func (o *OrderGetSwapOrderResponseData) GetOrderID() *string
- func (o *OrderGetSwapOrderResponseData) GetReceiveAmount() *string
- func (o *OrderGetSwapOrderResponseData) GetStatus() *OrderGetSwapOrderResponseDataStatus
- func (o *OrderGetSwapOrderResponseData) GetToAmount() *string
- func (o *OrderGetSwapOrderResponseData) GetToChain() *string
- func (o *OrderGetSwapOrderResponseData) GetToContract() *string
- func (o *OrderGetSwapOrderResponseData) GetTokenInfo() []*TokenInfo
- func (o *OrderGetSwapOrderResponseData) GetTxs() []*OrderGetSwapOrderResponseDataTxsItem
- func (o *OrderGetSwapOrderResponseData) GetUpdateTime() *int64
- func (o *OrderGetSwapOrderResponseData) MarshalJSON() ([]byte, error)
- func (o *OrderGetSwapOrderResponseData) SetChainInfo(chainInfo []*ChainInfo)
- func (o *OrderGetSwapOrderResponseData) SetCreateTime(createTime *int64)
- func (o *OrderGetSwapOrderResponseData) SetFee(fee *Fee)
- func (o *OrderGetSwapOrderResponseData) SetFromAmount(fromAmount *string)
- func (o *OrderGetSwapOrderResponseData) SetFromChain(fromChain *string)
- func (o *OrderGetSwapOrderResponseData) SetFromContract(fromContract *string)
- func (o *OrderGetSwapOrderResponseData) SetGasFee(gasFee *OrderGetSwapOrderResponseDataGasFee)
- func (o *OrderGetSwapOrderResponseData) SetMessage(message *string)
- func (o *OrderGetSwapOrderResponseData) SetOrderID(orderID *string)
- func (o *OrderGetSwapOrderResponseData) SetReceiveAmount(receiveAmount *string)
- func (o *OrderGetSwapOrderResponseData) SetStatus(status *OrderGetSwapOrderResponseDataStatus)
- func (o *OrderGetSwapOrderResponseData) SetToAmount(toAmount *string)
- func (o *OrderGetSwapOrderResponseData) SetToChain(toChain *string)
- func (o *OrderGetSwapOrderResponseData) SetToContract(toContract *string)
- func (o *OrderGetSwapOrderResponseData) SetTokenInfo(tokenInfo []*TokenInfo)
- func (o *OrderGetSwapOrderResponseData) SetTxs(txs []*OrderGetSwapOrderResponseDataTxsItem)
- func (o *OrderGetSwapOrderResponseData) SetUpdateTime(updateTime *int64)
- func (o *OrderGetSwapOrderResponseData) String() string
- func (o *OrderGetSwapOrderResponseData) UnmarshalJSON(data []byte) error
- type OrderGetSwapOrderResponseDataGasFee
- func (o *OrderGetSwapOrderResponseDataGasFee) GetEnergyUsed() *string
- func (o *OrderGetSwapOrderResponseDataGasFee) GetExtraProperties() map[string]interface{}
- func (o *OrderGetSwapOrderResponseDataGasFee) GetFee() *string
- func (o *OrderGetSwapOrderResponseDataGasFee) GetGasLimit() *string
- func (o *OrderGetSwapOrderResponseDataGasFee) GetGasPrice() *string
- func (o *OrderGetSwapOrderResponseDataGasFee) GetGasUsed() *string
- func (o *OrderGetSwapOrderResponseDataGasFee) GetNetUsed() *string
- func (o *OrderGetSwapOrderResponseDataGasFee) MarshalJSON() ([]byte, error)
- func (o *OrderGetSwapOrderResponseDataGasFee) SetEnergyUsed(energyUsed *string)
- func (o *OrderGetSwapOrderResponseDataGasFee) SetFee(fee *string)
- func (o *OrderGetSwapOrderResponseDataGasFee) SetGasLimit(gasLimit *string)
- func (o *OrderGetSwapOrderResponseDataGasFee) SetGasPrice(gasPrice *string)
- func (o *OrderGetSwapOrderResponseDataGasFee) SetGasUsed(gasUsed *string)
- func (o *OrderGetSwapOrderResponseDataGasFee) SetNetUsed(netUsed *string)
- func (o *OrderGetSwapOrderResponseDataGasFee) String() string
- func (o *OrderGetSwapOrderResponseDataGasFee) UnmarshalJSON(data []byte) error
- type OrderGetSwapOrderResponseDataStatus
- type OrderGetSwapOrderResponseDataTxsItem
- func (o *OrderGetSwapOrderResponseDataTxsItem) GetChain() *string
- func (o *OrderGetSwapOrderResponseDataTxsItem) GetExtraProperties() map[string]interface{}
- func (o *OrderGetSwapOrderResponseDataTxsItem) GetStage() *OrderGetSwapOrderResponseDataTxsItemStage
- func (o *OrderGetSwapOrderResponseDataTxsItem) GetTokens() []*TokenInfo
- func (o *OrderGetSwapOrderResponseDataTxsItem) GetTxID() *string
- func (o *OrderGetSwapOrderResponseDataTxsItem) MarshalJSON() ([]byte, error)
- func (o *OrderGetSwapOrderResponseDataTxsItem) SetChain(chain *string)
- func (o *OrderGetSwapOrderResponseDataTxsItem) SetStage(stage *OrderGetSwapOrderResponseDataTxsItemStage)
- func (o *OrderGetSwapOrderResponseDataTxsItem) SetTokens(tokens []*TokenInfo)
- func (o *OrderGetSwapOrderResponseDataTxsItem) SetTxID(txID *string)
- func (o *OrderGetSwapOrderResponseDataTxsItem) String() string
- func (o *OrderGetSwapOrderResponseDataTxsItem) UnmarshalJSON(data []byte) error
- type OrderGetSwapOrderResponseDataTxsItemStage
- type OrderGetSwapPriceRequest
- func (o *OrderGetSwapPriceRequest) MarshalJSON() ([]byte, error)
- func (o *OrderGetSwapPriceRequest) SetFeeRate(feeRate *string)
- func (o *OrderGetSwapPriceRequest) SetFromAddress(fromAddress string)
- func (o *OrderGetSwapPriceRequest) SetFromAmount(fromAmount string)
- func (o *OrderGetSwapPriceRequest) SetFromChain(fromChain string)
- func (o *OrderGetSwapPriceRequest) SetFromContract(fromContract string)
- func (o *OrderGetSwapPriceRequest) SetToAddress(toAddress *string)
- func (o *OrderGetSwapPriceRequest) SetToChain(toChain string)
- func (o *OrderGetSwapPriceRequest) SetToContract(toContract string)
- func (o *OrderGetSwapPriceRequest) UnmarshalJSON(data []byte) error
- type OrderGetSwapPriceResponse
- func (o *OrderGetSwapPriceResponse) GetData() *OrderGetSwapPriceResponseData
- func (o *OrderGetSwapPriceResponse) GetErrorCode() *int
- func (o *OrderGetSwapPriceResponse) GetExtraProperties() map[string]interface{}
- func (o *OrderGetSwapPriceResponse) GetMsg() *string
- func (o *OrderGetSwapPriceResponse) GetStatus() *int
- func (o *OrderGetSwapPriceResponse) GetTimestamp() *int64
- func (o *OrderGetSwapPriceResponse) GetTitle() *string
- func (o *OrderGetSwapPriceResponse) GetTrace() *string
- func (o *OrderGetSwapPriceResponse) MarshalJSON() ([]byte, error)
- func (o *OrderGetSwapPriceResponse) SetData(data *OrderGetSwapPriceResponseData)
- func (o *OrderGetSwapPriceResponse) SetErrorCode(errorCode *int)
- func (o *OrderGetSwapPriceResponse) SetMsg(msg *string)
- func (o *OrderGetSwapPriceResponse) SetStatus(status *int)
- func (o *OrderGetSwapPriceResponse) SetTimestamp(timestamp *int64)
- func (o *OrderGetSwapPriceResponse) SetTitle(title *string)
- func (o *OrderGetSwapPriceResponse) SetTrace(trace *string)
- func (o *OrderGetSwapPriceResponse) String() string
- func (o *OrderGetSwapPriceResponse) UnmarshalJSON(data []byte) error
- type OrderGetSwapPriceResponseData
- func (o *OrderGetSwapPriceResponseData) GetEip7702Bound() *bool
- func (o *OrderGetSwapPriceResponseData) GetEip7702Contract() *string
- func (o *OrderGetSwapPriceResponseData) GetEip7702IsBgw() *bool
- func (o *OrderGetSwapPriceResponseData) GetExtraProperties() map[string]interface{}
- func (o *OrderGetSwapPriceResponseData) GetFeatures() []string
- func (o *OrderGetSwapPriceResponseData) GetFee() *Fee
- func (o *OrderGetSwapPriceResponseData) GetMarket() *string
- func (o *OrderGetSwapPriceResponseData) GetPriceImpact() *string
- func (o *OrderGetSwapPriceResponseData) GetSlippage() *string
- func (o *OrderGetSwapPriceResponseData) GetToAmount() *string
- func (o *OrderGetSwapPriceResponseData) GetTokenInfo() []*TokenInfo
- func (o *OrderGetSwapPriceResponseData) MarshalJSON() ([]byte, error)
- func (o *OrderGetSwapPriceResponseData) SetEip7702Bound(eip7702Bound *bool)
- func (o *OrderGetSwapPriceResponseData) SetEip7702Contract(eip7702Contract *string)
- func (o *OrderGetSwapPriceResponseData) SetEip7702IsBgw(eip7702IsBgw *bool)
- func (o *OrderGetSwapPriceResponseData) SetFeatures(features []string)
- func (o *OrderGetSwapPriceResponseData) SetFee(fee *Fee)
- func (o *OrderGetSwapPriceResponseData) SetMarket(market *string)
- func (o *OrderGetSwapPriceResponseData) SetPriceImpact(priceImpact *string)
- func (o *OrderGetSwapPriceResponseData) SetSlippage(slippage *string)
- func (o *OrderGetSwapPriceResponseData) SetToAmount(toAmount *string)
- func (o *OrderGetSwapPriceResponseData) SetTokenInfo(tokenInfo []*TokenInfo)
- func (o *OrderGetSwapPriceResponseData) String() string
- func (o *OrderGetSwapPriceResponseData) UnmarshalJSON(data []byte) error
- type OrderMakeSwapOrderRequest
- func (o *OrderMakeSwapOrderRequest) MarshalJSON() ([]byte, error)
- func (o *OrderMakeSwapOrderRequest) SetFeature(feature *string)
- func (o *OrderMakeSwapOrderRequest) SetFeeRate(feeRate *string)
- func (o *OrderMakeSwapOrderRequest) SetFromAddress(fromAddress string)
- func (o *OrderMakeSwapOrderRequest) SetFromAmount(fromAmount string)
- func (o *OrderMakeSwapOrderRequest) SetFromChain(fromChain string)
- func (o *OrderMakeSwapOrderRequest) SetFromContract(fromContract string)
- func (o *OrderMakeSwapOrderRequest) SetMarket(market string)
- func (o *OrderMakeSwapOrderRequest) SetOverrideEip7702(overrideEip7702 *bool)
- func (o *OrderMakeSwapOrderRequest) SetSlippage(slippage *string)
- func (o *OrderMakeSwapOrderRequest) SetToAddress(toAddress string)
- func (o *OrderMakeSwapOrderRequest) SetToChain(toChain string)
- func (o *OrderMakeSwapOrderRequest) SetToContract(toContract string)
- func (o *OrderMakeSwapOrderRequest) SetToMinAmount(toMinAmount *string)
- func (o *OrderMakeSwapOrderRequest) UnmarshalJSON(data []byte) error
- type OrderMakeSwapOrderResponse
- func (o *OrderMakeSwapOrderResponse) GetData() *OrderMakeSwapOrderResponseData
- func (o *OrderMakeSwapOrderResponse) GetErrorCode() *int
- func (o *OrderMakeSwapOrderResponse) GetExtraProperties() map[string]interface{}
- func (o *OrderMakeSwapOrderResponse) GetMsg() *string
- func (o *OrderMakeSwapOrderResponse) GetStatus() *int
- func (o *OrderMakeSwapOrderResponse) GetTimestamp() *int64
- func (o *OrderMakeSwapOrderResponse) GetTitle() *string
- func (o *OrderMakeSwapOrderResponse) GetTrace() *string
- func (o *OrderMakeSwapOrderResponse) MarshalJSON() ([]byte, error)
- func (o *OrderMakeSwapOrderResponse) SetData(data *OrderMakeSwapOrderResponseData)
- func (o *OrderMakeSwapOrderResponse) SetErrorCode(errorCode *int)
- func (o *OrderMakeSwapOrderResponse) SetMsg(msg *string)
- func (o *OrderMakeSwapOrderResponse) SetStatus(status *int)
- func (o *OrderMakeSwapOrderResponse) SetTimestamp(timestamp *int64)
- func (o *OrderMakeSwapOrderResponse) SetTitle(title *string)
- func (o *OrderMakeSwapOrderResponse) SetTrace(trace *string)
- func (o *OrderMakeSwapOrderResponse) String() string
- func (o *OrderMakeSwapOrderResponse) UnmarshalJSON(data []byte) error
- type OrderMakeSwapOrderResponseData
- func (o *OrderMakeSwapOrderResponseData) GetEip7702Bound() *bool
- func (o *OrderMakeSwapOrderResponseData) GetEip7702Contract() *string
- func (o *OrderMakeSwapOrderResponseData) GetEip7702IsBgw() *bool
- func (o *OrderMakeSwapOrderResponseData) GetExtraProperties() map[string]interface{}
- func (o *OrderMakeSwapOrderResponseData) GetOrderID() *string
- func (o *OrderMakeSwapOrderResponseData) GetSignatures() []*OrderTxOrSignature
- func (o *OrderMakeSwapOrderResponseData) GetToMinAmount() *string
- func (o *OrderMakeSwapOrderResponseData) GetTxs() []*OrderTxOrSignature
- func (o *OrderMakeSwapOrderResponseData) MarshalJSON() ([]byte, error)
- func (o *OrderMakeSwapOrderResponseData) SetEip7702Bound(eip7702Bound *bool)
- func (o *OrderMakeSwapOrderResponseData) SetEip7702Contract(eip7702Contract *string)
- func (o *OrderMakeSwapOrderResponseData) SetEip7702IsBgw(eip7702IsBgw *bool)
- func (o *OrderMakeSwapOrderResponseData) SetOrderID(orderID *string)
- func (o *OrderMakeSwapOrderResponseData) SetSignatures(signatures []*OrderTxOrSignature)
- func (o *OrderMakeSwapOrderResponseData) SetToMinAmount(toMinAmount *string)
- func (o *OrderMakeSwapOrderResponseData) SetTxs(txs []*OrderTxOrSignature)
- func (o *OrderMakeSwapOrderResponseData) String() string
- func (o *OrderMakeSwapOrderResponseData) UnmarshalJSON(data []byte) error
- type OrderSubmitSwapOrderRequest
- type OrderSubmitSwapOrderResponse
- func (o *OrderSubmitSwapOrderResponse) GetData() *OrderSubmitSwapOrderResponseData
- func (o *OrderSubmitSwapOrderResponse) GetErrorCode() *int
- func (o *OrderSubmitSwapOrderResponse) GetExtraProperties() map[string]interface{}
- func (o *OrderSubmitSwapOrderResponse) GetMsg() *string
- func (o *OrderSubmitSwapOrderResponse) GetStatus() *int
- func (o *OrderSubmitSwapOrderResponse) GetTimestamp() *int64
- func (o *OrderSubmitSwapOrderResponse) GetTitle() *string
- func (o *OrderSubmitSwapOrderResponse) GetTrace() *string
- func (o *OrderSubmitSwapOrderResponse) MarshalJSON() ([]byte, error)
- func (o *OrderSubmitSwapOrderResponse) SetData(data *OrderSubmitSwapOrderResponseData)
- func (o *OrderSubmitSwapOrderResponse) SetErrorCode(errorCode *int)
- func (o *OrderSubmitSwapOrderResponse) SetMsg(msg *string)
- func (o *OrderSubmitSwapOrderResponse) SetStatus(status *int)
- func (o *OrderSubmitSwapOrderResponse) SetTimestamp(timestamp *int64)
- func (o *OrderSubmitSwapOrderResponse) SetTitle(title *string)
- func (o *OrderSubmitSwapOrderResponse) SetTrace(trace *string)
- func (o *OrderSubmitSwapOrderResponse) String() string
- func (o *OrderSubmitSwapOrderResponse) UnmarshalJSON(data []byte) error
- type OrderSubmitSwapOrderResponseData
- func (o *OrderSubmitSwapOrderResponseData) GetExtraProperties() map[string]interface{}
- func (o *OrderSubmitSwapOrderResponseData) GetOrderID() *string
- func (o *OrderSubmitSwapOrderResponseData) MarshalJSON() ([]byte, error)
- func (o *OrderSubmitSwapOrderResponseData) SetOrderID(orderID *string)
- func (o *OrderSubmitSwapOrderResponseData) String() string
- func (o *OrderSubmitSwapOrderResponseData) UnmarshalJSON(data []byte) error
- type OrderTxOrSignature
- func (o *OrderTxOrSignature) GetChainID() string
- func (o *OrderTxOrSignature) GetChainName() string
- func (o *OrderTxOrSignature) GetData() map[string]any
- func (o *OrderTxOrSignature) GetExtraProperties() map[string]interface{}
- func (o *OrderTxOrSignature) GetHash() *string
- func (o *OrderTxOrSignature) GetKind() OrderTxOrSignatureKind
- func (o *OrderTxOrSignature) MarshalJSON() ([]byte, error)
- func (o *OrderTxOrSignature) SetChainID(chainID string)
- func (o *OrderTxOrSignature) SetChainName(chainName string)
- func (o *OrderTxOrSignature) SetData(data map[string]any)
- func (o *OrderTxOrSignature) SetHash(hash *string)
- func (o *OrderTxOrSignature) SetKind(kind OrderTxOrSignatureKind)
- func (o *OrderTxOrSignature) String() string
- func (o *OrderTxOrSignature) UnmarshalJSON(data []byte) error
- type OrderTxOrSignatureKind
- type PoolListRequest
- type PoolListResponse
- func (p *PoolListResponse) GetData() *PoolListResponseData
- func (p *PoolListResponse) GetExtraProperties() map[string]interface{}
- func (p *PoolListResponse) GetStatus() *int
- func (p *PoolListResponse) GetTraceID() *string
- func (p *PoolListResponse) MarshalJSON() ([]byte, error)
- func (p *PoolListResponse) SetData(data *PoolListResponseData)
- func (p *PoolListResponse) SetStatus(status *int)
- func (p *PoolListResponse) SetTraceID(traceID *string)
- func (p *PoolListResponse) String() string
- func (p *PoolListResponse) UnmarshalJSON(data []byte) error
- type PoolListResponseData
- func (p *PoolListResponseData) GetActivities() []*PoolListResponseDataActivitiesItem
- func (p *PoolListResponseData) GetExtraProperties() map[string]interface{}
- func (p *PoolListResponseData) GetLockedLpPercent() *float64
- func (p *PoolListResponseData) GetLockedLpValue() *float64
- func (p *PoolListResponseData) GetPools() []*PoolListResponseDataPoolsItem
- func (p *PoolListResponseData) GetTotalLpValue() *float64
- func (p *PoolListResponseData) MarshalJSON() ([]byte, error)
- func (p *PoolListResponseData) SetActivities(activities []*PoolListResponseDataActivitiesItem)
- func (p *PoolListResponseData) SetLockedLpPercent(lockedLpPercent *float64)
- func (p *PoolListResponseData) SetLockedLpValue(lockedLpValue *float64)
- func (p *PoolListResponseData) SetPools(pools []*PoolListResponseDataPoolsItem)
- func (p *PoolListResponseData) SetTotalLpValue(totalLpValue *float64)
- func (p *PoolListResponseData) String() string
- func (p *PoolListResponseData) UnmarshalJSON(data []byte) error
- type PoolListResponseDataActivitiesItem
- func (p *PoolListResponseDataActivitiesItem) GetAmount0() *string
- func (p *PoolListResponseDataActivitiesItem) GetAmount1() *string
- func (p *PoolListResponseDataActivitiesItem) GetExtraProperties() map[string]interface{}
- func (p *PoolListResponseDataActivitiesItem) GetSide() *PoolListResponseDataActivitiesItemSide
- func (p *PoolListResponseDataActivitiesItem) GetTime() *string
- func (p *PoolListResponseDataActivitiesItem) GetToken0Symbol() *string
- func (p *PoolListResponseDataActivitiesItem) GetToken1Symbol() *string
- func (p *PoolListResponseDataActivitiesItem) GetTransactionHash() *string
- func (p *PoolListResponseDataActivitiesItem) GetTransactionURL() *string
- func (p *PoolListResponseDataActivitiesItem) GetTxID() *string
- func (p *PoolListResponseDataActivitiesItem) GetTxURL() *string
- func (p *PoolListResponseDataActivitiesItem) MarshalJSON() ([]byte, error)
- func (p *PoolListResponseDataActivitiesItem) SetAmount0(amount0 *string)
- func (p *PoolListResponseDataActivitiesItem) SetAmount1(amount1 *string)
- func (p *PoolListResponseDataActivitiesItem) SetSide(side *PoolListResponseDataActivitiesItemSide)
- func (p *PoolListResponseDataActivitiesItem) SetTime(time *string)
- func (p *PoolListResponseDataActivitiesItem) SetToken0Symbol(token0Symbol *string)
- func (p *PoolListResponseDataActivitiesItem) SetToken1Symbol(token1Symbol *string)
- func (p *PoolListResponseDataActivitiesItem) SetTransactionHash(transactionHash *string)
- func (p *PoolListResponseDataActivitiesItem) SetTransactionURL(transactionURL *string)
- func (p *PoolListResponseDataActivitiesItem) SetTxID(txID *string)
- func (p *PoolListResponseDataActivitiesItem) SetTxURL(txURL *string)
- func (p *PoolListResponseDataActivitiesItem) String() string
- func (p *PoolListResponseDataActivitiesItem) UnmarshalJSON(data []byte) error
- type PoolListResponseDataActivitiesItemSide
- type PoolListResponseDataPoolsItem
- func (p *PoolListResponseDataPoolsItem) GetChange() *string
- func (p *PoolListResponseDataPoolsItem) GetExtraProperties() map[string]interface{}
- func (p *PoolListResponseDataPoolsItem) GetPoolAddr() *string
- func (p *PoolListResponseDataPoolsItem) GetPoolSymbol() *string
- func (p *PoolListResponseDataPoolsItem) GetPriceRate() *string
- func (p *PoolListResponseDataPoolsItem) GetPriceRateText() *string
- func (p *PoolListResponseDataPoolsItem) GetProtocol() *string
- func (p *PoolListResponseDataPoolsItem) GetProtocolAddress() *string
- func (p *PoolListResponseDataPoolsItem) GetProtocolIcon() *string
- func (p *PoolListResponseDataPoolsItem) GetReserve0() *string
- func (p *PoolListResponseDataPoolsItem) GetReserve1() *string
- func (p *PoolListResponseDataPoolsItem) GetToken0Contract() *string
- func (p *PoolListResponseDataPoolsItem) GetToken0Icon() *string
- func (p *PoolListResponseDataPoolsItem) GetToken0Symbol() *string
- func (p *PoolListResponseDataPoolsItem) GetToken1Contract() *string
- func (p *PoolListResponseDataPoolsItem) GetToken1Icon() *string
- func (p *PoolListResponseDataPoolsItem) GetToken1Symbol() *string
- func (p *PoolListResponseDataPoolsItem) GetTotalUsd() *string
- func (p *PoolListResponseDataPoolsItem) MarshalJSON() ([]byte, error)
- func (p *PoolListResponseDataPoolsItem) SetChange(change *string)
- func (p *PoolListResponseDataPoolsItem) SetPoolAddr(poolAddr *string)
- func (p *PoolListResponseDataPoolsItem) SetPoolSymbol(poolSymbol *string)
- func (p *PoolListResponseDataPoolsItem) SetPriceRate(priceRate *string)
- func (p *PoolListResponseDataPoolsItem) SetPriceRateText(priceRateText *string)
- func (p *PoolListResponseDataPoolsItem) SetProtocol(protocol *string)
- func (p *PoolListResponseDataPoolsItem) SetProtocolAddress(protocolAddress *string)
- func (p *PoolListResponseDataPoolsItem) SetProtocolIcon(protocolIcon *string)
- func (p *PoolListResponseDataPoolsItem) SetReserve0(reserve0 *string)
- func (p *PoolListResponseDataPoolsItem) SetReserve1(reserve1 *string)
- func (p *PoolListResponseDataPoolsItem) SetToken0Contract(token0Contract *string)
- func (p *PoolListResponseDataPoolsItem) SetToken0Icon(token0Icon *string)
- func (p *PoolListResponseDataPoolsItem) SetToken0Symbol(token0Symbol *string)
- func (p *PoolListResponseDataPoolsItem) SetToken1Contract(token1Contract *string)
- func (p *PoolListResponseDataPoolsItem) SetToken1Icon(token1Icon *string)
- func (p *PoolListResponseDataPoolsItem) SetToken1Symbol(token1Symbol *string)
- func (p *PoolListResponseDataPoolsItem) SetTotalUsd(totalUsd *string)
- func (p *PoolListResponseDataPoolsItem) String() string
- func (p *PoolListResponseDataPoolsItem) UnmarshalJSON(data []byte) error
- type RwaChainAsset
- func (r *RwaChainAsset) GetChain() *string
- func (r *RwaChainAsset) GetChainIcon() *string
- func (r *RwaChainAsset) GetChainName() *string
- func (r *RwaChainAsset) GetContract() *string
- func (r *RwaChainAsset) GetDataSource() *RwaChainAssetDataSource
- func (r *RwaChainAsset) GetDecimals() *int
- func (r *RwaChainAsset) GetExtraProperties() map[string]interface{}
- func (r *RwaChainAsset) GetIcon() *string
- func (r *RwaChainAsset) GetLatestPrice() *string
- func (r *RwaChainAsset) GetMarketStatus() *RwaChainAssetMarketStatus
- func (r *RwaChainAsset) GetMarketStatusCode() *RwaChainAssetMarketStatusCode
- func (r *RwaChainAsset) GetMarketStatusTitle() *string
- func (r *RwaChainAsset) GetName() *string
- func (r *RwaChainAsset) GetPrice24HChange() *string
- func (r *RwaChainAsset) GetPrice24HChangeRatio() *string
- func (r *RwaChainAsset) GetSymbol() *string
- func (r *RwaChainAsset) GetTxMaximumBuyUsd() *string
- func (r *RwaChainAsset) GetTxMaximumSellUsd() *string
- func (r *RwaChainAsset) GetTxMinimumBuyUsd() *string
- func (r *RwaChainAsset) GetTxMinimumSellUsd() *string
- func (r *RwaChainAsset) MarshalJSON() ([]byte, error)
- func (r *RwaChainAsset) SetChain(chain *string)
- func (r *RwaChainAsset) SetChainIcon(chainIcon *string)
- func (r *RwaChainAsset) SetChainName(chainName *string)
- func (r *RwaChainAsset) SetContract(contract *string)
- func (r *RwaChainAsset) SetDataSource(dataSource *RwaChainAssetDataSource)
- func (r *RwaChainAsset) SetDecimals(decimals *int)
- func (r *RwaChainAsset) SetIcon(icon *string)
- func (r *RwaChainAsset) SetLatestPrice(latestPrice *string)
- func (r *RwaChainAsset) SetMarketStatus(marketStatus *RwaChainAssetMarketStatus)
- func (r *RwaChainAsset) SetMarketStatusCode(marketStatusCode *RwaChainAssetMarketStatusCode)
- func (r *RwaChainAsset) SetMarketStatusTitle(marketStatusTitle *string)
- func (r *RwaChainAsset) SetName(name *string)
- func (r *RwaChainAsset) SetPrice24HChange(price24HChange *string)
- func (r *RwaChainAsset) SetPrice24HChangeRatio(price24HChangeRatio *string)
- func (r *RwaChainAsset) SetSymbol(symbol *string)
- func (r *RwaChainAsset) SetTxMaximumBuyUsd(txMaximumBuyUsd *string)
- func (r *RwaChainAsset) SetTxMaximumSellUsd(txMaximumSellUsd *string)
- func (r *RwaChainAsset) SetTxMinimumBuyUsd(txMinimumBuyUsd *string)
- func (r *RwaChainAsset) SetTxMinimumSellUsd(txMinimumSellUsd *string)
- func (r *RwaChainAsset) String() string
- func (r *RwaChainAsset) UnmarshalJSON(data []byte) error
- type RwaChainAssetDataSource
- type RwaChainAssetMarketStatus
- type RwaChainAssetMarketStatusCode
- type RwaCheckContractRequest
- type RwaCheckContractResponse
- func (r *RwaCheckContractResponse) GetData() *RwaCheckContractResponseData
- func (r *RwaCheckContractResponse) GetExtraProperties() map[string]interface{}
- func (r *RwaCheckContractResponse) GetStatus() *int
- func (r *RwaCheckContractResponse) GetTraceID() *string
- func (r *RwaCheckContractResponse) MarshalJSON() ([]byte, error)
- func (r *RwaCheckContractResponse) SetData(data *RwaCheckContractResponseData)
- func (r *RwaCheckContractResponse) SetStatus(status *int)
- func (r *RwaCheckContractResponse) SetTraceID(traceID *string)
- func (r *RwaCheckContractResponse) String() string
- func (r *RwaCheckContractResponse) UnmarshalJSON(data []byte) error
- type RwaCheckContractResponseData
- func (r *RwaCheckContractResponseData) GetDataSource() *string
- func (r *RwaCheckContractResponseData) GetExtraProperties() map[string]interface{}
- func (r *RwaCheckContractResponseData) GetIsExisted() *bool
- func (r *RwaCheckContractResponseData) GetStockTicker() *string
- func (r *RwaCheckContractResponseData) MarshalJSON() ([]byte, error)
- func (r *RwaCheckContractResponseData) SetDataSource(dataSource *string)
- func (r *RwaCheckContractResponseData) SetIsExisted(isExisted *bool)
- func (r *RwaCheckContractResponseData) SetStockTicker(stockTicker *string)
- func (r *RwaCheckContractResponseData) String() string
- func (r *RwaCheckContractResponseData) UnmarshalJSON(data []byte) error
- type RwaKlineRequest
- func (r *RwaKlineRequest) MarshalJSON() ([]byte, error)
- func (r *RwaKlineRequest) SetChain(chain string)
- func (r *RwaKlineRequest) SetContract(contract string)
- func (r *RwaKlineRequest) SetEndTime(endTime *int64)
- func (r *RwaKlineRequest) SetPeriod(period *RwaKlineRequestPeriod)
- func (r *RwaKlineRequest) SetSize(size *int)
- func (r *RwaKlineRequest) UnmarshalJSON(data []byte) error
- type RwaKlineRequestPeriod
- type RwaKlineResponse
- func (r *RwaKlineResponse) GetData() *RwaKlineResponseData
- func (r *RwaKlineResponse) GetExtraProperties() map[string]interface{}
- func (r *RwaKlineResponse) GetStatus() *int
- func (r *RwaKlineResponse) GetTraceID() *string
- func (r *RwaKlineResponse) MarshalJSON() ([]byte, error)
- func (r *RwaKlineResponse) SetData(data *RwaKlineResponseData)
- func (r *RwaKlineResponse) SetStatus(status *int)
- func (r *RwaKlineResponse) SetTraceID(traceID *string)
- func (r *RwaKlineResponse) String() string
- func (r *RwaKlineResponse) UnmarshalJSON(data []byte) error
- type RwaKlineResponseData
- func (r *RwaKlineResponseData) GetExtraProperties() map[string]interface{}
- func (r *RwaKlineResponseData) GetList() []*RwaKlineResponseDataListItem
- func (r *RwaKlineResponseData) MarshalJSON() ([]byte, error)
- func (r *RwaKlineResponseData) SetList(list []*RwaKlineResponseDataListItem)
- func (r *RwaKlineResponseData) String() string
- func (r *RwaKlineResponseData) UnmarshalJSON(data []byte) error
- type RwaKlineResponseDataListItem
- func (r *RwaKlineResponseDataListItem) GetAmount() *float64
- func (r *RwaKlineResponseDataListItem) GetClose() *float64
- func (r *RwaKlineResponseDataListItem) GetExtraProperties() map[string]interface{}
- func (r *RwaKlineResponseDataListItem) GetHigh() *float64
- func (r *RwaKlineResponseDataListItem) GetLow() *float64
- func (r *RwaKlineResponseDataListItem) GetOpen() *float64
- func (r *RwaKlineResponseDataListItem) GetTs() *int
- func (r *RwaKlineResponseDataListItem) GetTxn() *int
- func (r *RwaKlineResponseDataListItem) GetVolume() *float64
- func (r *RwaKlineResponseDataListItem) MarshalJSON() ([]byte, error)
- func (r *RwaKlineResponseDataListItem) SetAmount(amount *float64)
- func (r *RwaKlineResponseDataListItem) SetClose(close *float64)
- func (r *RwaKlineResponseDataListItem) SetHigh(high *float64)
- func (r *RwaKlineResponseDataListItem) SetLow(low *float64)
- func (r *RwaKlineResponseDataListItem) SetOpen(open *float64)
- func (r *RwaKlineResponseDataListItem) SetTs(ts *int)
- func (r *RwaKlineResponseDataListItem) SetTxn(txn *int)
- func (r *RwaKlineResponseDataListItem) SetVolume(volume *float64)
- func (r *RwaKlineResponseDataListItem) String() string
- func (r *RwaKlineResponseDataListItem) UnmarshalJSON(data []byte) error
- type RwaResponseEnvelope
- func (r *RwaResponseEnvelope) GetData() any
- func (r *RwaResponseEnvelope) GetExtraProperties() map[string]interface{}
- func (r *RwaResponseEnvelope) GetStatus() *int
- func (r *RwaResponseEnvelope) GetTraceID() *string
- func (r *RwaResponseEnvelope) MarshalJSON() ([]byte, error)
- func (r *RwaResponseEnvelope) SetData(data any)
- func (r *RwaResponseEnvelope) SetStatus(status *int)
- func (r *RwaResponseEnvelope) SetTraceID(traceID *string)
- func (r *RwaResponseEnvelope) String() string
- func (r *RwaResponseEnvelope) UnmarshalJSON(data []byte) error
- type RwaStockInfoRequest
- func (r *RwaStockInfoRequest) MarshalJSON() ([]byte, error)
- func (r *RwaStockInfoRequest) SetChain(chain *string)
- func (r *RwaStockInfoRequest) SetContract(contract *string)
- func (r *RwaStockInfoRequest) SetHasOffline(hasOffline *bool)
- func (r *RwaStockInfoRequest) SetTicker(ticker *string)
- func (r *RwaStockInfoRequest) UnmarshalJSON(data []byte) error
- type RwaStockInfoResponse
- func (r *RwaStockInfoResponse) GetData() *RwaStockInfoResponseData
- func (r *RwaStockInfoResponse) GetExtraProperties() map[string]interface{}
- func (r *RwaStockInfoResponse) GetStatus() *int
- func (r *RwaStockInfoResponse) GetTraceID() *string
- func (r *RwaStockInfoResponse) MarshalJSON() ([]byte, error)
- func (r *RwaStockInfoResponse) SetData(data *RwaStockInfoResponseData)
- func (r *RwaStockInfoResponse) SetStatus(status *int)
- func (r *RwaStockInfoResponse) SetTraceID(traceID *string)
- func (r *RwaStockInfoResponse) String() string
- func (r *RwaStockInfoResponse) UnmarshalJSON(data []byte) error
- type RwaStockInfoResponseData
- func (r *RwaStockInfoResponseData) GetChainAssets() []*RwaChainAsset
- func (r *RwaStockInfoResponseData) GetExtraProperties() map[string]interface{}
- func (r *RwaStockInfoResponseData) GetIcon() *string
- func (r *RwaStockInfoResponseData) GetLatestPrice() *string
- func (r *RwaStockInfoResponseData) GetName() *string
- func (r *RwaStockInfoResponseData) GetPrice24HChange() *string
- func (r *RwaStockInfoResponseData) GetPrice24HChangeRatio() *string
- func (r *RwaStockInfoResponseData) GetTicker() *string
- func (r *RwaStockInfoResponseData) MarshalJSON() ([]byte, error)
- func (r *RwaStockInfoResponseData) SetChainAssets(chainAssets []*RwaChainAsset)
- func (r *RwaStockInfoResponseData) SetIcon(icon *string)
- func (r *RwaStockInfoResponseData) SetLatestPrice(latestPrice *string)
- func (r *RwaStockInfoResponseData) SetName(name *string)
- func (r *RwaStockInfoResponseData) SetPrice24HChange(price24HChange *string)
- func (r *RwaStockInfoResponseData) SetPrice24HChangeRatio(price24HChangeRatio *string)
- func (r *RwaStockInfoResponseData) SetTicker(ticker *string)
- func (r *RwaStockInfoResponseData) String() string
- func (r *RwaStockInfoResponseData) UnmarshalJSON(data []byte) error
- type RwaStockListResponse
- func (r *RwaStockListResponse) GetData() *RwaStockListResponseData
- func (r *RwaStockListResponse) GetExtraProperties() map[string]interface{}
- func (r *RwaStockListResponse) GetStatus() *int
- func (r *RwaStockListResponse) GetTraceID() *string
- func (r *RwaStockListResponse) MarshalJSON() ([]byte, error)
- func (r *RwaStockListResponse) SetData(data *RwaStockListResponseData)
- func (r *RwaStockListResponse) SetStatus(status *int)
- func (r *RwaStockListResponse) SetTraceID(traceID *string)
- func (r *RwaStockListResponse) String() string
- func (r *RwaStockListResponse) UnmarshalJSON(data []byte) error
- type RwaStockListResponseData
- func (r *RwaStockListResponseData) GetExtraProperties() map[string]interface{}
- func (r *RwaStockListResponseData) GetList() []*RwaStockListResponseDataListItem
- func (r *RwaStockListResponseData) MarshalJSON() ([]byte, error)
- func (r *RwaStockListResponseData) SetList(list []*RwaStockListResponseDataListItem)
- func (r *RwaStockListResponseData) String() string
- func (r *RwaStockListResponseData) UnmarshalJSON(data []byte) error
- type RwaStockListResponseDataListItem
- func (r *RwaStockListResponseDataListItem) GetContracts() []*RwaStockListResponseDataListItemContractsItem
- func (r *RwaStockListResponseDataListItem) GetExtraProperties() map[string]interface{}
- func (r *RwaStockListResponseDataListItem) GetIcon() *string
- func (r *RwaStockListResponseDataListItem) GetName() *string
- func (r *RwaStockListResponseDataListItem) GetStatus() *RwaStockListResponseDataListItemStatus
- func (r *RwaStockListResponseDataListItem) GetTicker() *string
- func (r *RwaStockListResponseDataListItem) MarshalJSON() ([]byte, error)
- func (r *RwaStockListResponseDataListItem) SetContracts(contracts []*RwaStockListResponseDataListItemContractsItem)
- func (r *RwaStockListResponseDataListItem) SetIcon(icon *string)
- func (r *RwaStockListResponseDataListItem) SetName(name *string)
- func (r *RwaStockListResponseDataListItem) SetStatus(status *RwaStockListResponseDataListItemStatus)
- func (r *RwaStockListResponseDataListItem) SetTicker(ticker *string)
- func (r *RwaStockListResponseDataListItem) String() string
- func (r *RwaStockListResponseDataListItem) UnmarshalJSON(data []byte) error
- type RwaStockListResponseDataListItemContractsItem
- func (r *RwaStockListResponseDataListItemContractsItem) GetChain() *string
- func (r *RwaStockListResponseDataListItemContractsItem) GetContract() *string
- func (r *RwaStockListResponseDataListItemContractsItem) GetDataSource() *string
- func (r *RwaStockListResponseDataListItemContractsItem) GetExtraProperties() map[string]interface{}
- func (r *RwaStockListResponseDataListItemContractsItem) GetStatus() *RwaStockListResponseDataListItemContractsItemStatus
- func (r *RwaStockListResponseDataListItemContractsItem) GetSymbol() *string
- func (r *RwaStockListResponseDataListItemContractsItem) MarshalJSON() ([]byte, error)
- func (r *RwaStockListResponseDataListItemContractsItem) SetChain(chain *string)
- func (r *RwaStockListResponseDataListItemContractsItem) SetContract(contract *string)
- func (r *RwaStockListResponseDataListItemContractsItem) SetDataSource(dataSource *string)
- func (r *RwaStockListResponseDataListItemContractsItem) SetStatus(status *RwaStockListResponseDataListItemContractsItemStatus)
- func (r *RwaStockListResponseDataListItemContractsItem) SetSymbol(symbol *string)
- func (r *RwaStockListResponseDataListItemContractsItem) String() string
- func (r *RwaStockListResponseDataListItemContractsItem) UnmarshalJSON(data []byte) error
- type RwaStockListResponseDataListItemContractsItemStatus
- type RwaStockListResponseDataListItemStatus
- type RwaTransactionListRequest
- func (r *RwaTransactionListRequest) MarshalJSON() ([]byte, error)
- func (r *RwaTransactionListRequest) SetChain(chain string)
- func (r *RwaTransactionListRequest) SetContract(contract string)
- func (r *RwaTransactionListRequest) SetPage(page *int)
- func (r *RwaTransactionListRequest) SetSide(side *RwaTransactionListRequestSide)
- func (r *RwaTransactionListRequest) SetSize(size *int)
- func (r *RwaTransactionListRequest) UnmarshalJSON(data []byte) error
- type RwaTransactionListRequestSide
- type RwaTransactionListResponse
- func (r *RwaTransactionListResponse) GetData() *RwaTransactionListResponseData
- func (r *RwaTransactionListResponse) GetExtraProperties() map[string]interface{}
- func (r *RwaTransactionListResponse) GetStatus() *int
- func (r *RwaTransactionListResponse) GetTraceID() *string
- func (r *RwaTransactionListResponse) MarshalJSON() ([]byte, error)
- func (r *RwaTransactionListResponse) SetData(data *RwaTransactionListResponseData)
- func (r *RwaTransactionListResponse) SetStatus(status *int)
- func (r *RwaTransactionListResponse) SetTraceID(traceID *string)
- func (r *RwaTransactionListResponse) String() string
- func (r *RwaTransactionListResponse) UnmarshalJSON(data []byte) error
- type RwaTransactionListResponseData
- func (r *RwaTransactionListResponseData) GetExtraProperties() map[string]interface{}
- func (r *RwaTransactionListResponseData) GetList() []*RwaTransactionListResponseDataListItem
- func (r *RwaTransactionListResponseData) GetPage() *int
- func (r *RwaTransactionListResponseData) GetSize() *int
- func (r *RwaTransactionListResponseData) MarshalJSON() ([]byte, error)
- func (r *RwaTransactionListResponseData) SetList(list []*RwaTransactionListResponseDataListItem)
- func (r *RwaTransactionListResponseData) SetPage(page *int)
- func (r *RwaTransactionListResponseData) SetSize(size *int)
- func (r *RwaTransactionListResponseData) String() string
- func (r *RwaTransactionListResponseData) UnmarshalJSON(data []byte) error
- type RwaTransactionListResponseDataListItem
- func (r *RwaTransactionListResponseDataListItem) GetAmount() *float64
- func (r *RwaTransactionListResponseDataListItem) GetExtraProperties() map[string]interface{}
- func (r *RwaTransactionListResponseDataListItem) GetPrice() *float64
- func (r *RwaTransactionListResponseDataListItem) GetSide() *string
- func (r *RwaTransactionListResponseDataListItem) GetTs() *int
- func (r *RwaTransactionListResponseDataListItem) GetTxFrom() *string
- func (r *RwaTransactionListResponseDataListItem) GetTxHash() *string
- func (r *RwaTransactionListResponseDataListItem) GetValue() *float64
- func (r *RwaTransactionListResponseDataListItem) MarshalJSON() ([]byte, error)
- func (r *RwaTransactionListResponseDataListItem) SetAmount(amount *float64)
- func (r *RwaTransactionListResponseDataListItem) SetPrice(price *float64)
- func (r *RwaTransactionListResponseDataListItem) SetSide(side *string)
- func (r *RwaTransactionListResponseDataListItem) SetTs(ts *int)
- func (r *RwaTransactionListResponseDataListItem) SetTxFrom(txFrom *string)
- func (r *RwaTransactionListResponseDataListItem) SetTxHash(txHash *string)
- func (r *RwaTransactionListResponseDataListItem) SetValue(value *float64)
- func (r *RwaTransactionListResponseDataListItem) String() string
- func (r *RwaTransactionListResponseDataListItem) UnmarshalJSON(data []byte) error
- type SecurityAuditsRequest
- type SecurityAuditsRequestListItem
- func (s *SecurityAuditsRequestListItem) GetChain() string
- func (s *SecurityAuditsRequestListItem) GetChainID() float64
- func (s *SecurityAuditsRequestListItem) GetContract() string
- func (s *SecurityAuditsRequestListItem) GetExtraProperties() map[string]interface{}
- func (s *SecurityAuditsRequestListItem) MarshalJSON() ([]byte, error)
- func (s *SecurityAuditsRequestListItem) SetChain(chain string)
- func (s *SecurityAuditsRequestListItem) SetChainID(chainID float64)
- func (s *SecurityAuditsRequestListItem) SetContract(contract string)
- func (s *SecurityAuditsRequestListItem) String() string
- func (s *SecurityAuditsRequestListItem) UnmarshalJSON(data []byte) error
- type SecurityAuditsResponse
- func (s *SecurityAuditsResponse) GetData() []*SecurityAuditsResponseDataItem
- func (s *SecurityAuditsResponse) GetExtraProperties() map[string]interface{}
- func (s *SecurityAuditsResponse) GetStatus() *int
- func (s *SecurityAuditsResponse) GetTraceID() *string
- func (s *SecurityAuditsResponse) MarshalJSON() ([]byte, error)
- func (s *SecurityAuditsResponse) SetData(data []*SecurityAuditsResponseDataItem)
- func (s *SecurityAuditsResponse) SetStatus(status *int)
- func (s *SecurityAuditsResponse) SetTraceID(traceID *string)
- func (s *SecurityAuditsResponse) String() string
- func (s *SecurityAuditsResponse) UnmarshalJSON(data []byte) error
- type SecurityAuditsResponseDataItem
- func (s *SecurityAuditsResponseDataItem) GetBuyTax() *float64
- func (s *SecurityAuditsResponseDataItem) GetChain() *string
- func (s *SecurityAuditsResponseDataItem) GetChainID() *float64
- func (s *SecurityAuditsResponseDataItem) GetCheckStatus() *float64
- func (s *SecurityAuditsResponseDataItem) GetChecking() *bool
- func (s *SecurityAuditsResponseDataItem) GetContract() *string
- func (s *SecurityAuditsResponseDataItem) GetExtraProperties() map[string]interface{}
- func (s *SecurityAuditsResponseDataItem) GetFreezeAuth() *bool
- func (s *SecurityAuditsResponseDataItem) GetHighRisk() *bool
- func (s *SecurityAuditsResponseDataItem) GetLowChecks() []*SecurityCheckItem
- func (s *SecurityAuditsResponseDataItem) GetLpLock() *bool
- func (s *SecurityAuditsResponseDataItem) GetMintAuth() *bool
- func (s *SecurityAuditsResponseDataItem) GetRiskChecks() []*SecurityCheckItem
- func (s *SecurityAuditsResponseDataItem) GetRiskCount() *float64
- func (s *SecurityAuditsResponseDataItem) GetSellTax() *float64
- func (s *SecurityAuditsResponseDataItem) GetSupport() *float64
- func (s *SecurityAuditsResponseDataItem) GetToken2022() *bool
- func (s *SecurityAuditsResponseDataItem) GetTop10HolderRiskLevel() *float64
- func (s *SecurityAuditsResponseDataItem) GetWarnChecks() []*SecurityCheckItem
- func (s *SecurityAuditsResponseDataItem) GetWarnCount() *float64
- func (s *SecurityAuditsResponseDataItem) MarshalJSON() ([]byte, error)
- func (s *SecurityAuditsResponseDataItem) SetBuyTax(buyTax *float64)
- func (s *SecurityAuditsResponseDataItem) SetChain(chain *string)
- func (s *SecurityAuditsResponseDataItem) SetChainID(chainID *float64)
- func (s *SecurityAuditsResponseDataItem) SetCheckStatus(checkStatus *float64)
- func (s *SecurityAuditsResponseDataItem) SetChecking(checking *bool)
- func (s *SecurityAuditsResponseDataItem) SetContract(contract *string)
- func (s *SecurityAuditsResponseDataItem) SetFreezeAuth(freezeAuth *bool)
- func (s *SecurityAuditsResponseDataItem) SetHighRisk(highRisk *bool)
- func (s *SecurityAuditsResponseDataItem) SetLowChecks(lowChecks []*SecurityCheckItem)
- func (s *SecurityAuditsResponseDataItem) SetLpLock(lpLock *bool)
- func (s *SecurityAuditsResponseDataItem) SetMintAuth(mintAuth *bool)
- func (s *SecurityAuditsResponseDataItem) SetRiskChecks(riskChecks []*SecurityCheckItem)
- func (s *SecurityAuditsResponseDataItem) SetRiskCount(riskCount *float64)
- func (s *SecurityAuditsResponseDataItem) SetSellTax(sellTax *float64)
- func (s *SecurityAuditsResponseDataItem) SetSupport(support *float64)
- func (s *SecurityAuditsResponseDataItem) SetToken2022(token2022 *bool)
- func (s *SecurityAuditsResponseDataItem) SetTop10HolderRiskLevel(top10HolderRiskLevel *float64)
- func (s *SecurityAuditsResponseDataItem) SetWarnChecks(warnChecks []*SecurityCheckItem)
- func (s *SecurityAuditsResponseDataItem) SetWarnCount(warnCount *float64)
- func (s *SecurityAuditsResponseDataItem) String() string
- func (s *SecurityAuditsResponseDataItem) UnmarshalJSON(data []byte) error
- type SecurityCheckItem
- func (s *SecurityCheckItem) GetExtraProperties() map[string]interface{}
- func (s *SecurityCheckItem) GetLabelName() *string
- func (s *SecurityCheckItem) GetPriority() *float64
- func (s *SecurityCheckItem) GetStatus() *float64
- func (s *SecurityCheckItem) GetType() *string
- func (s *SecurityCheckItem) GetValues() any
- func (s *SecurityCheckItem) MarshalJSON() ([]byte, error)
- func (s *SecurityCheckItem) SetLabelName(labelName *string)
- func (s *SecurityCheckItem) SetPriority(priority *float64)
- func (s *SecurityCheckItem) SetStatus(status *float64)
- func (s *SecurityCheckItem) SetType(type_ *string)
- func (s *SecurityCheckItem) SetValues(values any)
- func (s *SecurityCheckItem) String() string
- func (s *SecurityCheckItem) UnmarshalJSON(data []byte) error
- type SecurityInfo
- func (s *SecurityInfo) GetBuyTax() *float64
- func (s *SecurityInfo) GetChain() *string
- func (s *SecurityInfo) GetChainID() *float64
- func (s *SecurityInfo) GetCheckStatus() *float64
- func (s *SecurityInfo) GetChecking() *bool
- func (s *SecurityInfo) GetContract() *string
- func (s *SecurityInfo) GetExtraProperties() map[string]interface{}
- func (s *SecurityInfo) GetFreezeAuth() *bool
- func (s *SecurityInfo) GetHighRisk() *bool
- func (s *SecurityInfo) GetLowChecks() []*SecurityCheckItem
- func (s *SecurityInfo) GetLpLock() *bool
- func (s *SecurityInfo) GetMintAuth() *bool
- func (s *SecurityInfo) GetRiskChecks() []*SecurityCheckItem
- func (s *SecurityInfo) GetRiskCount() *float64
- func (s *SecurityInfo) GetSellTax() *float64
- func (s *SecurityInfo) GetSupport() *float64
- func (s *SecurityInfo) GetToken2022() *bool
- func (s *SecurityInfo) GetTop10HolderRiskLevel() *float64
- func (s *SecurityInfo) GetWarnChecks() []*SecurityCheckItem
- func (s *SecurityInfo) GetWarnCount() *float64
- func (s *SecurityInfo) MarshalJSON() ([]byte, error)
- func (s *SecurityInfo) SetBuyTax(buyTax *float64)
- func (s *SecurityInfo) SetChain(chain *string)
- func (s *SecurityInfo) SetChainID(chainID *float64)
- func (s *SecurityInfo) SetCheckStatus(checkStatus *float64)
- func (s *SecurityInfo) SetChecking(checking *bool)
- func (s *SecurityInfo) SetContract(contract *string)
- func (s *SecurityInfo) SetFreezeAuth(freezeAuth *bool)
- func (s *SecurityInfo) SetHighRisk(highRisk *bool)
- func (s *SecurityInfo) SetLowChecks(lowChecks []*SecurityCheckItem)
- func (s *SecurityInfo) SetLpLock(lpLock *bool)
- func (s *SecurityInfo) SetMintAuth(mintAuth *bool)
- func (s *SecurityInfo) SetRiskChecks(riskChecks []*SecurityCheckItem)
- func (s *SecurityInfo) SetRiskCount(riskCount *float64)
- func (s *SecurityInfo) SetSellTax(sellTax *float64)
- func (s *SecurityInfo) SetSupport(support *float64)
- func (s *SecurityInfo) SetToken2022(token2022 *bool)
- func (s *SecurityInfo) SetTop10HolderRiskLevel(top10HolderRiskLevel *float64)
- func (s *SecurityInfo) SetWarnChecks(warnChecks []*SecurityCheckItem)
- func (s *SecurityInfo) SetWarnCount(warnCount *float64)
- func (s *SecurityInfo) String() string
- func (s *SecurityInfo) UnmarshalJSON(data []byte) error
- type SignBgwSolTxRequest
- type SignBgwSolTxResponse
- func (s *SignBgwSolTxResponse) GetData() *SignBgwSolTxResponseData
- func (s *SignBgwSolTxResponse) GetErrorCode() *int
- func (s *SignBgwSolTxResponse) GetExtraProperties() map[string]interface{}
- func (s *SignBgwSolTxResponse) GetMsg() *string
- func (s *SignBgwSolTxResponse) GetStatus() *int
- func (s *SignBgwSolTxResponse) GetTimestamp() *int64
- func (s *SignBgwSolTxResponse) GetTitle() *string
- func (s *SignBgwSolTxResponse) GetTrace() *string
- func (s *SignBgwSolTxResponse) MarshalJSON() ([]byte, error)
- func (s *SignBgwSolTxResponse) SetData(data *SignBgwSolTxResponseData)
- func (s *SignBgwSolTxResponse) SetErrorCode(errorCode *int)
- func (s *SignBgwSolTxResponse) SetMsg(msg *string)
- func (s *SignBgwSolTxResponse) SetStatus(status *int)
- func (s *SignBgwSolTxResponse) SetTimestamp(timestamp *int64)
- func (s *SignBgwSolTxResponse) SetTitle(title *string)
- func (s *SignBgwSolTxResponse) SetTrace(trace *string)
- func (s *SignBgwSolTxResponse) String() string
- func (s *SignBgwSolTxResponse) UnmarshalJSON(data []byte) error
- type SignBgwSolTxResponseData
- func (s *SignBgwSolTxResponseData) GetExtraProperties() map[string]interface{}
- func (s *SignBgwSolTxResponseData) GetTransaction() *string
- func (s *SignBgwSolTxResponseData) MarshalJSON() ([]byte, error)
- func (s *SignBgwSolTxResponseData) SetTransaction(transaction *string)
- func (s *SignBgwSolTxResponseData) String() string
- func (s *SignBgwSolTxResponseData) UnmarshalJSON(data []byte) error
- type SigningHTTPClient
- type TokenBaseInfo
- func (t *TokenBaseInfo) GetAbout() *string
- func (t *TokenBaseInfo) GetChain() *string
- func (t *TokenBaseInfo) GetCirculatingSupply() *float64
- func (t *TokenBaseInfo) GetContract() *string
- func (t *TokenBaseInfo) GetDecimals() *float64
- func (t *TokenBaseInfo) GetDevHolderPercent() *float64
- func (t *TokenBaseInfo) GetExtraProperties() map[string]interface{}
- func (t *TokenBaseInfo) GetHolders() *float64
- func (t *TokenBaseInfo) GetIcon() *string
- func (t *TokenBaseInfo) GetInsiderHolderPercent() *float64
- func (t *TokenBaseInfo) GetLiquidity() *float64
- func (t *TokenBaseInfo) GetName() *string
- func (t *TokenBaseInfo) GetPrice() *float64
- func (t *TokenBaseInfo) GetSniperHolderPercent() *float64
- func (t *TokenBaseInfo) GetSymbol() *string
- func (t *TokenBaseInfo) GetTelegram() *string
- func (t *TokenBaseInfo) GetTop10HolderPercent() *float64
- func (t *TokenBaseInfo) GetTotalSupply() *float64
- func (t *TokenBaseInfo) GetTwitter() *string
- func (t *TokenBaseInfo) GetWebsite() *string
- func (t *TokenBaseInfo) GetWhitepaper() *string
- func (t *TokenBaseInfo) MarshalJSON() ([]byte, error)
- func (t *TokenBaseInfo) SetAbout(about *string)
- func (t *TokenBaseInfo) SetChain(chain *string)
- func (t *TokenBaseInfo) SetCirculatingSupply(circulatingSupply *float64)
- func (t *TokenBaseInfo) SetContract(contract *string)
- func (t *TokenBaseInfo) SetDecimals(decimals *float64)
- func (t *TokenBaseInfo) SetDevHolderPercent(devHolderPercent *float64)
- func (t *TokenBaseInfo) SetHolders(holders *float64)
- func (t *TokenBaseInfo) SetIcon(icon *string)
- func (t *TokenBaseInfo) SetInsiderHolderPercent(insiderHolderPercent *float64)
- func (t *TokenBaseInfo) SetLiquidity(liquidity *float64)
- func (t *TokenBaseInfo) SetName(name *string)
- func (t *TokenBaseInfo) SetPrice(price *float64)
- func (t *TokenBaseInfo) SetSniperHolderPercent(sniperHolderPercent *float64)
- func (t *TokenBaseInfo) SetSymbol(symbol *string)
- func (t *TokenBaseInfo) SetTelegram(telegram *string)
- func (t *TokenBaseInfo) SetTop10HolderPercent(top10HolderPercent *float64)
- func (t *TokenBaseInfo) SetTotalSupply(totalSupply *float64)
- func (t *TokenBaseInfo) SetTwitter(twitter *string)
- func (t *TokenBaseInfo) SetWebsite(website *string)
- func (t *TokenBaseInfo) SetWhitepaper(whitepaper *string)
- func (t *TokenBaseInfo) String() string
- func (t *TokenBaseInfo) UnmarshalJSON(data []byte) error
- type TokenInfo
- func (t *TokenInfo) GetAddress() *string
- func (t *TokenInfo) GetDecimals() *int
- func (t *TokenInfo) GetExtraProperties() map[string]interface{}
- func (t *TokenInfo) GetIcon() *string
- func (t *TokenInfo) GetPrice() *string
- func (t *TokenInfo) GetSymbol() *string
- func (t *TokenInfo) MarshalJSON() ([]byte, error)
- func (t *TokenInfo) SetAddress(address *string)
- func (t *TokenInfo) SetDecimals(decimals *int)
- func (t *TokenInfo) SetIcon(icon *string)
- func (t *TokenInfo) SetPrice(price *string)
- func (t *TokenInfo) SetSymbol(symbol *string)
- func (t *TokenInfo) String() string
- func (t *TokenInfo) UnmarshalJSON(data []byte) error
- type TooManyRequestsError
- type TopRankRequest
- type TopRankRequestName
- type TopRankResponse
- func (t *TopRankResponse) GetData() *TopRankResponseData
- func (t *TopRankResponse) GetExtraProperties() map[string]interface{}
- func (t *TopRankResponse) GetStatus() *int
- func (t *TopRankResponse) GetTraceID() *string
- func (t *TopRankResponse) MarshalJSON() ([]byte, error)
- func (t *TopRankResponse) SetData(data *TopRankResponseData)
- func (t *TopRankResponse) SetStatus(status *int)
- func (t *TopRankResponse) SetTraceID(traceID *string)
- func (t *TopRankResponse) String() string
- func (t *TopRankResponse) UnmarshalJSON(data []byte) error
- type TopRankResponseData
- func (t *TopRankResponseData) GetExtraProperties() map[string]interface{}
- func (t *TopRankResponseData) GetList() []*TopRankResponseDataListItem
- func (t *TopRankResponseData) MarshalJSON() ([]byte, error)
- func (t *TopRankResponseData) SetList(list []*TopRankResponseDataListItem)
- func (t *TopRankResponseData) String() string
- func (t *TopRankResponseData) UnmarshalJSON(data []byte) error
- type TopRankResponseDataListItem
- func (t *TopRankResponseDataListItem) GetChain() *string
- func (t *TopRankResponseDataListItem) GetChange24H() *float64
- func (t *TopRankResponseDataListItem) GetContract() *string
- func (t *TopRankResponseDataListItem) GetExtraProperties() map[string]interface{}
- func (t *TopRankResponseDataListItem) GetIcon() *string
- func (t *TopRankResponseDataListItem) GetIssueDate() *float64
- func (t *TopRankResponseDataListItem) GetMarketCap() *float64
- func (t *TopRankResponseDataListItem) GetName() *string
- func (t *TopRankResponseDataListItem) GetPrice() *float64
- func (t *TopRankResponseDataListItem) GetRiskLevel() *TopRankResponseDataListItemRiskLevel
- func (t *TopRankResponseDataListItem) GetSymbol() *string
- func (t *TopRankResponseDataListItem) GetTurnover24H() *float64
- func (t *TopRankResponseDataListItem) GetVolume24H() *float64
- func (t *TopRankResponseDataListItem) MarshalJSON() ([]byte, error)
- func (t *TopRankResponseDataListItem) SetChain(chain *string)
- func (t *TopRankResponseDataListItem) SetChange24H(change24H *float64)
- func (t *TopRankResponseDataListItem) SetContract(contract *string)
- func (t *TopRankResponseDataListItem) SetIcon(icon *string)
- func (t *TopRankResponseDataListItem) SetIssueDate(issueDate *float64)
- func (t *TopRankResponseDataListItem) SetMarketCap(marketCap *float64)
- func (t *TopRankResponseDataListItem) SetName(name *string)
- func (t *TopRankResponseDataListItem) SetPrice(price *float64)
- func (t *TopRankResponseDataListItem) SetRiskLevel(riskLevel *TopRankResponseDataListItemRiskLevel)
- func (t *TopRankResponseDataListItem) SetSymbol(symbol *string)
- func (t *TopRankResponseDataListItem) SetTurnover24H(turnover24H *float64)
- func (t *TopRankResponseDataListItem) SetVolume24H(volume24H *float64)
- func (t *TopRankResponseDataListItem) String() string
- func (t *TopRankResponseDataListItem) UnmarshalJSON(data []byte) error
- type TopRankResponseDataListItemRiskLevel
- type TxnInfoInterval
- func (t *TxnInfoInterval) GetBuyTurnover() *float64
- func (t *TxnInfoInterval) GetBuyers() *float64
- func (t *TxnInfoInterval) GetBuys() *float64
- func (t *TxnInfoInterval) GetExtraProperties() map[string]interface{}
- func (t *TxnInfoInterval) GetHigh() *float64
- func (t *TxnInfoInterval) GetLow() *float64
- func (t *TxnInfoInterval) GetMakers() *float64
- func (t *TxnInfoInterval) GetOpen() *float64
- func (t *TxnInfoInterval) GetSellTurnover() *float64
- func (t *TxnInfoInterval) GetSellers() *float64
- func (t *TxnInfoInterval) GetSells() *float64
- func (t *TxnInfoInterval) GetTurnover() *float64
- func (t *TxnInfoInterval) GetTxns() *float64
- func (t *TxnInfoInterval) MarshalJSON() ([]byte, error)
- func (t *TxnInfoInterval) SetBuyTurnover(buyTurnover *float64)
- func (t *TxnInfoInterval) SetBuyers(buyers *float64)
- func (t *TxnInfoInterval) SetBuys(buys *float64)
- func (t *TxnInfoInterval) SetHigh(high *float64)
- func (t *TxnInfoInterval) SetLow(low *float64)
- func (t *TxnInfoInterval) SetMakers(makers *float64)
- func (t *TxnInfoInterval) SetOpen(open *float64)
- func (t *TxnInfoInterval) SetSellTurnover(sellTurnover *float64)
- func (t *TxnInfoInterval) SetSellers(sellers *float64)
- func (t *TxnInfoInterval) SetSells(sells *float64)
- func (t *TxnInfoInterval) SetTurnover(turnover *float64)
- func (t *TxnInfoInterval) SetTxns(txns *float64)
- func (t *TxnInfoInterval) String() string
- func (t *TxnInfoInterval) UnmarshalJSON(data []byte) error
Constants ¶
This section is empty.
Variables ¶
var Environments = struct { Default string }{ Default: "https://bopenapi.bgwapi.io", }
Environments defines all of the API environments. These values can be used with the WithBaseURL RequestOption to override the client's default environment, if any.
var ErrorCodes internal.ErrorCodes = internal.ErrorCodes{ 400: func(apiError *core.APIError) error { return &BadRequestError{ APIError: apiError, } }, 403: func(apiError *core.APIError) error { return &ForbiddenError{ APIError: apiError, } }, 429: func(apiError *core.APIError) error { return &TooManyRequestsError{ APIError: apiError, } }, }
Functions ¶
func Complex128 ¶
func Complex128(c complex128) *complex128
Complex128 returns a pointer to the given complex128 value.
func MustParseDate ¶
MustParseDate attempts to parse the given string as a date time.Time, and panics upon failure.
func MustParseDateTime ¶
MustParseDateTime attempts to parse the given string as a datetime time.Time, and panics upon failure.
Types ¶
type BadRequestError ¶
type BadRequestError struct {
*core.APIError
Body *BaseResponse
}
Bad Request
func (*BadRequestError) MarshalJSON ¶
func (b *BadRequestError) MarshalJSON() ([]byte, error)
func (*BadRequestError) UnmarshalJSON ¶
func (b *BadRequestError) UnmarshalJSON(data []byte) error
func (*BadRequestError) Unwrap ¶
func (b *BadRequestError) Unwrap() error
type BalancesV3Request ¶
type BalancesV3Request struct {
// Chain identifier, e.g. eth, bnb, matic
Chain string `json:"chain" url:"-"`
// User wallet address
Address string `json:"address" url:"-"`
// List of token contract addresses; if omitted, returns up to 1000 entries
Contract []string `json:"contract,omitempty" url:"-"`
// contains filtered or unexported fields
}
func (*BalancesV3Request) MarshalJSON ¶
func (b *BalancesV3Request) MarshalJSON() ([]byte, error)
func (*BalancesV3Request) SetAddress ¶
func (b *BalancesV3Request) SetAddress(address string)
SetAddress sets the Address field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*BalancesV3Request) SetChain ¶
func (b *BalancesV3Request) SetChain(chain string)
SetChain sets the Chain field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*BalancesV3Request) SetContract ¶
func (b *BalancesV3Request) SetContract(contract []string)
SetContract sets the Contract field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*BalancesV3Request) UnmarshalJSON ¶
func (b *BalancesV3Request) UnmarshalJSON(data []byte) error
type BalancesV3Response ¶
type BalancesV3Response struct {
// Keyed by contract address
Data map[string]*BalancesV3ResponseDataValue `json:"data,omitempty" url:"data,omitempty"`
// 0 indicates success
Code *int `json:"code,omitempty" url:"code,omitempty"`
Message *string `json:"message,omitempty" url:"message,omitempty"`
// contains filtered or unexported fields
}
func (*BalancesV3Response) GetCode ¶
func (b *BalancesV3Response) GetCode() *int
func (*BalancesV3Response) GetData ¶
func (b *BalancesV3Response) GetData() map[string]*BalancesV3ResponseDataValue
func (*BalancesV3Response) GetExtraProperties ¶
func (b *BalancesV3Response) GetExtraProperties() map[string]interface{}
func (*BalancesV3Response) GetMessage ¶
func (b *BalancesV3Response) GetMessage() *string
func (*BalancesV3Response) MarshalJSON ¶
func (b *BalancesV3Response) MarshalJSON() ([]byte, error)
func (*BalancesV3Response) SetCode ¶
func (b *BalancesV3Response) SetCode(code *int)
SetCode sets the Code field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*BalancesV3Response) SetData ¶
func (b *BalancesV3Response) SetData(data map[string]*BalancesV3ResponseDataValue)
SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*BalancesV3Response) SetMessage ¶
func (b *BalancesV3Response) SetMessage(message *string)
SetMessage sets the Message field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*BalancesV3Response) String ¶
func (b *BalancesV3Response) String() string
func (*BalancesV3Response) UnmarshalJSON ¶
func (b *BalancesV3Response) UnmarshalJSON(data []byte) error
type BalancesV3ResponseDataValue ¶
type BalancesV3ResponseDataValue struct {
Code *int `json:"code,omitempty" url:"code,omitempty"`
Chain *string `json:"chain,omitempty" url:"chain,omitempty"`
Address *string `json:"address,omitempty" url:"address,omitempty"`
Contract *string `json:"contract,omitempty" url:"contract,omitempty"`
Balance *string `json:"balance,omitempty" url:"balance,omitempty"`
UpdateTime *int `json:"update_time,omitempty" url:"update_time,omitempty"`
Message *string `json:"message,omitempty" url:"message,omitempty"`
// contains filtered or unexported fields
}
func (*BalancesV3ResponseDataValue) GetAddress ¶
func (b *BalancesV3ResponseDataValue) GetAddress() *string
func (*BalancesV3ResponseDataValue) GetBalance ¶
func (b *BalancesV3ResponseDataValue) GetBalance() *string
func (*BalancesV3ResponseDataValue) GetChain ¶
func (b *BalancesV3ResponseDataValue) GetChain() *string
func (*BalancesV3ResponseDataValue) GetCode ¶
func (b *BalancesV3ResponseDataValue) GetCode() *int
func (*BalancesV3ResponseDataValue) GetContract ¶
func (b *BalancesV3ResponseDataValue) GetContract() *string
func (*BalancesV3ResponseDataValue) GetExtraProperties ¶
func (b *BalancesV3ResponseDataValue) GetExtraProperties() map[string]interface{}
func (*BalancesV3ResponseDataValue) GetMessage ¶
func (b *BalancesV3ResponseDataValue) GetMessage() *string
func (*BalancesV3ResponseDataValue) GetUpdateTime ¶
func (b *BalancesV3ResponseDataValue) GetUpdateTime() *int
func (*BalancesV3ResponseDataValue) MarshalJSON ¶
func (b *BalancesV3ResponseDataValue) MarshalJSON() ([]byte, error)
func (*BalancesV3ResponseDataValue) SetAddress ¶
func (b *BalancesV3ResponseDataValue) SetAddress(address *string)
SetAddress sets the Address field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*BalancesV3ResponseDataValue) SetBalance ¶
func (b *BalancesV3ResponseDataValue) SetBalance(balance *string)
SetBalance sets the Balance field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*BalancesV3ResponseDataValue) SetChain ¶
func (b *BalancesV3ResponseDataValue) SetChain(chain *string)
SetChain sets the Chain field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*BalancesV3ResponseDataValue) SetCode ¶
func (b *BalancesV3ResponseDataValue) SetCode(code *int)
SetCode sets the Code field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*BalancesV3ResponseDataValue) SetContract ¶
func (b *BalancesV3ResponseDataValue) SetContract(contract *string)
SetContract sets the Contract field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*BalancesV3ResponseDataValue) SetMessage ¶
func (b *BalancesV3ResponseDataValue) SetMessage(message *string)
SetMessage sets the Message field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*BalancesV3ResponseDataValue) SetUpdateTime ¶
func (b *BalancesV3ResponseDataValue) SetUpdateTime(updateTime *int)
SetUpdateTime sets the UpdateTime field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*BalancesV3ResponseDataValue) String ¶
func (b *BalancesV3ResponseDataValue) String() string
func (*BalancesV3ResponseDataValue) UnmarshalJSON ¶
func (b *BalancesV3ResponseDataValue) UnmarshalJSON(data []byte) error
type BaseResponse ¶
type BaseResponse struct {
// 0 indicates success, 1 indicates failure
Status *int `json:"status,omitempty" url:"status,omitempty"`
// Business error code; 0 indicates success
ErrorCode *int `json:"error_code,omitempty" url:"error_code,omitempty"`
Msg *string `json:"msg,omitempty" url:"msg,omitempty"`
Title *string `json:"title,omitempty" url:"title,omitempty"`
Timestamp *int64 `json:"timestamp,omitempty" url:"timestamp,omitempty"`
Trace *string `json:"trace,omitempty" url:"trace,omitempty"`
// Business data
Data any `json:"data,omitempty" url:"data,omitempty"`
// contains filtered or unexported fields
}
func (*BaseResponse) GetData ¶
func (b *BaseResponse) GetData() any
func (*BaseResponse) GetErrorCode ¶
func (b *BaseResponse) GetErrorCode() *int
func (*BaseResponse) GetExtraProperties ¶
func (b *BaseResponse) GetExtraProperties() map[string]interface{}
func (*BaseResponse) GetMsg ¶
func (b *BaseResponse) GetMsg() *string
func (*BaseResponse) GetStatus ¶
func (b *BaseResponse) GetStatus() *int
func (*BaseResponse) GetTimestamp ¶
func (b *BaseResponse) GetTimestamp() *int64
func (*BaseResponse) GetTitle ¶
func (b *BaseResponse) GetTitle() *string
func (*BaseResponse) GetTrace ¶
func (b *BaseResponse) GetTrace() *string
func (*BaseResponse) MarshalJSON ¶
func (b *BaseResponse) MarshalJSON() ([]byte, error)
func (*BaseResponse) SetData ¶
func (b *BaseResponse) SetData(data any)
SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*BaseResponse) SetErrorCode ¶
func (b *BaseResponse) SetErrorCode(errorCode *int)
SetErrorCode sets the ErrorCode field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*BaseResponse) SetMsg ¶
func (b *BaseResponse) SetMsg(msg *string)
SetMsg sets the Msg field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*BaseResponse) SetStatus ¶
func (b *BaseResponse) SetStatus(status *int)
SetStatus sets the Status field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*BaseResponse) SetTimestamp ¶
func (b *BaseResponse) SetTimestamp(timestamp *int64)
SetTimestamp sets the Timestamp field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*BaseResponse) SetTitle ¶
func (b *BaseResponse) SetTitle(title *string)
SetTitle sets the Title field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*BaseResponse) SetTrace ¶
func (b *BaseResponse) SetTrace(trace *string)
SetTrace sets the Trace field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*BaseResponse) String ¶
func (b *BaseResponse) String() string
func (*BaseResponse) UnmarshalJSON ¶
func (b *BaseResponse) UnmarshalJSON(data []byte) error
type BatchGetBaseInfoRequest ¶
type BatchGetBaseInfoRequest struct {
List []*BatchGetBaseInfoRequestListItem `json:"list" url:"-"`
// contains filtered or unexported fields
}
func (*BatchGetBaseInfoRequest) MarshalJSON ¶
func (b *BatchGetBaseInfoRequest) MarshalJSON() ([]byte, error)
func (*BatchGetBaseInfoRequest) SetList ¶
func (b *BatchGetBaseInfoRequest) SetList(list []*BatchGetBaseInfoRequestListItem)
SetList sets the List field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*BatchGetBaseInfoRequest) UnmarshalJSON ¶
func (b *BatchGetBaseInfoRequest) UnmarshalJSON(data []byte) error
type BatchGetBaseInfoRequestListItem ¶
type BatchGetBaseInfoRequestListItem struct {
Chain string `json:"chain" url:"chain"`
Contract string `json:"contract" url:"contract"`
// contains filtered or unexported fields
}
func (*BatchGetBaseInfoRequestListItem) GetChain ¶
func (b *BatchGetBaseInfoRequestListItem) GetChain() string
func (*BatchGetBaseInfoRequestListItem) GetContract ¶
func (b *BatchGetBaseInfoRequestListItem) GetContract() string
func (*BatchGetBaseInfoRequestListItem) GetExtraProperties ¶
func (b *BatchGetBaseInfoRequestListItem) GetExtraProperties() map[string]interface{}
func (*BatchGetBaseInfoRequestListItem) MarshalJSON ¶
func (b *BatchGetBaseInfoRequestListItem) MarshalJSON() ([]byte, error)
func (*BatchGetBaseInfoRequestListItem) SetChain ¶
func (b *BatchGetBaseInfoRequestListItem) SetChain(chain string)
SetChain sets the Chain field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*BatchGetBaseInfoRequestListItem) SetContract ¶
func (b *BatchGetBaseInfoRequestListItem) SetContract(contract string)
SetContract sets the Contract field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*BatchGetBaseInfoRequestListItem) String ¶
func (b *BatchGetBaseInfoRequestListItem) String() string
func (*BatchGetBaseInfoRequestListItem) UnmarshalJSON ¶
func (b *BatchGetBaseInfoRequestListItem) UnmarshalJSON(data []byte) error
type BatchGetBaseInfoResponse ¶
type BatchGetBaseInfoResponse struct {
// Business data
Data *BatchGetBaseInfoResponseData `json:"data,omitempty" url:"data,omitempty"`
// 0 indicates success
Status *int `json:"status,omitempty" url:"status,omitempty"`
TraceID *string `json:"traceId,omitempty" url:"traceId,omitempty"`
// contains filtered or unexported fields
}
func (*BatchGetBaseInfoResponse) GetData ¶
func (b *BatchGetBaseInfoResponse) GetData() *BatchGetBaseInfoResponseData
func (*BatchGetBaseInfoResponse) GetExtraProperties ¶
func (b *BatchGetBaseInfoResponse) GetExtraProperties() map[string]interface{}
func (*BatchGetBaseInfoResponse) GetStatus ¶
func (b *BatchGetBaseInfoResponse) GetStatus() *int
func (*BatchGetBaseInfoResponse) GetTraceID ¶
func (b *BatchGetBaseInfoResponse) GetTraceID() *string
func (*BatchGetBaseInfoResponse) MarshalJSON ¶
func (b *BatchGetBaseInfoResponse) MarshalJSON() ([]byte, error)
func (*BatchGetBaseInfoResponse) SetData ¶
func (b *BatchGetBaseInfoResponse) SetData(data *BatchGetBaseInfoResponseData)
SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*BatchGetBaseInfoResponse) SetStatus ¶
func (b *BatchGetBaseInfoResponse) SetStatus(status *int)
SetStatus sets the Status field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*BatchGetBaseInfoResponse) SetTraceID ¶
func (b *BatchGetBaseInfoResponse) SetTraceID(traceID *string)
SetTraceID sets the TraceID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*BatchGetBaseInfoResponse) String ¶
func (b *BatchGetBaseInfoResponse) String() string
func (*BatchGetBaseInfoResponse) UnmarshalJSON ¶
func (b *BatchGetBaseInfoResponse) UnmarshalJSON(data []byte) error
type BatchGetBaseInfoResponseData ¶
type BatchGetBaseInfoResponseData struct {
List []*TokenBaseInfo `json:"list,omitempty" url:"list,omitempty"`
// contains filtered or unexported fields
}
func (*BatchGetBaseInfoResponseData) GetExtraProperties ¶
func (b *BatchGetBaseInfoResponseData) GetExtraProperties() map[string]interface{}
func (*BatchGetBaseInfoResponseData) GetList ¶
func (b *BatchGetBaseInfoResponseData) GetList() []*TokenBaseInfo
func (*BatchGetBaseInfoResponseData) MarshalJSON ¶
func (b *BatchGetBaseInfoResponseData) MarshalJSON() ([]byte, error)
func (*BatchGetBaseInfoResponseData) SetList ¶
func (b *BatchGetBaseInfoResponseData) SetList(list []*TokenBaseInfo)
SetList sets the List field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*BatchGetBaseInfoResponseData) String ¶
func (b *BatchGetBaseInfoResponseData) String() string
func (*BatchGetBaseInfoResponseData) UnmarshalJSON ¶
func (b *BatchGetBaseInfoResponseData) UnmarshalJSON(data []byte) error
type BatchGetFullInfoRequest ¶
type BatchGetFullInfoRequest struct {
List []*BatchGetFullInfoRequestListItem `json:"list" url:"-"`
// contains filtered or unexported fields
}
func (*BatchGetFullInfoRequest) MarshalJSON ¶
func (b *BatchGetFullInfoRequest) MarshalJSON() ([]byte, error)
func (*BatchGetFullInfoRequest) SetList ¶
func (b *BatchGetFullInfoRequest) SetList(list []*BatchGetFullInfoRequestListItem)
SetList sets the List field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*BatchGetFullInfoRequest) UnmarshalJSON ¶
func (b *BatchGetFullInfoRequest) UnmarshalJSON(data []byte) error
type BatchGetFullInfoRequestListItem ¶
type BatchGetFullInfoRequestListItem struct {
Chain string `json:"chain" url:"chain"`
Contract string `json:"contract" url:"contract"`
// contains filtered or unexported fields
}
func (*BatchGetFullInfoRequestListItem) GetChain ¶
func (b *BatchGetFullInfoRequestListItem) GetChain() string
func (*BatchGetFullInfoRequestListItem) GetContract ¶
func (b *BatchGetFullInfoRequestListItem) GetContract() string
func (*BatchGetFullInfoRequestListItem) GetExtraProperties ¶
func (b *BatchGetFullInfoRequestListItem) GetExtraProperties() map[string]interface{}
func (*BatchGetFullInfoRequestListItem) MarshalJSON ¶
func (b *BatchGetFullInfoRequestListItem) MarshalJSON() ([]byte, error)
func (*BatchGetFullInfoRequestListItem) SetChain ¶
func (b *BatchGetFullInfoRequestListItem) SetChain(chain string)
SetChain sets the Chain field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*BatchGetFullInfoRequestListItem) SetContract ¶
func (b *BatchGetFullInfoRequestListItem) SetContract(contract string)
SetContract sets the Contract field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*BatchGetFullInfoRequestListItem) String ¶
func (b *BatchGetFullInfoRequestListItem) String() string
func (*BatchGetFullInfoRequestListItem) UnmarshalJSON ¶
func (b *BatchGetFullInfoRequestListItem) UnmarshalJSON(data []byte) error
type BatchGetFullInfoResponse ¶
type BatchGetFullInfoResponse struct {
// Business data
Data *BatchGetFullInfoResponseData `json:"data,omitempty" url:"data,omitempty"`
// 0 indicates success
Status *int `json:"status,omitempty" url:"status,omitempty"`
TraceID *string `json:"traceId,omitempty" url:"traceId,omitempty"`
// contains filtered or unexported fields
}
func (*BatchGetFullInfoResponse) GetData ¶
func (b *BatchGetFullInfoResponse) GetData() *BatchGetFullInfoResponseData
func (*BatchGetFullInfoResponse) GetExtraProperties ¶
func (b *BatchGetFullInfoResponse) GetExtraProperties() map[string]interface{}
func (*BatchGetFullInfoResponse) GetStatus ¶
func (b *BatchGetFullInfoResponse) GetStatus() *int
func (*BatchGetFullInfoResponse) GetTraceID ¶
func (b *BatchGetFullInfoResponse) GetTraceID() *string
func (*BatchGetFullInfoResponse) MarshalJSON ¶
func (b *BatchGetFullInfoResponse) MarshalJSON() ([]byte, error)
func (*BatchGetFullInfoResponse) SetData ¶
func (b *BatchGetFullInfoResponse) SetData(data *BatchGetFullInfoResponseData)
SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*BatchGetFullInfoResponse) SetStatus ¶
func (b *BatchGetFullInfoResponse) SetStatus(status *int)
SetStatus sets the Status field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*BatchGetFullInfoResponse) SetTraceID ¶
func (b *BatchGetFullInfoResponse) SetTraceID(traceID *string)
SetTraceID sets the TraceID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*BatchGetFullInfoResponse) String ¶
func (b *BatchGetFullInfoResponse) String() string
func (*BatchGetFullInfoResponse) UnmarshalJSON ¶
func (b *BatchGetFullInfoResponse) UnmarshalJSON(data []byte) error
type BatchGetFullInfoResponseData ¶
type BatchGetFullInfoResponseData struct {
List []*FullTokenInfo `json:"list,omitempty" url:"list,omitempty"`
// contains filtered or unexported fields
}
func (*BatchGetFullInfoResponseData) GetExtraProperties ¶
func (b *BatchGetFullInfoResponseData) GetExtraProperties() map[string]interface{}
func (*BatchGetFullInfoResponseData) GetList ¶
func (b *BatchGetFullInfoResponseData) GetList() []*FullTokenInfo
func (*BatchGetFullInfoResponseData) MarshalJSON ¶
func (b *BatchGetFullInfoResponseData) MarshalJSON() ([]byte, error)
func (*BatchGetFullInfoResponseData) SetList ¶
func (b *BatchGetFullInfoResponseData) SetList(list []*FullTokenInfo)
SetList sets the List field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*BatchGetFullInfoResponseData) String ¶
func (b *BatchGetFullInfoResponseData) String() string
func (*BatchGetFullInfoResponseData) UnmarshalJSON ¶
func (b *BatchGetFullInfoResponseData) UnmarshalJSON(data []byte) error
type BatchGetTxInfoRequest ¶
type BatchGetTxInfoRequest struct {
List []*BatchGetTxInfoRequestListItem `json:"list" url:"-"`
// contains filtered or unexported fields
}
func (*BatchGetTxInfoRequest) MarshalJSON ¶
func (b *BatchGetTxInfoRequest) MarshalJSON() ([]byte, error)
func (*BatchGetTxInfoRequest) SetList ¶
func (b *BatchGetTxInfoRequest) SetList(list []*BatchGetTxInfoRequestListItem)
SetList sets the List field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*BatchGetTxInfoRequest) UnmarshalJSON ¶
func (b *BatchGetTxInfoRequest) UnmarshalJSON(data []byte) error
type BatchGetTxInfoRequestListItem ¶
type BatchGetTxInfoRequestListItem struct {
Chain string `json:"chain" url:"chain"`
Contract string `json:"contract" url:"contract"`
// contains filtered or unexported fields
}
func (*BatchGetTxInfoRequestListItem) GetChain ¶
func (b *BatchGetTxInfoRequestListItem) GetChain() string
func (*BatchGetTxInfoRequestListItem) GetContract ¶
func (b *BatchGetTxInfoRequestListItem) GetContract() string
func (*BatchGetTxInfoRequestListItem) GetExtraProperties ¶
func (b *BatchGetTxInfoRequestListItem) GetExtraProperties() map[string]interface{}
func (*BatchGetTxInfoRequestListItem) MarshalJSON ¶
func (b *BatchGetTxInfoRequestListItem) MarshalJSON() ([]byte, error)
func (*BatchGetTxInfoRequestListItem) SetChain ¶
func (b *BatchGetTxInfoRequestListItem) SetChain(chain string)
SetChain sets the Chain field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*BatchGetTxInfoRequestListItem) SetContract ¶
func (b *BatchGetTxInfoRequestListItem) SetContract(contract string)
SetContract sets the Contract field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*BatchGetTxInfoRequestListItem) String ¶
func (b *BatchGetTxInfoRequestListItem) String() string
func (*BatchGetTxInfoRequestListItem) UnmarshalJSON ¶
func (b *BatchGetTxInfoRequestListItem) UnmarshalJSON(data []byte) error
type BatchGetTxInfoResponse ¶
type BatchGetTxInfoResponse struct {
// Business data
Data *BatchGetTxInfoResponseData `json:"data,omitempty" url:"data,omitempty"`
// 0 indicates success
Status *int `json:"status,omitempty" url:"status,omitempty"`
TraceID *string `json:"traceId,omitempty" url:"traceId,omitempty"`
// contains filtered or unexported fields
}
func (*BatchGetTxInfoResponse) GetData ¶
func (b *BatchGetTxInfoResponse) GetData() *BatchGetTxInfoResponseData
func (*BatchGetTxInfoResponse) GetExtraProperties ¶
func (b *BatchGetTxInfoResponse) GetExtraProperties() map[string]interface{}
func (*BatchGetTxInfoResponse) GetStatus ¶
func (b *BatchGetTxInfoResponse) GetStatus() *int
func (*BatchGetTxInfoResponse) GetTraceID ¶
func (b *BatchGetTxInfoResponse) GetTraceID() *string
func (*BatchGetTxInfoResponse) MarshalJSON ¶
func (b *BatchGetTxInfoResponse) MarshalJSON() ([]byte, error)
func (*BatchGetTxInfoResponse) SetData ¶
func (b *BatchGetTxInfoResponse) SetData(data *BatchGetTxInfoResponseData)
SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*BatchGetTxInfoResponse) SetStatus ¶
func (b *BatchGetTxInfoResponse) SetStatus(status *int)
SetStatus sets the Status field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*BatchGetTxInfoResponse) SetTraceID ¶
func (b *BatchGetTxInfoResponse) SetTraceID(traceID *string)
SetTraceID sets the TraceID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*BatchGetTxInfoResponse) String ¶
func (b *BatchGetTxInfoResponse) String() string
func (*BatchGetTxInfoResponse) UnmarshalJSON ¶
func (b *BatchGetTxInfoResponse) UnmarshalJSON(data []byte) error
type BatchGetTxInfoResponseData ¶
type BatchGetTxInfoResponseData struct {
List []*BatchGetTxInfoResponseDataListItem `json:"list,omitempty" url:"list,omitempty"`
// contains filtered or unexported fields
}
func (*BatchGetTxInfoResponseData) GetExtraProperties ¶
func (b *BatchGetTxInfoResponseData) GetExtraProperties() map[string]interface{}
func (*BatchGetTxInfoResponseData) GetList ¶
func (b *BatchGetTxInfoResponseData) GetList() []*BatchGetTxInfoResponseDataListItem
func (*BatchGetTxInfoResponseData) MarshalJSON ¶
func (b *BatchGetTxInfoResponseData) MarshalJSON() ([]byte, error)
func (*BatchGetTxInfoResponseData) SetList ¶
func (b *BatchGetTxInfoResponseData) SetList(list []*BatchGetTxInfoResponseDataListItem)
SetList sets the List field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*BatchGetTxInfoResponseData) String ¶
func (b *BatchGetTxInfoResponseData) String() string
func (*BatchGetTxInfoResponseData) UnmarshalJSON ¶
func (b *BatchGetTxInfoResponseData) UnmarshalJSON(data []byte) error
type BatchGetTxInfoResponseDataListItem ¶
type BatchGetTxInfoResponseDataListItem struct {
Chain *string `json:"chain,omitempty" url:"chain,omitempty"`
Contract *string `json:"contract,omitempty" url:"contract,omitempty"`
Price *float64 `json:"price,omitempty" url:"price,omitempty"`
TxnInfo map[string]*TxnInfoInterval `json:"txn_info,omitempty" url:"txn_info,omitempty"`
// contains filtered or unexported fields
}
func (*BatchGetTxInfoResponseDataListItem) GetChain ¶
func (b *BatchGetTxInfoResponseDataListItem) GetChain() *string
func (*BatchGetTxInfoResponseDataListItem) GetContract ¶
func (b *BatchGetTxInfoResponseDataListItem) GetContract() *string
func (*BatchGetTxInfoResponseDataListItem) GetExtraProperties ¶
func (b *BatchGetTxInfoResponseDataListItem) GetExtraProperties() map[string]interface{}
func (*BatchGetTxInfoResponseDataListItem) GetPrice ¶
func (b *BatchGetTxInfoResponseDataListItem) GetPrice() *float64
func (*BatchGetTxInfoResponseDataListItem) GetTxnInfo ¶
func (b *BatchGetTxInfoResponseDataListItem) GetTxnInfo() map[string]*TxnInfoInterval
func (*BatchGetTxInfoResponseDataListItem) MarshalJSON ¶
func (b *BatchGetTxInfoResponseDataListItem) MarshalJSON() ([]byte, error)
func (*BatchGetTxInfoResponseDataListItem) SetChain ¶
func (b *BatchGetTxInfoResponseDataListItem) SetChain(chain *string)
SetChain sets the Chain field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*BatchGetTxInfoResponseDataListItem) SetContract ¶
func (b *BatchGetTxInfoResponseDataListItem) SetContract(contract *string)
SetContract sets the Contract field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*BatchGetTxInfoResponseDataListItem) SetPrice ¶
func (b *BatchGetTxInfoResponseDataListItem) SetPrice(price *float64)
SetPrice sets the Price field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*BatchGetTxInfoResponseDataListItem) SetTxnInfo ¶
func (b *BatchGetTxInfoResponseDataListItem) SetTxnInfo(txnInfo map[string]*TxnInfoInterval)
SetTxnInfo sets the TxnInfo field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*BatchGetTxInfoResponseDataListItem) String ¶
func (b *BatchGetTxInfoResponseDataListItem) String() string
func (*BatchGetTxInfoResponseDataListItem) UnmarshalJSON ¶
func (b *BatchGetTxInfoResponseDataListItem) UnmarshalJSON(data []byte) error
type ChainInfo ¶
type ChainInfo struct {
Chain *string `json:"chain,omitempty" url:"chain,omitempty"`
Name *string `json:"name,omitempty" url:"name,omitempty"`
Icon *string `json:"icon,omitempty" url:"icon,omitempty"`
// contains filtered or unexported fields
}
func (*ChainInfo) GetExtraProperties ¶
func (*ChainInfo) MarshalJSON ¶
func (*ChainInfo) SetChain ¶
SetChain sets the Chain field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ChainInfo) SetIcon ¶
SetIcon sets the Icon field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ChainInfo) SetName ¶
SetName sets the Name field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ChainInfo) UnmarshalJSON ¶
type ChainResponse ¶
type ChainResponse struct {
// 0 indicates success
Code *int `json:"code,omitempty" url:"code,omitempty"`
Message *string `json:"message,omitempty" url:"message,omitempty"`
// Business data
Data any `json:"data,omitempty" url:"data,omitempty"`
// contains filtered or unexported fields
}
func (*ChainResponse) GetCode ¶
func (c *ChainResponse) GetCode() *int
func (*ChainResponse) GetData ¶
func (c *ChainResponse) GetData() any
func (*ChainResponse) GetExtraProperties ¶
func (c *ChainResponse) GetExtraProperties() map[string]interface{}
func (*ChainResponse) GetMessage ¶
func (c *ChainResponse) GetMessage() *string
func (*ChainResponse) MarshalJSON ¶
func (c *ChainResponse) MarshalJSON() ([]byte, error)
func (*ChainResponse) SetCode ¶
func (c *ChainResponse) SetCode(code *int)
SetCode sets the Code field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ChainResponse) SetData ¶
func (c *ChainResponse) SetData(data any)
SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ChainResponse) SetMessage ¶
func (c *ChainResponse) SetMessage(message *string)
SetMessage sets the Message field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ChainResponse) String ¶
func (c *ChainResponse) String() string
func (*ChainResponse) UnmarshalJSON ¶
func (c *ChainResponse) UnmarshalJSON(data []byte) error
type ChainSendRequest ¶
type ChainSendRequest struct {
// Chain identifier, e.g. eth, bnb, sol, trx
Chain string `json:"chain" url:"-"`
// Signed raw transaction (hex or base64, depending on the chain)
Sig string `json:"sig" url:"-"`
// Whether to enable MEV protection
UseMevProtect *bool `json:"useMevProtect,omitempty" url:"-"`
// contains filtered or unexported fields
}
func (*ChainSendRequest) MarshalJSON ¶
func (c *ChainSendRequest) MarshalJSON() ([]byte, error)
func (*ChainSendRequest) SetChain ¶
func (c *ChainSendRequest) SetChain(chain string)
SetChain sets the Chain field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ChainSendRequest) SetSig ¶
func (c *ChainSendRequest) SetSig(sig string)
SetSig sets the Sig field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ChainSendRequest) SetUseMevProtect ¶
func (c *ChainSendRequest) SetUseMevProtect(useMevProtect *bool)
SetUseMevProtect sets the UseMevProtect field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ChainSendRequest) UnmarshalJSON ¶
func (c *ChainSendRequest) UnmarshalJSON(data []byte) error
type ChainSendResponse ¶
type ChainSendResponse struct {
// Business data
Data *ChainSendResponseData `json:"data,omitempty" url:"data,omitempty"`
// 0 indicates success
Code *int `json:"code,omitempty" url:"code,omitempty"`
Message *string `json:"message,omitempty" url:"message,omitempty"`
// contains filtered or unexported fields
}
func (*ChainSendResponse) GetCode ¶
func (c *ChainSendResponse) GetCode() *int
func (*ChainSendResponse) GetData ¶
func (c *ChainSendResponse) GetData() *ChainSendResponseData
func (*ChainSendResponse) GetExtraProperties ¶
func (c *ChainSendResponse) GetExtraProperties() map[string]interface{}
func (*ChainSendResponse) GetMessage ¶
func (c *ChainSendResponse) GetMessage() *string
func (*ChainSendResponse) MarshalJSON ¶
func (c *ChainSendResponse) MarshalJSON() ([]byte, error)
func (*ChainSendResponse) SetCode ¶
func (c *ChainSendResponse) SetCode(code *int)
SetCode sets the Code field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ChainSendResponse) SetData ¶
func (c *ChainSendResponse) SetData(data *ChainSendResponseData)
SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ChainSendResponse) SetMessage ¶
func (c *ChainSendResponse) SetMessage(message *string)
SetMessage sets the Message field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ChainSendResponse) String ¶
func (c *ChainSendResponse) String() string
func (*ChainSendResponse) UnmarshalJSON ¶
func (c *ChainSendResponse) UnmarshalJSON(data []byte) error
type ChainSendResponseData ¶
type ChainSendResponseData struct {
Txid *string `json:"txid,omitempty" url:"txid,omitempty"`
// contains filtered or unexported fields
}
func (*ChainSendResponseData) GetExtraProperties ¶
func (c *ChainSendResponseData) GetExtraProperties() map[string]interface{}
func (*ChainSendResponseData) GetTxid ¶
func (c *ChainSendResponseData) GetTxid() *string
func (*ChainSendResponseData) MarshalJSON ¶
func (c *ChainSendResponseData) MarshalJSON() ([]byte, error)
func (*ChainSendResponseData) SetTxid ¶
func (c *ChainSendResponseData) SetTxid(txid *string)
SetTxid sets the Txid field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*ChainSendResponseData) String ¶
func (c *ChainSendResponseData) String() string
func (*ChainSendResponseData) UnmarshalJSON ¶
func (c *ChainSendResponseData) UnmarshalJSON(data []byte) error
type Fee ¶
type Fee struct {
// Total fee in USD
TotalAmountInUsd *string `json:"totalAmountInUsd,omitempty" url:"totalAmountInUsd,omitempty"`
AppFee *FeeBucket `json:"appFee,omitempty" url:"appFee,omitempty"`
PlatformFee *FeeBucket `json:"platformFee,omitempty" url:"platformFee,omitempty"`
GasFee *FeeBucket `json:"gasFee,omitempty" url:"gasFee,omitempty"`
LpFee *FeeBucket `json:"lpFee,omitempty" url:"lpFee,omitempty"`
SwapFee *FeeBucket `json:"swapFee,omitempty" url:"swapFee,omitempty"`
// contains filtered or unexported fields
}
func (*Fee) GetExtraProperties ¶
func (*Fee) GetPlatformFee ¶
func (*Fee) GetSwapFee ¶
func (*Fee) GetTotalAmountInUsd ¶
func (*Fee) MarshalJSON ¶
func (*Fee) SetAppFee ¶
SetAppFee sets the AppFee field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*Fee) SetGasFee ¶
SetGasFee sets the GasFee field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*Fee) SetLpFee ¶
SetLpFee sets the LpFee field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*Fee) SetPlatformFee ¶
SetPlatformFee sets the PlatformFee field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*Fee) SetSwapFee ¶
SetSwapFee sets the SwapFee field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*Fee) SetTotalAmountInUsd ¶
SetTotalAmountInUsd sets the TotalAmountInUsd field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*Fee) UnmarshalJSON ¶
type FeeBucket ¶
type FeeBucket struct {
AmountInUsd *string `json:"amountInUsd,omitempty" url:"amountInUsd,omitempty"`
Items []*FeeBucketItemsItem `json:"items,omitempty" url:"items,omitempty"`
// contains filtered or unexported fields
}
func (*FeeBucket) GetAmountInUsd ¶
func (*FeeBucket) GetExtraProperties ¶
func (*FeeBucket) GetItems ¶
func (f *FeeBucket) GetItems() []*FeeBucketItemsItem
func (*FeeBucket) MarshalJSON ¶
func (*FeeBucket) SetAmountInUsd ¶
SetAmountInUsd sets the AmountInUsd field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FeeBucket) SetItems ¶
func (f *FeeBucket) SetItems(items []*FeeBucketItemsItem)
SetItems sets the Items field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FeeBucket) UnmarshalJSON ¶
type FeeBucketItemsItem ¶
type FeeBucketItemsItem struct {
// Fee type
Type *FeeBucketItemsItemType `json:"type,omitempty" url:"type,omitempty"`
Token *TokenInfo `json:"token,omitempty" url:"token,omitempty"`
Amount *string `json:"amount,omitempty" url:"amount,omitempty"`
AmountInUsd *string `json:"amountInUsd,omitempty" url:"amountInUsd,omitempty"`
AmountInStableCoin *string `json:"amountInStableCoin,omitempty" url:"amountInStableCoin,omitempty"`
// contains filtered or unexported fields
}
func (*FeeBucketItemsItem) GetAmount ¶
func (f *FeeBucketItemsItem) GetAmount() *string
func (*FeeBucketItemsItem) GetAmountInStableCoin ¶
func (f *FeeBucketItemsItem) GetAmountInStableCoin() *string
func (*FeeBucketItemsItem) GetAmountInUsd ¶
func (f *FeeBucketItemsItem) GetAmountInUsd() *string
func (*FeeBucketItemsItem) GetExtraProperties ¶
func (f *FeeBucketItemsItem) GetExtraProperties() map[string]interface{}
func (*FeeBucketItemsItem) GetToken ¶
func (f *FeeBucketItemsItem) GetToken() *TokenInfo
func (*FeeBucketItemsItem) GetType ¶
func (f *FeeBucketItemsItem) GetType() *FeeBucketItemsItemType
func (*FeeBucketItemsItem) MarshalJSON ¶
func (f *FeeBucketItemsItem) MarshalJSON() ([]byte, error)
func (*FeeBucketItemsItem) SetAmount ¶
func (f *FeeBucketItemsItem) SetAmount(amount *string)
SetAmount sets the Amount field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FeeBucketItemsItem) SetAmountInStableCoin ¶
func (f *FeeBucketItemsItem) SetAmountInStableCoin(amountInStableCoin *string)
SetAmountInStableCoin sets the AmountInStableCoin field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FeeBucketItemsItem) SetAmountInUsd ¶
func (f *FeeBucketItemsItem) SetAmountInUsd(amountInUsd *string)
SetAmountInUsd sets the AmountInUsd field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FeeBucketItemsItem) SetToken ¶
func (f *FeeBucketItemsItem) SetToken(token *TokenInfo)
SetToken sets the Token field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FeeBucketItemsItem) SetType ¶
func (f *FeeBucketItemsItem) SetType(type_ *FeeBucketItemsItemType)
SetType sets the Type field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FeeBucketItemsItem) String ¶
func (f *FeeBucketItemsItem) String() string
func (*FeeBucketItemsItem) UnmarshalJSON ¶
func (f *FeeBucketItemsItem) UnmarshalJSON(data []byte) error
type FeeBucketItemsItemType ¶
type FeeBucketItemsItemType string
Fee type
const ( FeeBucketItemsItemTypeAppFee FeeBucketItemsItemType = "app_fee" FeeBucketItemsItemTypeNoGasFee FeeBucketItemsItemType = "no_gas_fee" FeeBucketItemsItemTypeBridgeGasFee FeeBucketItemsItemType = "bridge_gas_fee" FeeBucketItemsItemTypeDestinationGasFee FeeBucketItemsItemType = "destination_gas_fee" FeeBucketItemsItemTypeSwapGasFee FeeBucketItemsItemType = "swap_gas_fee" FeeBucketItemsItemTypeTargetSwapGasFee FeeBucketItemsItemType = "target_swap_gas_fee" FeeBucketItemsItemTypeAtaRentFee FeeBucketItemsItemType = "ata_rent_fee" FeeBucketItemsItemTypePlatformFee FeeBucketItemsItemType = "platform_fee" FeeBucketItemsItemTypeSourceSwapFee FeeBucketItemsItemType = "source_swap_fee" FeeBucketItemsItemTypeTargetSwapFee FeeBucketItemsItemType = "target_swap_fee" )
func NewFeeBucketItemsItemTypeFromString ¶
func NewFeeBucketItemsItemTypeFromString(s string) (FeeBucketItemsItemType, error)
func (FeeBucketItemsItemType) Ptr ¶
func (f FeeBucketItemsItemType) Ptr() *FeeBucketItemsItemType
type FileParam ¶
FileParam is a file type suitable for multipart/form-data uploads.
func NewFileParam ¶
func NewFileParam( reader io.Reader, filename string, contentType string, opts ...FileParamOption, ) *FileParam
NewFileParam returns a *FileParam type suitable for multipart/form-data uploads. All file upload endpoints accept a simple io.Reader, which is usually created by opening a file via os.Open.
However, some endpoints require additional metadata about the file such as a specific Content-Type or custom filename. FileParam makes it easier to create the correct type signature for these endpoints.
func (*FileParam) ContentType ¶
type FileParamOption ¶
type FileParamOption interface {
// contains filtered or unexported methods
}
FileParamOption adapts the behavior of the FileParam. No options are implemented yet, but this interface allows for future extensibility.
type ForbiddenError ¶
type ForbiddenError struct {
*core.APIError
Body *BaseResponse
}
Forbidden (not whitelisted or invalid signature)
func (*ForbiddenError) MarshalJSON ¶
func (f *ForbiddenError) MarshalJSON() ([]byte, error)
func (*ForbiddenError) UnmarshalJSON ¶
func (f *ForbiddenError) UnmarshalJSON(data []byte) error
func (*ForbiddenError) Unwrap ¶
func (f *ForbiddenError) Unwrap() error
type FullTokenInfo ¶
type FullTokenInfo struct {
Chain *string `json:"chain,omitempty" url:"chain,omitempty"`
Contract *string `json:"contract,omitempty" url:"contract,omitempty"`
Symbol *string `json:"symbol,omitempty" url:"symbol,omitempty"`
Name *string `json:"name,omitempty" url:"name,omitempty"`
Decimals *float64 `json:"decimals,omitempty" url:"decimals,omitempty"`
TotalSupply *float64 `json:"total_supply,omitempty" url:"total_supply,omitempty"`
MaxSupply *float64 `json:"max_supply,omitempty" url:"max_supply,omitempty"`
CirculatingSupply *float64 `json:"circulating_supply,omitempty" url:"circulating_supply,omitempty"`
Icon *string `json:"icon,omitempty" url:"icon,omitempty"`
Twitter *string `json:"twitter,omitempty" url:"twitter,omitempty"`
Website *string `json:"website,omitempty" url:"website,omitempty"`
Telegram *string `json:"telegram,omitempty" url:"telegram,omitempty"`
Discord *string `json:"discord,omitempty" url:"discord,omitempty"`
Whitepaper *string `json:"whitepaper,omitempty" url:"whitepaper,omitempty"`
Facebook *string `json:"facebook,omitempty" url:"facebook,omitempty"`
About *string `json:"about,omitempty" url:"about,omitempty"`
IssueDate *float64 `json:"issue_date,omitempty" url:"issue_date,omitempty"`
Holders *float64 `json:"holders,omitempty" url:"holders,omitempty"`
Liquidity *float64 `json:"liquidity,omitempty" url:"liquidity,omitempty"`
Top10HolderPercent *float64 `json:"top10_holder_percent,omitempty" url:"top10_holder_percent,omitempty"`
InsiderHolderPercent *float64 `json:"insider_holder_percent,omitempty" url:"insider_holder_percent,omitempty"`
SniperHolderPercent *float64 `json:"sniper_holder_percent,omitempty" url:"sniper_holder_percent,omitempty"`
DevHolderPercent *float64 `json:"dev_holder_percent,omitempty" url:"dev_holder_percent,omitempty"`
DevHolderBalance *float64 `json:"dev_holder_balance,omitempty" url:"dev_holder_balance,omitempty"`
DevIssueCoinCount *float64 `json:"dev_issue_coin_count,omitempty" url:"dev_issue_coin_count,omitempty"`
DevRugCoinCount *float64 `json:"dev_rug_coin_count,omitempty" url:"dev_rug_coin_count,omitempty"`
DevRugPercent *float64 `json:"dev_rug_percent,omitempty" url:"dev_rug_percent,omitempty"`
LockLpPercent *float64 `json:"lock_lp_percent,omitempty" url:"lock_lp_percent,omitempty"`
Price *float64 `json:"price,omitempty" url:"price,omitempty"`
Market *FullTokenInfoMarket `json:"market,omitempty" url:"market,omitempty"`
Security *SecurityInfo `json:"security,omitempty" url:"security,omitempty"`
// contains filtered or unexported fields
}
func (*FullTokenInfo) GetAbout ¶
func (f *FullTokenInfo) GetAbout() *string
func (*FullTokenInfo) GetChain ¶
func (f *FullTokenInfo) GetChain() *string
func (*FullTokenInfo) GetCirculatingSupply ¶
func (f *FullTokenInfo) GetCirculatingSupply() *float64
func (*FullTokenInfo) GetContract ¶
func (f *FullTokenInfo) GetContract() *string
func (*FullTokenInfo) GetDecimals ¶
func (f *FullTokenInfo) GetDecimals() *float64
func (*FullTokenInfo) GetDevHolderBalance ¶
func (f *FullTokenInfo) GetDevHolderBalance() *float64
func (*FullTokenInfo) GetDevHolderPercent ¶
func (f *FullTokenInfo) GetDevHolderPercent() *float64
func (*FullTokenInfo) GetDevIssueCoinCount ¶
func (f *FullTokenInfo) GetDevIssueCoinCount() *float64
func (*FullTokenInfo) GetDevRugCoinCount ¶
func (f *FullTokenInfo) GetDevRugCoinCount() *float64
func (*FullTokenInfo) GetDevRugPercent ¶
func (f *FullTokenInfo) GetDevRugPercent() *float64
func (*FullTokenInfo) GetDiscord ¶
func (f *FullTokenInfo) GetDiscord() *string
func (*FullTokenInfo) GetExtraProperties ¶
func (f *FullTokenInfo) GetExtraProperties() map[string]interface{}
func (*FullTokenInfo) GetFacebook ¶
func (f *FullTokenInfo) GetFacebook() *string
func (*FullTokenInfo) GetHolders ¶
func (f *FullTokenInfo) GetHolders() *float64
func (*FullTokenInfo) GetIcon ¶
func (f *FullTokenInfo) GetIcon() *string
func (*FullTokenInfo) GetInsiderHolderPercent ¶
func (f *FullTokenInfo) GetInsiderHolderPercent() *float64
func (*FullTokenInfo) GetIssueDate ¶
func (f *FullTokenInfo) GetIssueDate() *float64
func (*FullTokenInfo) GetLiquidity ¶
func (f *FullTokenInfo) GetLiquidity() *float64
func (*FullTokenInfo) GetLockLpPercent ¶
func (f *FullTokenInfo) GetLockLpPercent() *float64
func (*FullTokenInfo) GetMarket ¶
func (f *FullTokenInfo) GetMarket() *FullTokenInfoMarket
func (*FullTokenInfo) GetMaxSupply ¶
func (f *FullTokenInfo) GetMaxSupply() *float64
func (*FullTokenInfo) GetName ¶
func (f *FullTokenInfo) GetName() *string
func (*FullTokenInfo) GetPrice ¶
func (f *FullTokenInfo) GetPrice() *float64
func (*FullTokenInfo) GetSecurity ¶
func (f *FullTokenInfo) GetSecurity() *SecurityInfo
func (*FullTokenInfo) GetSniperHolderPercent ¶
func (f *FullTokenInfo) GetSniperHolderPercent() *float64
func (*FullTokenInfo) GetSymbol ¶
func (f *FullTokenInfo) GetSymbol() *string
func (*FullTokenInfo) GetTelegram ¶
func (f *FullTokenInfo) GetTelegram() *string
func (*FullTokenInfo) GetTop10HolderPercent ¶
func (f *FullTokenInfo) GetTop10HolderPercent() *float64
func (*FullTokenInfo) GetTotalSupply ¶
func (f *FullTokenInfo) GetTotalSupply() *float64
func (*FullTokenInfo) GetTwitter ¶
func (f *FullTokenInfo) GetTwitter() *string
func (*FullTokenInfo) GetWebsite ¶
func (f *FullTokenInfo) GetWebsite() *string
func (*FullTokenInfo) GetWhitepaper ¶
func (f *FullTokenInfo) GetWhitepaper() *string
func (*FullTokenInfo) MarshalJSON ¶
func (f *FullTokenInfo) MarshalJSON() ([]byte, error)
func (*FullTokenInfo) SetAbout ¶
func (f *FullTokenInfo) SetAbout(about *string)
SetAbout sets the About field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FullTokenInfo) SetChain ¶
func (f *FullTokenInfo) SetChain(chain *string)
SetChain sets the Chain field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FullTokenInfo) SetCirculatingSupply ¶
func (f *FullTokenInfo) SetCirculatingSupply(circulatingSupply *float64)
SetCirculatingSupply sets the CirculatingSupply field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FullTokenInfo) SetContract ¶
func (f *FullTokenInfo) SetContract(contract *string)
SetContract sets the Contract field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FullTokenInfo) SetDecimals ¶
func (f *FullTokenInfo) SetDecimals(decimals *float64)
SetDecimals sets the Decimals field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FullTokenInfo) SetDevHolderBalance ¶
func (f *FullTokenInfo) SetDevHolderBalance(devHolderBalance *float64)
SetDevHolderBalance sets the DevHolderBalance field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FullTokenInfo) SetDevHolderPercent ¶
func (f *FullTokenInfo) SetDevHolderPercent(devHolderPercent *float64)
SetDevHolderPercent sets the DevHolderPercent field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FullTokenInfo) SetDevIssueCoinCount ¶
func (f *FullTokenInfo) SetDevIssueCoinCount(devIssueCoinCount *float64)
SetDevIssueCoinCount sets the DevIssueCoinCount field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FullTokenInfo) SetDevRugCoinCount ¶
func (f *FullTokenInfo) SetDevRugCoinCount(devRugCoinCount *float64)
SetDevRugCoinCount sets the DevRugCoinCount field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FullTokenInfo) SetDevRugPercent ¶
func (f *FullTokenInfo) SetDevRugPercent(devRugPercent *float64)
SetDevRugPercent sets the DevRugPercent field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FullTokenInfo) SetDiscord ¶
func (f *FullTokenInfo) SetDiscord(discord *string)
SetDiscord sets the Discord field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FullTokenInfo) SetFacebook ¶
func (f *FullTokenInfo) SetFacebook(facebook *string)
SetFacebook sets the Facebook field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FullTokenInfo) SetHolders ¶
func (f *FullTokenInfo) SetHolders(holders *float64)
SetHolders sets the Holders field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FullTokenInfo) SetIcon ¶
func (f *FullTokenInfo) SetIcon(icon *string)
SetIcon sets the Icon field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FullTokenInfo) SetInsiderHolderPercent ¶
func (f *FullTokenInfo) SetInsiderHolderPercent(insiderHolderPercent *float64)
SetInsiderHolderPercent sets the InsiderHolderPercent field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FullTokenInfo) SetIssueDate ¶
func (f *FullTokenInfo) SetIssueDate(issueDate *float64)
SetIssueDate sets the IssueDate field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FullTokenInfo) SetLiquidity ¶
func (f *FullTokenInfo) SetLiquidity(liquidity *float64)
SetLiquidity sets the Liquidity field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FullTokenInfo) SetLockLpPercent ¶
func (f *FullTokenInfo) SetLockLpPercent(lockLpPercent *float64)
SetLockLpPercent sets the LockLpPercent field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FullTokenInfo) SetMarket ¶
func (f *FullTokenInfo) SetMarket(market *FullTokenInfoMarket)
SetMarket sets the Market field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FullTokenInfo) SetMaxSupply ¶
func (f *FullTokenInfo) SetMaxSupply(maxSupply *float64)
SetMaxSupply sets the MaxSupply field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FullTokenInfo) SetName ¶
func (f *FullTokenInfo) SetName(name *string)
SetName sets the Name field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FullTokenInfo) SetPrice ¶
func (f *FullTokenInfo) SetPrice(price *float64)
SetPrice sets the Price field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FullTokenInfo) SetSecurity ¶
func (f *FullTokenInfo) SetSecurity(security *SecurityInfo)
SetSecurity sets the Security field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FullTokenInfo) SetSniperHolderPercent ¶
func (f *FullTokenInfo) SetSniperHolderPercent(sniperHolderPercent *float64)
SetSniperHolderPercent sets the SniperHolderPercent field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FullTokenInfo) SetSymbol ¶
func (f *FullTokenInfo) SetSymbol(symbol *string)
SetSymbol sets the Symbol field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FullTokenInfo) SetTelegram ¶
func (f *FullTokenInfo) SetTelegram(telegram *string)
SetTelegram sets the Telegram field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FullTokenInfo) SetTop10HolderPercent ¶
func (f *FullTokenInfo) SetTop10HolderPercent(top10HolderPercent *float64)
SetTop10HolderPercent sets the Top10HolderPercent field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FullTokenInfo) SetTotalSupply ¶
func (f *FullTokenInfo) SetTotalSupply(totalSupply *float64)
SetTotalSupply sets the TotalSupply field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FullTokenInfo) SetTwitter ¶
func (f *FullTokenInfo) SetTwitter(twitter *string)
SetTwitter sets the Twitter field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FullTokenInfo) SetWebsite ¶
func (f *FullTokenInfo) SetWebsite(website *string)
SetWebsite sets the Website field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FullTokenInfo) SetWhitepaper ¶
func (f *FullTokenInfo) SetWhitepaper(whitepaper *string)
SetWhitepaper sets the Whitepaper field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FullTokenInfo) String ¶
func (f *FullTokenInfo) String() string
func (*FullTokenInfo) UnmarshalJSON ¶
func (f *FullTokenInfo) UnmarshalJSON(data []byte) error
type FullTokenInfoMarket ¶
type FullTokenInfoMarket struct {
Price *float64 `json:"price,omitempty" url:"price,omitempty"`
MarketCap *float64 `json:"market_cap,omitempty" url:"market_cap,omitempty"`
Fdv *float64 `json:"fdv,omitempty" url:"fdv,omitempty"`
Liquidity *float64 `json:"liquidity,omitempty" url:"liquidity,omitempty"`
Turnover *float64 `json:"turnover,omitempty" url:"turnover,omitempty"`
Age *float64 `json:"age,omitempty" url:"age,omitempty"`
Change5M *float64 `json:"change_5m,omitempty" url:"change_5m,omitempty"`
Change1H *float64 `json:"change_1h,omitempty" url:"change_1h,omitempty"`
Change4H *float64 `json:"change_4h,omitempty" url:"change_4h,omitempty"`
Change24H *float64 `json:"change_24h,omitempty" url:"change_24h,omitempty"`
VolumeUsd5M *float64 `json:"volume_usd_5m,omitempty" url:"volume_usd_5m,omitempty"`
VolumeUsd1H *float64 `json:"volume_usd_1h,omitempty" url:"volume_usd_1h,omitempty"`
VolumeUsd4H *float64 `json:"volume_usd_4h,omitempty" url:"volume_usd_4h,omitempty"`
VolumeUsd24H *float64 `json:"volume_usd_24h,omitempty" url:"volume_usd_24h,omitempty"`
Pairs []*FullTokenInfoMarketPairsItem `json:"pairs,omitempty" url:"pairs,omitempty"`
// contains filtered or unexported fields
}
func (*FullTokenInfoMarket) GetAge ¶
func (f *FullTokenInfoMarket) GetAge() *float64
func (*FullTokenInfoMarket) GetChange1H ¶
func (f *FullTokenInfoMarket) GetChange1H() *float64
func (*FullTokenInfoMarket) GetChange4H ¶
func (f *FullTokenInfoMarket) GetChange4H() *float64
func (*FullTokenInfoMarket) GetChange5M ¶
func (f *FullTokenInfoMarket) GetChange5M() *float64
func (*FullTokenInfoMarket) GetChange24H ¶
func (f *FullTokenInfoMarket) GetChange24H() *float64
func (*FullTokenInfoMarket) GetExtraProperties ¶
func (f *FullTokenInfoMarket) GetExtraProperties() map[string]interface{}
func (*FullTokenInfoMarket) GetFdv ¶
func (f *FullTokenInfoMarket) GetFdv() *float64
func (*FullTokenInfoMarket) GetLiquidity ¶
func (f *FullTokenInfoMarket) GetLiquidity() *float64
func (*FullTokenInfoMarket) GetMarketCap ¶
func (f *FullTokenInfoMarket) GetMarketCap() *float64
func (*FullTokenInfoMarket) GetPairs ¶
func (f *FullTokenInfoMarket) GetPairs() []*FullTokenInfoMarketPairsItem
func (*FullTokenInfoMarket) GetPrice ¶
func (f *FullTokenInfoMarket) GetPrice() *float64
func (*FullTokenInfoMarket) GetTurnover ¶
func (f *FullTokenInfoMarket) GetTurnover() *float64
func (*FullTokenInfoMarket) GetVolumeUsd1H ¶
func (f *FullTokenInfoMarket) GetVolumeUsd1H() *float64
func (*FullTokenInfoMarket) GetVolumeUsd4H ¶
func (f *FullTokenInfoMarket) GetVolumeUsd4H() *float64
func (*FullTokenInfoMarket) GetVolumeUsd5M ¶
func (f *FullTokenInfoMarket) GetVolumeUsd5M() *float64
func (*FullTokenInfoMarket) GetVolumeUsd24H ¶
func (f *FullTokenInfoMarket) GetVolumeUsd24H() *float64
func (*FullTokenInfoMarket) MarshalJSON ¶
func (f *FullTokenInfoMarket) MarshalJSON() ([]byte, error)
func (*FullTokenInfoMarket) SetAge ¶
func (f *FullTokenInfoMarket) SetAge(age *float64)
SetAge sets the Age field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FullTokenInfoMarket) SetChange1H ¶
func (f *FullTokenInfoMarket) SetChange1H(change1H *float64)
SetChange1H sets the Change1H field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FullTokenInfoMarket) SetChange4H ¶
func (f *FullTokenInfoMarket) SetChange4H(change4H *float64)
SetChange4H sets the Change4H field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FullTokenInfoMarket) SetChange5M ¶
func (f *FullTokenInfoMarket) SetChange5M(change5M *float64)
SetChange5M sets the Change5M field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FullTokenInfoMarket) SetChange24H ¶
func (f *FullTokenInfoMarket) SetChange24H(change24H *float64)
SetChange24H sets the Change24H field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FullTokenInfoMarket) SetFdv ¶
func (f *FullTokenInfoMarket) SetFdv(fdv *float64)
SetFdv sets the Fdv field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FullTokenInfoMarket) SetLiquidity ¶
func (f *FullTokenInfoMarket) SetLiquidity(liquidity *float64)
SetLiquidity sets the Liquidity field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FullTokenInfoMarket) SetMarketCap ¶
func (f *FullTokenInfoMarket) SetMarketCap(marketCap *float64)
SetMarketCap sets the MarketCap field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FullTokenInfoMarket) SetPairs ¶
func (f *FullTokenInfoMarket) SetPairs(pairs []*FullTokenInfoMarketPairsItem)
SetPairs sets the Pairs field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FullTokenInfoMarket) SetPrice ¶
func (f *FullTokenInfoMarket) SetPrice(price *float64)
SetPrice sets the Price field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FullTokenInfoMarket) SetTurnover ¶
func (f *FullTokenInfoMarket) SetTurnover(turnover *float64)
SetTurnover sets the Turnover field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FullTokenInfoMarket) SetVolumeUsd1H ¶
func (f *FullTokenInfoMarket) SetVolumeUsd1H(volumeUsd1H *float64)
SetVolumeUsd1H sets the VolumeUsd1H field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FullTokenInfoMarket) SetVolumeUsd4H ¶
func (f *FullTokenInfoMarket) SetVolumeUsd4H(volumeUsd4H *float64)
SetVolumeUsd4H sets the VolumeUsd4H field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FullTokenInfoMarket) SetVolumeUsd5M ¶
func (f *FullTokenInfoMarket) SetVolumeUsd5M(volumeUsd5M *float64)
SetVolumeUsd5M sets the VolumeUsd5M field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FullTokenInfoMarket) SetVolumeUsd24H ¶
func (f *FullTokenInfoMarket) SetVolumeUsd24H(volumeUsd24H *float64)
SetVolumeUsd24H sets the VolumeUsd24H field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FullTokenInfoMarket) String ¶
func (f *FullTokenInfoMarket) String() string
func (*FullTokenInfoMarket) UnmarshalJSON ¶
func (f *FullTokenInfoMarket) UnmarshalJSON(data []byte) error
type FullTokenInfoMarketPairsItem ¶
type FullTokenInfoMarketPairsItem struct {
PoolAddress *string `json:"pool_address,omitempty" url:"pool_address,omitempty"`
Protocol *string `json:"protocol,omitempty" url:"protocol,omitempty"`
Token0Symbol *string `json:"token0_symbol,omitempty" url:"token0_symbol,omitempty"`
Token1Symbol *string `json:"token1_symbol,omitempty" url:"token1_symbol,omitempty"`
Liquidity *float64 `json:"liquidity,omitempty" url:"liquidity,omitempty"`
// contains filtered or unexported fields
}
func (*FullTokenInfoMarketPairsItem) GetExtraProperties ¶
func (f *FullTokenInfoMarketPairsItem) GetExtraProperties() map[string]interface{}
func (*FullTokenInfoMarketPairsItem) GetLiquidity ¶
func (f *FullTokenInfoMarketPairsItem) GetLiquidity() *float64
func (*FullTokenInfoMarketPairsItem) GetPoolAddress ¶
func (f *FullTokenInfoMarketPairsItem) GetPoolAddress() *string
func (*FullTokenInfoMarketPairsItem) GetProtocol ¶
func (f *FullTokenInfoMarketPairsItem) GetProtocol() *string
func (*FullTokenInfoMarketPairsItem) GetToken0Symbol ¶
func (f *FullTokenInfoMarketPairsItem) GetToken0Symbol() *string
func (*FullTokenInfoMarketPairsItem) GetToken1Symbol ¶
func (f *FullTokenInfoMarketPairsItem) GetToken1Symbol() *string
func (*FullTokenInfoMarketPairsItem) MarshalJSON ¶
func (f *FullTokenInfoMarketPairsItem) MarshalJSON() ([]byte, error)
func (*FullTokenInfoMarketPairsItem) SetLiquidity ¶
func (f *FullTokenInfoMarketPairsItem) SetLiquidity(liquidity *float64)
SetLiquidity sets the Liquidity field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FullTokenInfoMarketPairsItem) SetPoolAddress ¶
func (f *FullTokenInfoMarketPairsItem) SetPoolAddress(poolAddress *string)
SetPoolAddress sets the PoolAddress field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FullTokenInfoMarketPairsItem) SetProtocol ¶
func (f *FullTokenInfoMarketPairsItem) SetProtocol(protocol *string)
SetProtocol sets the Protocol field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FullTokenInfoMarketPairsItem) SetToken0Symbol ¶
func (f *FullTokenInfoMarketPairsItem) SetToken0Symbol(token0Symbol *string)
SetToken0Symbol sets the Token0Symbol field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FullTokenInfoMarketPairsItem) SetToken1Symbol ¶
func (f *FullTokenInfoMarketPairsItem) SetToken1Symbol(token1Symbol *string)
SetToken1Symbol sets the Token1Symbol field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*FullTokenInfoMarketPairsItem) String ¶
func (f *FullTokenInfoMarketPairsItem) String() string
func (*FullTokenInfoMarketPairsItem) UnmarshalJSON ¶
func (f *FullTokenInfoMarketPairsItem) UnmarshalJSON(data []byte) error
type GetBaseInfoRequest ¶
type GetBaseInfoRequest struct {
Chain string `json:"chain" url:"-"`
Contract string `json:"contract" url:"-"`
// contains filtered or unexported fields
}
func (*GetBaseInfoRequest) MarshalJSON ¶
func (g *GetBaseInfoRequest) MarshalJSON() ([]byte, error)
func (*GetBaseInfoRequest) SetChain ¶
func (g *GetBaseInfoRequest) SetChain(chain string)
SetChain sets the Chain field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*GetBaseInfoRequest) SetContract ¶
func (g *GetBaseInfoRequest) SetContract(contract string)
SetContract sets the Contract field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*GetBaseInfoRequest) UnmarshalJSON ¶
func (g *GetBaseInfoRequest) UnmarshalJSON(data []byte) error
type GetBaseInfoResponse ¶
type GetBaseInfoResponse struct {
Data *TokenBaseInfo `json:"data,omitempty" url:"data,omitempty"`
// 0 indicates success
Status *int `json:"status,omitempty" url:"status,omitempty"`
TraceID *string `json:"traceId,omitempty" url:"traceId,omitempty"`
// contains filtered or unexported fields
}
func (*GetBaseInfoResponse) GetData ¶
func (g *GetBaseInfoResponse) GetData() *TokenBaseInfo
func (*GetBaseInfoResponse) GetExtraProperties ¶
func (g *GetBaseInfoResponse) GetExtraProperties() map[string]interface{}
func (*GetBaseInfoResponse) GetStatus ¶
func (g *GetBaseInfoResponse) GetStatus() *int
func (*GetBaseInfoResponse) GetTraceID ¶
func (g *GetBaseInfoResponse) GetTraceID() *string
func (*GetBaseInfoResponse) MarshalJSON ¶
func (g *GetBaseInfoResponse) MarshalJSON() ([]byte, error)
func (*GetBaseInfoResponse) SetData ¶
func (g *GetBaseInfoResponse) SetData(data *TokenBaseInfo)
SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*GetBaseInfoResponse) SetStatus ¶
func (g *GetBaseInfoResponse) SetStatus(status *int)
SetStatus sets the Status field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*GetBaseInfoResponse) SetTraceID ¶
func (g *GetBaseInfoResponse) SetTraceID(traceID *string)
SetTraceID sets the TraceID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*GetBaseInfoResponse) String ¶
func (g *GetBaseInfoResponse) String() string
func (*GetBaseInfoResponse) UnmarshalJSON ¶
func (g *GetBaseInfoResponse) UnmarshalJSON(data []byte) error
type GetGasPriceRequest ¶
type GetGasPriceRequest struct {
// Chain identifier, e.g. eth, bnb, matic
Chain string `json:"chain" url:"-"`
// contains filtered or unexported fields
}
func (*GetGasPriceRequest) MarshalJSON ¶
func (g *GetGasPriceRequest) MarshalJSON() ([]byte, error)
func (*GetGasPriceRequest) SetChain ¶
func (g *GetGasPriceRequest) SetChain(chain string)
SetChain sets the Chain field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*GetGasPriceRequest) UnmarshalJSON ¶
func (g *GetGasPriceRequest) UnmarshalJSON(data []byte) error
type GetGasPriceResponse ¶
type GetGasPriceResponse struct {
// Business data
Data *GetGasPriceResponseData `json:"data,omitempty" url:"data,omitempty"`
// 0 indicates success
Code *int `json:"code,omitempty" url:"code,omitempty"`
Message *string `json:"message,omitempty" url:"message,omitempty"`
// contains filtered or unexported fields
}
func (*GetGasPriceResponse) GetCode ¶
func (g *GetGasPriceResponse) GetCode() *int
func (*GetGasPriceResponse) GetData ¶
func (g *GetGasPriceResponse) GetData() *GetGasPriceResponseData
func (*GetGasPriceResponse) GetExtraProperties ¶
func (g *GetGasPriceResponse) GetExtraProperties() map[string]interface{}
func (*GetGasPriceResponse) GetMessage ¶
func (g *GetGasPriceResponse) GetMessage() *string
func (*GetGasPriceResponse) MarshalJSON ¶
func (g *GetGasPriceResponse) MarshalJSON() ([]byte, error)
func (*GetGasPriceResponse) SetCode ¶
func (g *GetGasPriceResponse) SetCode(code *int)
SetCode sets the Code field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*GetGasPriceResponse) SetData ¶
func (g *GetGasPriceResponse) SetData(data *GetGasPriceResponseData)
SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*GetGasPriceResponse) SetMessage ¶
func (g *GetGasPriceResponse) SetMessage(message *string)
SetMessage sets the Message field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*GetGasPriceResponse) String ¶
func (g *GetGasPriceResponse) String() string
func (*GetGasPriceResponse) UnmarshalJSON ¶
func (g *GetGasPriceResponse) UnmarshalJSON(data []byte) error
type GetGasPriceResponseData ¶
type GetGasPriceResponseData struct {
// Standard gas price (Gwei)
GasPrice *string `json:"gasPrice,omitempty" url:"gasPrice,omitempty"`
MediumGasPrice *string `json:"mediumGasPrice,omitempty" url:"mediumGasPrice,omitempty"`
FastGasPrice *string `json:"fastGasPrice,omitempty" url:"fastGasPrice,omitempty"`
// Chain type, e.g. evm
ChainType *string `json:"chainType,omitempty" url:"chainType,omitempty"`
Eip1559 *GetGasPriceResponseDataEip1559 `json:"eip1559,omitempty" url:"eip1559,omitempty"`
// contains filtered or unexported fields
}
func (*GetGasPriceResponseData) GetChainType ¶
func (g *GetGasPriceResponseData) GetChainType() *string
func (*GetGasPriceResponseData) GetEip1559 ¶
func (g *GetGasPriceResponseData) GetEip1559() *GetGasPriceResponseDataEip1559
func (*GetGasPriceResponseData) GetExtraProperties ¶
func (g *GetGasPriceResponseData) GetExtraProperties() map[string]interface{}
func (*GetGasPriceResponseData) GetFastGasPrice ¶
func (g *GetGasPriceResponseData) GetFastGasPrice() *string
func (*GetGasPriceResponseData) GetGasPrice ¶
func (g *GetGasPriceResponseData) GetGasPrice() *string
func (*GetGasPriceResponseData) GetMediumGasPrice ¶
func (g *GetGasPriceResponseData) GetMediumGasPrice() *string
func (*GetGasPriceResponseData) MarshalJSON ¶
func (g *GetGasPriceResponseData) MarshalJSON() ([]byte, error)
func (*GetGasPriceResponseData) SetChainType ¶
func (g *GetGasPriceResponseData) SetChainType(chainType *string)
SetChainType sets the ChainType field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*GetGasPriceResponseData) SetEip1559 ¶
func (g *GetGasPriceResponseData) SetEip1559(eip1559 *GetGasPriceResponseDataEip1559)
SetEip1559 sets the Eip1559 field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*GetGasPriceResponseData) SetFastGasPrice ¶
func (g *GetGasPriceResponseData) SetFastGasPrice(fastGasPrice *string)
SetFastGasPrice sets the FastGasPrice field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*GetGasPriceResponseData) SetGasPrice ¶
func (g *GetGasPriceResponseData) SetGasPrice(gasPrice *string)
SetGasPrice sets the GasPrice field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*GetGasPriceResponseData) SetMediumGasPrice ¶
func (g *GetGasPriceResponseData) SetMediumGasPrice(mediumGasPrice *string)
SetMediumGasPrice sets the MediumGasPrice field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*GetGasPriceResponseData) String ¶
func (g *GetGasPriceResponseData) String() string
func (*GetGasPriceResponseData) UnmarshalJSON ¶
func (g *GetGasPriceResponseData) UnmarshalJSON(data []byte) error
type GetGasPriceResponseDataEip1559 ¶
type GetGasPriceResponseDataEip1559 struct {
BaseFeePerGas *string `json:"baseFeePerGas,omitempty" url:"baseFeePerGas,omitempty"`
MaxPriorityFeePerGas *string `json:"maxPriorityFeePerGas,omitempty" url:"maxPriorityFeePerGas,omitempty"`
MaxPriorityFeePerGasTiered *GetGasPriceResponseDataEip1559MaxPriorityFeePerGasTiered `json:"maxPriorityFeePerGasTiered,omitempty" url:"maxPriorityFeePerGasTiered,omitempty"`
// contains filtered or unexported fields
}
func (*GetGasPriceResponseDataEip1559) GetBaseFeePerGas ¶
func (g *GetGasPriceResponseDataEip1559) GetBaseFeePerGas() *string
func (*GetGasPriceResponseDataEip1559) GetExtraProperties ¶
func (g *GetGasPriceResponseDataEip1559) GetExtraProperties() map[string]interface{}
func (*GetGasPriceResponseDataEip1559) GetMaxPriorityFeePerGas ¶
func (g *GetGasPriceResponseDataEip1559) GetMaxPriorityFeePerGas() *string
func (*GetGasPriceResponseDataEip1559) GetMaxPriorityFeePerGasTiered ¶
func (g *GetGasPriceResponseDataEip1559) GetMaxPriorityFeePerGasTiered() *GetGasPriceResponseDataEip1559MaxPriorityFeePerGasTiered
func (*GetGasPriceResponseDataEip1559) MarshalJSON ¶
func (g *GetGasPriceResponseDataEip1559) MarshalJSON() ([]byte, error)
func (*GetGasPriceResponseDataEip1559) SetBaseFeePerGas ¶
func (g *GetGasPriceResponseDataEip1559) SetBaseFeePerGas(baseFeePerGas *string)
SetBaseFeePerGas sets the BaseFeePerGas field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*GetGasPriceResponseDataEip1559) SetMaxPriorityFeePerGas ¶
func (g *GetGasPriceResponseDataEip1559) SetMaxPriorityFeePerGas(maxPriorityFeePerGas *string)
SetMaxPriorityFeePerGas sets the MaxPriorityFeePerGas field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*GetGasPriceResponseDataEip1559) SetMaxPriorityFeePerGasTiered ¶
func (g *GetGasPriceResponseDataEip1559) SetMaxPriorityFeePerGasTiered(maxPriorityFeePerGasTiered *GetGasPriceResponseDataEip1559MaxPriorityFeePerGasTiered)
SetMaxPriorityFeePerGasTiered sets the MaxPriorityFeePerGasTiered field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*GetGasPriceResponseDataEip1559) String ¶
func (g *GetGasPriceResponseDataEip1559) String() string
func (*GetGasPriceResponseDataEip1559) UnmarshalJSON ¶
func (g *GetGasPriceResponseDataEip1559) UnmarshalJSON(data []byte) error
type GetGasPriceResponseDataEip1559MaxPriorityFeePerGasTiered ¶
type GetGasPriceResponseDataEip1559MaxPriorityFeePerGasTiered struct {
Normal *string `json:"normal,omitempty" url:"normal,omitempty"`
Medium *string `json:"medium,omitempty" url:"medium,omitempty"`
Fast *string `json:"fast,omitempty" url:"fast,omitempty"`
// contains filtered or unexported fields
}
func (*GetGasPriceResponseDataEip1559MaxPriorityFeePerGasTiered) GetExtraProperties ¶
func (g *GetGasPriceResponseDataEip1559MaxPriorityFeePerGasTiered) GetExtraProperties() map[string]interface{}
func (*GetGasPriceResponseDataEip1559MaxPriorityFeePerGasTiered) GetFast ¶
func (g *GetGasPriceResponseDataEip1559MaxPriorityFeePerGasTiered) GetFast() *string
func (*GetGasPriceResponseDataEip1559MaxPriorityFeePerGasTiered) GetMedium ¶
func (g *GetGasPriceResponseDataEip1559MaxPriorityFeePerGasTiered) GetMedium() *string
func (*GetGasPriceResponseDataEip1559MaxPriorityFeePerGasTiered) GetNormal ¶
func (g *GetGasPriceResponseDataEip1559MaxPriorityFeePerGasTiered) GetNormal() *string
func (*GetGasPriceResponseDataEip1559MaxPriorityFeePerGasTiered) MarshalJSON ¶
func (g *GetGasPriceResponseDataEip1559MaxPriorityFeePerGasTiered) MarshalJSON() ([]byte, error)
func (*GetGasPriceResponseDataEip1559MaxPriorityFeePerGasTiered) SetFast ¶
func (g *GetGasPriceResponseDataEip1559MaxPriorityFeePerGasTiered) SetFast(fast *string)
SetFast sets the Fast field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*GetGasPriceResponseDataEip1559MaxPriorityFeePerGasTiered) SetMedium ¶
func (g *GetGasPriceResponseDataEip1559MaxPriorityFeePerGasTiered) SetMedium(medium *string)
SetMedium sets the Medium field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*GetGasPriceResponseDataEip1559MaxPriorityFeePerGasTiered) SetNormal ¶
func (g *GetGasPriceResponseDataEip1559MaxPriorityFeePerGasTiered) SetNormal(normal *string)
SetNormal sets the Normal field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*GetGasPriceResponseDataEip1559MaxPriorityFeePerGasTiered) String ¶
func (g *GetGasPriceResponseDataEip1559MaxPriorityFeePerGasTiered) String() string
func (*GetGasPriceResponseDataEip1559MaxPriorityFeePerGasTiered) UnmarshalJSON ¶
func (g *GetGasPriceResponseDataEip1559MaxPriorityFeePerGasTiered) UnmarshalJSON(data []byte) error
type GetKlineRequest ¶
type GetKlineRequest struct {
Chain string `json:"chain" url:"-"`
Contract string `json:"contract" url:"-"`
Period GetKlineRequestPeriod `json:"period" url:"-"`
// Number of K-line entries; maximum 1440
Size float64 `json:"size" url:"-"`
// contains filtered or unexported fields
}
func (*GetKlineRequest) MarshalJSON ¶
func (g *GetKlineRequest) MarshalJSON() ([]byte, error)
func (*GetKlineRequest) SetChain ¶
func (g *GetKlineRequest) SetChain(chain string)
SetChain sets the Chain field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*GetKlineRequest) SetContract ¶
func (g *GetKlineRequest) SetContract(contract string)
SetContract sets the Contract field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*GetKlineRequest) SetPeriod ¶
func (g *GetKlineRequest) SetPeriod(period GetKlineRequestPeriod)
SetPeriod sets the Period field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*GetKlineRequest) SetSize ¶
func (g *GetKlineRequest) SetSize(size float64)
SetSize sets the Size field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*GetKlineRequest) UnmarshalJSON ¶
func (g *GetKlineRequest) UnmarshalJSON(data []byte) error
type GetKlineRequestPeriod ¶
type GetKlineRequestPeriod string
const ( GetKlineRequestPeriodOneS GetKlineRequestPeriod = "1s" GetKlineRequestPeriodOneM GetKlineRequestPeriod = "1m" GetKlineRequestPeriodFiveM GetKlineRequestPeriod = "5m" GetKlineRequestPeriodFifteenM GetKlineRequestPeriod = "15m" GetKlineRequestPeriodThirtyM GetKlineRequestPeriod = "30m" GetKlineRequestPeriodOneH GetKlineRequestPeriod = "1h" GetKlineRequestPeriodFourH GetKlineRequestPeriod = "4h" GetKlineRequestPeriodOneD GetKlineRequestPeriod = "1d" GetKlineRequestPeriodOneW GetKlineRequestPeriod = "1w" )
func NewGetKlineRequestPeriodFromString ¶
func NewGetKlineRequestPeriodFromString(s string) (GetKlineRequestPeriod, error)
func (GetKlineRequestPeriod) Ptr ¶
func (g GetKlineRequestPeriod) Ptr() *GetKlineRequestPeriod
type GetKlineResponse ¶
type GetKlineResponse struct {
// Business data
Data *GetKlineResponseData `json:"data,omitempty" url:"data,omitempty"`
// 0 indicates success
Status *int `json:"status,omitempty" url:"status,omitempty"`
TraceID *string `json:"traceId,omitempty" url:"traceId,omitempty"`
// contains filtered or unexported fields
}
func (*GetKlineResponse) GetData ¶
func (g *GetKlineResponse) GetData() *GetKlineResponseData
func (*GetKlineResponse) GetExtraProperties ¶
func (g *GetKlineResponse) GetExtraProperties() map[string]interface{}
func (*GetKlineResponse) GetStatus ¶
func (g *GetKlineResponse) GetStatus() *int
func (*GetKlineResponse) GetTraceID ¶
func (g *GetKlineResponse) GetTraceID() *string
func (*GetKlineResponse) MarshalJSON ¶
func (g *GetKlineResponse) MarshalJSON() ([]byte, error)
func (*GetKlineResponse) SetData ¶
func (g *GetKlineResponse) SetData(data *GetKlineResponseData)
SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*GetKlineResponse) SetStatus ¶
func (g *GetKlineResponse) SetStatus(status *int)
SetStatus sets the Status field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*GetKlineResponse) SetTraceID ¶
func (g *GetKlineResponse) SetTraceID(traceID *string)
SetTraceID sets the TraceID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*GetKlineResponse) String ¶
func (g *GetKlineResponse) String() string
func (*GetKlineResponse) UnmarshalJSON ¶
func (g *GetKlineResponse) UnmarshalJSON(data []byte) error
type GetKlineResponseData ¶
type GetKlineResponseData struct {
List []*GetKlineResponseDataListItem `json:"list,omitempty" url:"list,omitempty"`
// contains filtered or unexported fields
}
func (*GetKlineResponseData) GetExtraProperties ¶
func (g *GetKlineResponseData) GetExtraProperties() map[string]interface{}
func (*GetKlineResponseData) GetList ¶
func (g *GetKlineResponseData) GetList() []*GetKlineResponseDataListItem
func (*GetKlineResponseData) MarshalJSON ¶
func (g *GetKlineResponseData) MarshalJSON() ([]byte, error)
func (*GetKlineResponseData) SetList ¶
func (g *GetKlineResponseData) SetList(list []*GetKlineResponseDataListItem)
SetList sets the List field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*GetKlineResponseData) String ¶
func (g *GetKlineResponseData) String() string
func (*GetKlineResponseData) UnmarshalJSON ¶
func (g *GetKlineResponseData) UnmarshalJSON(data []byte) error
type GetKlineResponseDataListItem ¶
type GetKlineResponseDataListItem struct {
// Timestamp (seconds, 10 digits)
Ts *float64 `json:"ts,omitempty" url:"ts,omitempty"`
High *float64 `json:"high,omitempty" url:"high,omitempty"`
Low *float64 `json:"low,omitempty" url:"low,omitempty"`
Open *float64 `json:"open,omitempty" url:"open,omitempty"`
Close *float64 `json:"close,omitempty" url:"close,omitempty"`
// Turnover (USD)
Turnover *float64 `json:"turnover,omitempty" url:"turnover,omitempty"`
BuyTurnover *float64 `json:"buyTurnover,omitempty" url:"buyTurnover,omitempty"`
SellTurnover *float64 `json:"sellTurnover,omitempty" url:"sellTurnover,omitempty"`
Amount *float64 `json:"amount,omitempty" url:"amount,omitempty"`
BuyAmount *float64 `json:"buyAmount,omitempty" url:"buyAmount,omitempty"`
SellAmount *float64 `json:"sellAmount,omitempty" url:"sellAmount,omitempty"`
// contains filtered or unexported fields
}
func (*GetKlineResponseDataListItem) GetAmount ¶
func (g *GetKlineResponseDataListItem) GetAmount() *float64
func (*GetKlineResponseDataListItem) GetBuyAmount ¶
func (g *GetKlineResponseDataListItem) GetBuyAmount() *float64
func (*GetKlineResponseDataListItem) GetBuyTurnover ¶
func (g *GetKlineResponseDataListItem) GetBuyTurnover() *float64
func (*GetKlineResponseDataListItem) GetClose ¶
func (g *GetKlineResponseDataListItem) GetClose() *float64
func (*GetKlineResponseDataListItem) GetExtraProperties ¶
func (g *GetKlineResponseDataListItem) GetExtraProperties() map[string]interface{}
func (*GetKlineResponseDataListItem) GetHigh ¶
func (g *GetKlineResponseDataListItem) GetHigh() *float64
func (*GetKlineResponseDataListItem) GetLow ¶
func (g *GetKlineResponseDataListItem) GetLow() *float64
func (*GetKlineResponseDataListItem) GetOpen ¶
func (g *GetKlineResponseDataListItem) GetOpen() *float64
func (*GetKlineResponseDataListItem) GetSellAmount ¶
func (g *GetKlineResponseDataListItem) GetSellAmount() *float64
func (*GetKlineResponseDataListItem) GetSellTurnover ¶
func (g *GetKlineResponseDataListItem) GetSellTurnover() *float64
func (*GetKlineResponseDataListItem) GetTs ¶
func (g *GetKlineResponseDataListItem) GetTs() *float64
func (*GetKlineResponseDataListItem) GetTurnover ¶
func (g *GetKlineResponseDataListItem) GetTurnover() *float64
func (*GetKlineResponseDataListItem) MarshalJSON ¶
func (g *GetKlineResponseDataListItem) MarshalJSON() ([]byte, error)
func (*GetKlineResponseDataListItem) SetAmount ¶
func (g *GetKlineResponseDataListItem) SetAmount(amount *float64)
SetAmount sets the Amount field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*GetKlineResponseDataListItem) SetBuyAmount ¶
func (g *GetKlineResponseDataListItem) SetBuyAmount(buyAmount *float64)
SetBuyAmount sets the BuyAmount field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*GetKlineResponseDataListItem) SetBuyTurnover ¶
func (g *GetKlineResponseDataListItem) SetBuyTurnover(buyTurnover *float64)
SetBuyTurnover sets the BuyTurnover field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*GetKlineResponseDataListItem) SetClose ¶
func (g *GetKlineResponseDataListItem) SetClose(close *float64)
SetClose sets the Close field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*GetKlineResponseDataListItem) SetHigh ¶
func (g *GetKlineResponseDataListItem) SetHigh(high *float64)
SetHigh sets the High field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*GetKlineResponseDataListItem) SetLow ¶
func (g *GetKlineResponseDataListItem) SetLow(low *float64)
SetLow sets the Low field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*GetKlineResponseDataListItem) SetOpen ¶
func (g *GetKlineResponseDataListItem) SetOpen(open *float64)
SetOpen sets the Open field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*GetKlineResponseDataListItem) SetSellAmount ¶
func (g *GetKlineResponseDataListItem) SetSellAmount(sellAmount *float64)
SetSellAmount sets the SellAmount field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*GetKlineResponseDataListItem) SetSellTurnover ¶
func (g *GetKlineResponseDataListItem) SetSellTurnover(sellTurnover *float64)
SetSellTurnover sets the SellTurnover field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*GetKlineResponseDataListItem) SetTs ¶
func (g *GetKlineResponseDataListItem) SetTs(ts *float64)
SetTs sets the Ts field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*GetKlineResponseDataListItem) SetTurnover ¶
func (g *GetKlineResponseDataListItem) SetTurnover(turnover *float64)
SetTurnover sets the Turnover field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*GetKlineResponseDataListItem) String ¶
func (g *GetKlineResponseDataListItem) String() string
func (*GetKlineResponseDataListItem) UnmarshalJSON ¶
func (g *GetKlineResponseDataListItem) UnmarshalJSON(data []byte) error
type GetTxInfoRequest ¶
type GetTxInfoRequest struct {
Chain string `json:"chain" url:"-"`
Contract string `json:"contract" url:"-"`
// contains filtered or unexported fields
}
func (*GetTxInfoRequest) MarshalJSON ¶
func (g *GetTxInfoRequest) MarshalJSON() ([]byte, error)
func (*GetTxInfoRequest) SetChain ¶
func (g *GetTxInfoRequest) SetChain(chain string)
SetChain sets the Chain field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*GetTxInfoRequest) SetContract ¶
func (g *GetTxInfoRequest) SetContract(contract string)
SetContract sets the Contract field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*GetTxInfoRequest) UnmarshalJSON ¶
func (g *GetTxInfoRequest) UnmarshalJSON(data []byte) error
type GetTxInfoResponse ¶
type GetTxInfoResponse struct {
// Business data
Data *GetTxInfoResponseData `json:"data,omitempty" url:"data,omitempty"`
// 0 indicates success
Status *int `json:"status,omitempty" url:"status,omitempty"`
TraceID *string `json:"traceId,omitempty" url:"traceId,omitempty"`
// contains filtered or unexported fields
}
func (*GetTxInfoResponse) GetData ¶
func (g *GetTxInfoResponse) GetData() *GetTxInfoResponseData
func (*GetTxInfoResponse) GetExtraProperties ¶
func (g *GetTxInfoResponse) GetExtraProperties() map[string]interface{}
func (*GetTxInfoResponse) GetStatus ¶
func (g *GetTxInfoResponse) GetStatus() *int
func (*GetTxInfoResponse) GetTraceID ¶
func (g *GetTxInfoResponse) GetTraceID() *string
func (*GetTxInfoResponse) MarshalJSON ¶
func (g *GetTxInfoResponse) MarshalJSON() ([]byte, error)
func (*GetTxInfoResponse) SetData ¶
func (g *GetTxInfoResponse) SetData(data *GetTxInfoResponseData)
SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*GetTxInfoResponse) SetStatus ¶
func (g *GetTxInfoResponse) SetStatus(status *int)
SetStatus sets the Status field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*GetTxInfoResponse) SetTraceID ¶
func (g *GetTxInfoResponse) SetTraceID(traceID *string)
SetTraceID sets the TraceID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*GetTxInfoResponse) String ¶
func (g *GetTxInfoResponse) String() string
func (*GetTxInfoResponse) UnmarshalJSON ¶
func (g *GetTxInfoResponse) UnmarshalJSON(data []byte) error
type GetTxInfoResponseData ¶
type GetTxInfoResponseData struct {
Chain *string `json:"chain,omitempty" url:"chain,omitempty"`
Contract *string `json:"contract,omitempty" url:"contract,omitempty"`
Price *float64 `json:"price,omitempty" url:"price,omitempty"`
// Keyed by time interval (5m/1h/4h/24h)
TxnInfo map[string]*TxnInfoInterval `json:"txn_info,omitempty" url:"txn_info,omitempty"`
// contains filtered or unexported fields
}
func (*GetTxInfoResponseData) GetChain ¶
func (g *GetTxInfoResponseData) GetChain() *string
func (*GetTxInfoResponseData) GetContract ¶
func (g *GetTxInfoResponseData) GetContract() *string
func (*GetTxInfoResponseData) GetExtraProperties ¶
func (g *GetTxInfoResponseData) GetExtraProperties() map[string]interface{}
func (*GetTxInfoResponseData) GetPrice ¶
func (g *GetTxInfoResponseData) GetPrice() *float64
func (*GetTxInfoResponseData) GetTxnInfo ¶
func (g *GetTxInfoResponseData) GetTxnInfo() map[string]*TxnInfoInterval
func (*GetTxInfoResponseData) MarshalJSON ¶
func (g *GetTxInfoResponseData) MarshalJSON() ([]byte, error)
func (*GetTxInfoResponseData) SetChain ¶
func (g *GetTxInfoResponseData) SetChain(chain *string)
SetChain sets the Chain field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*GetTxInfoResponseData) SetContract ¶
func (g *GetTxInfoResponseData) SetContract(contract *string)
SetContract sets the Contract field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*GetTxInfoResponseData) SetPrice ¶
func (g *GetTxInfoResponseData) SetPrice(price *float64)
SetPrice sets the Price field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*GetTxInfoResponseData) SetTxnInfo ¶
func (g *GetTxInfoResponseData) SetTxnInfo(txnInfo map[string]*TxnInfoInterval)
SetTxnInfo sets the TxnInfo field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*GetTxInfoResponseData) String ¶
func (g *GetTxInfoResponseData) String() string
func (*GetTxInfoResponseData) UnmarshalJSON ¶
func (g *GetTxInfoResponseData) UnmarshalJSON(data []byte) error
type HistoricalCoinsRequest ¶
type HistoricalCoinsRequest struct {
// Timestamp, e.g. 2025-06-17 06:55:28
CreateTime string `json:"createTime" url:"-"`
// Number of records
Limit float64 `json:"limit" url:"-"`
// contains filtered or unexported fields
}
func (*HistoricalCoinsRequest) MarshalJSON ¶
func (h *HistoricalCoinsRequest) MarshalJSON() ([]byte, error)
func (*HistoricalCoinsRequest) SetCreateTime ¶
func (h *HistoricalCoinsRequest) SetCreateTime(createTime string)
SetCreateTime sets the CreateTime field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*HistoricalCoinsRequest) SetLimit ¶
func (h *HistoricalCoinsRequest) SetLimit(limit float64)
SetLimit sets the Limit field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*HistoricalCoinsRequest) UnmarshalJSON ¶
func (h *HistoricalCoinsRequest) UnmarshalJSON(data []byte) error
type HistoricalCoinsResponse ¶
type HistoricalCoinsResponse struct {
Errmsg *string `json:"errmsg,omitempty" url:"errmsg,omitempty"`
Errno *float64 `json:"errno,omitempty" url:"errno,omitempty"`
// Business data
Data *HistoricalCoinsResponseData `json:"data,omitempty" url:"data,omitempty"`
// 0 indicates success
Status *int `json:"status,omitempty" url:"status,omitempty"`
TraceID *string `json:"traceId,omitempty" url:"traceId,omitempty"`
// contains filtered or unexported fields
}
func (*HistoricalCoinsResponse) GetData ¶
func (h *HistoricalCoinsResponse) GetData() *HistoricalCoinsResponseData
func (*HistoricalCoinsResponse) GetErrmsg ¶
func (h *HistoricalCoinsResponse) GetErrmsg() *string
func (*HistoricalCoinsResponse) GetErrno ¶
func (h *HistoricalCoinsResponse) GetErrno() *float64
func (*HistoricalCoinsResponse) GetExtraProperties ¶
func (h *HistoricalCoinsResponse) GetExtraProperties() map[string]interface{}
func (*HistoricalCoinsResponse) GetStatus ¶
func (h *HistoricalCoinsResponse) GetStatus() *int
func (*HistoricalCoinsResponse) GetTraceID ¶
func (h *HistoricalCoinsResponse) GetTraceID() *string
func (*HistoricalCoinsResponse) MarshalJSON ¶
func (h *HistoricalCoinsResponse) MarshalJSON() ([]byte, error)
func (*HistoricalCoinsResponse) SetData ¶
func (h *HistoricalCoinsResponse) SetData(data *HistoricalCoinsResponseData)
SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*HistoricalCoinsResponse) SetErrmsg ¶
func (h *HistoricalCoinsResponse) SetErrmsg(errmsg *string)
SetErrmsg sets the Errmsg field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*HistoricalCoinsResponse) SetErrno ¶
func (h *HistoricalCoinsResponse) SetErrno(errno *float64)
SetErrno sets the Errno field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*HistoricalCoinsResponse) SetStatus ¶
func (h *HistoricalCoinsResponse) SetStatus(status *int)
SetStatus sets the Status field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*HistoricalCoinsResponse) SetTraceID ¶
func (h *HistoricalCoinsResponse) SetTraceID(traceID *string)
SetTraceID sets the TraceID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*HistoricalCoinsResponse) String ¶
func (h *HistoricalCoinsResponse) String() string
func (*HistoricalCoinsResponse) UnmarshalJSON ¶
func (h *HistoricalCoinsResponse) UnmarshalJSON(data []byte) error
type HistoricalCoinsResponseData ¶
type HistoricalCoinsResponseData struct {
LastTime *string `json:"lastTime,omitempty" url:"lastTime,omitempty"`
TokenList []*HistoricalCoinsResponseDataTokenListItem `json:"tokenList,omitempty" url:"tokenList,omitempty"`
// contains filtered or unexported fields
}
func (*HistoricalCoinsResponseData) GetExtraProperties ¶
func (h *HistoricalCoinsResponseData) GetExtraProperties() map[string]interface{}
func (*HistoricalCoinsResponseData) GetLastTime ¶
func (h *HistoricalCoinsResponseData) GetLastTime() *string
func (*HistoricalCoinsResponseData) GetTokenList ¶
func (h *HistoricalCoinsResponseData) GetTokenList() []*HistoricalCoinsResponseDataTokenListItem
func (*HistoricalCoinsResponseData) MarshalJSON ¶
func (h *HistoricalCoinsResponseData) MarshalJSON() ([]byte, error)
func (*HistoricalCoinsResponseData) SetLastTime ¶
func (h *HistoricalCoinsResponseData) SetLastTime(lastTime *string)
SetLastTime sets the LastTime field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*HistoricalCoinsResponseData) SetTokenList ¶
func (h *HistoricalCoinsResponseData) SetTokenList(tokenList []*HistoricalCoinsResponseDataTokenListItem)
SetTokenList sets the TokenList field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*HistoricalCoinsResponseData) String ¶
func (h *HistoricalCoinsResponseData) String() string
func (*HistoricalCoinsResponseData) UnmarshalJSON ¶
func (h *HistoricalCoinsResponseData) UnmarshalJSON(data []byte) error
type HistoricalCoinsResponseDataTokenListItem ¶
type HistoricalCoinsResponseDataTokenListItem struct {
Chain *string `json:"chain,omitempty" url:"chain,omitempty"`
Contract *string `json:"contract,omitempty" url:"contract,omitempty"`
Symbol *string `json:"symbol,omitempty" url:"symbol,omitempty"`
Name *string `json:"name,omitempty" url:"name,omitempty"`
Decimals *float64 `json:"decimals,omitempty" url:"decimals,omitempty"`
Icon *string `json:"icon,omitempty" url:"icon,omitempty"`
CreateTime *string `json:"createTime,omitempty" url:"createTime,omitempty"`
// contains filtered or unexported fields
}
func (*HistoricalCoinsResponseDataTokenListItem) GetChain ¶
func (h *HistoricalCoinsResponseDataTokenListItem) GetChain() *string
func (*HistoricalCoinsResponseDataTokenListItem) GetContract ¶
func (h *HistoricalCoinsResponseDataTokenListItem) GetContract() *string
func (*HistoricalCoinsResponseDataTokenListItem) GetCreateTime ¶
func (h *HistoricalCoinsResponseDataTokenListItem) GetCreateTime() *string
func (*HistoricalCoinsResponseDataTokenListItem) GetDecimals ¶
func (h *HistoricalCoinsResponseDataTokenListItem) GetDecimals() *float64
func (*HistoricalCoinsResponseDataTokenListItem) GetExtraProperties ¶
func (h *HistoricalCoinsResponseDataTokenListItem) GetExtraProperties() map[string]interface{}
func (*HistoricalCoinsResponseDataTokenListItem) GetIcon ¶
func (h *HistoricalCoinsResponseDataTokenListItem) GetIcon() *string
func (*HistoricalCoinsResponseDataTokenListItem) GetName ¶
func (h *HistoricalCoinsResponseDataTokenListItem) GetName() *string
func (*HistoricalCoinsResponseDataTokenListItem) GetSymbol ¶
func (h *HistoricalCoinsResponseDataTokenListItem) GetSymbol() *string
func (*HistoricalCoinsResponseDataTokenListItem) MarshalJSON ¶
func (h *HistoricalCoinsResponseDataTokenListItem) MarshalJSON() ([]byte, error)
func (*HistoricalCoinsResponseDataTokenListItem) SetChain ¶
func (h *HistoricalCoinsResponseDataTokenListItem) SetChain(chain *string)
SetChain sets the Chain field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*HistoricalCoinsResponseDataTokenListItem) SetContract ¶
func (h *HistoricalCoinsResponseDataTokenListItem) SetContract(contract *string)
SetContract sets the Contract field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*HistoricalCoinsResponseDataTokenListItem) SetCreateTime ¶
func (h *HistoricalCoinsResponseDataTokenListItem) SetCreateTime(createTime *string)
SetCreateTime sets the CreateTime field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*HistoricalCoinsResponseDataTokenListItem) SetDecimals ¶
func (h *HistoricalCoinsResponseDataTokenListItem) SetDecimals(decimals *float64)
SetDecimals sets the Decimals field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*HistoricalCoinsResponseDataTokenListItem) SetIcon ¶
func (h *HistoricalCoinsResponseDataTokenListItem) SetIcon(icon *string)
SetIcon sets the Icon field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*HistoricalCoinsResponseDataTokenListItem) SetName ¶
func (h *HistoricalCoinsResponseDataTokenListItem) SetName(name *string)
SetName sets the Name field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*HistoricalCoinsResponseDataTokenListItem) SetSymbol ¶
func (h *HistoricalCoinsResponseDataTokenListItem) SetSymbol(symbol *string)
SetSymbol sets the Symbol field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*HistoricalCoinsResponseDataTokenListItem) String ¶
func (h *HistoricalCoinsResponseDataTokenListItem) String() string
func (*HistoricalCoinsResponseDataTokenListItem) UnmarshalJSON ¶
func (h *HistoricalCoinsResponseDataTokenListItem) UnmarshalJSON(data []byte) error
type InstructionQuoteRequest ¶
type InstructionQuoteRequest struct {
// Source token name
FromSymbol *string `json:"fromSymbol,omitempty" url:"-"`
// Source token contract; empty for native token
FromContract string `json:"fromContract" url:"-"`
// Input amount
FromAmount string `json:"fromAmount" url:"-"`
// Source chain
FromChain string `json:"fromChain" url:"-"`
// Target token name
ToSymbol *string `json:"toSymbol,omitempty" url:"-"`
// Target token contract; empty for native token
ToContract string `json:"toContract" url:"-"`
// Target chain
ToChain string `json:"toChain" url:"-"`
// Payer address used for gas estimation
FromAddress *string `json:"fromAddress,omitempty" url:"-"`
// Recipient address
ToAddress *string `json:"toAddress,omitempty" url:"-"`
// Transaction originator, used for RFQ flow classification; falls back to fromAddress if omitted
TxOrigin *string `json:"txOrigin,omitempty" url:"-"`
// Defaults to false; must be used together with fromAddress
EstimateGas *bool `json:"estimateGas,omitempty" url:"-"`
// Quote source, e.g. uniswap.v3, pancakeswap
Market *string `json:"market,omitempty" url:"-"`
// Per-mille (‰); 0 = free, otherwise 0.001–0.2
FeeRate *float64 `json:"feeRate,omitempty" url:"-"`
// Maximum number of accounts; SOL only
SolMaxAccounts *string `json:"solMaxAccounts,omitempty" url:"-"`
// contains filtered or unexported fields
}
func (*InstructionQuoteRequest) MarshalJSON ¶
func (i *InstructionQuoteRequest) MarshalJSON() ([]byte, error)
func (*InstructionQuoteRequest) SetEstimateGas ¶
func (i *InstructionQuoteRequest) SetEstimateGas(estimateGas *bool)
SetEstimateGas sets the EstimateGas field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*InstructionQuoteRequest) SetFeeRate ¶
func (i *InstructionQuoteRequest) SetFeeRate(feeRate *float64)
SetFeeRate sets the FeeRate field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*InstructionQuoteRequest) SetFromAddress ¶
func (i *InstructionQuoteRequest) SetFromAddress(fromAddress *string)
SetFromAddress sets the FromAddress field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*InstructionQuoteRequest) SetFromAmount ¶
func (i *InstructionQuoteRequest) SetFromAmount(fromAmount string)
SetFromAmount sets the FromAmount field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*InstructionQuoteRequest) SetFromChain ¶
func (i *InstructionQuoteRequest) SetFromChain(fromChain string)
SetFromChain sets the FromChain field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*InstructionQuoteRequest) SetFromContract ¶
func (i *InstructionQuoteRequest) SetFromContract(fromContract string)
SetFromContract sets the FromContract field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*InstructionQuoteRequest) SetFromSymbol ¶
func (i *InstructionQuoteRequest) SetFromSymbol(fromSymbol *string)
SetFromSymbol sets the FromSymbol field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*InstructionQuoteRequest) SetMarket ¶
func (i *InstructionQuoteRequest) SetMarket(market *string)
SetMarket sets the Market field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*InstructionQuoteRequest) SetSolMaxAccounts ¶
func (i *InstructionQuoteRequest) SetSolMaxAccounts(solMaxAccounts *string)
SetSolMaxAccounts sets the SolMaxAccounts field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*InstructionQuoteRequest) SetToAddress ¶
func (i *InstructionQuoteRequest) SetToAddress(toAddress *string)
SetToAddress sets the ToAddress field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*InstructionQuoteRequest) SetToChain ¶
func (i *InstructionQuoteRequest) SetToChain(toChain string)
SetToChain sets the ToChain field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*InstructionQuoteRequest) SetToContract ¶
func (i *InstructionQuoteRequest) SetToContract(toContract string)
SetToContract sets the ToContract field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*InstructionQuoteRequest) SetToSymbol ¶
func (i *InstructionQuoteRequest) SetToSymbol(toSymbol *string)
SetToSymbol sets the ToSymbol field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*InstructionQuoteRequest) SetTxOrigin ¶
func (i *InstructionQuoteRequest) SetTxOrigin(txOrigin *string)
SetTxOrigin sets the TxOrigin field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*InstructionQuoteRequest) UnmarshalJSON ¶
func (i *InstructionQuoteRequest) UnmarshalJSON(data []byte) error
type InstructionQuoteResponse ¶
type InstructionQuoteResponse struct {
// Business data
Data *InstructionQuoteResponseData `json:"data,omitempty" url:"data,omitempty"`
// 0 indicates success, 1 indicates failure
Status *int `json:"status,omitempty" url:"status,omitempty"`
// Business error code; 0 indicates success
ErrorCode *int `json:"error_code,omitempty" url:"error_code,omitempty"`
Msg *string `json:"msg,omitempty" url:"msg,omitempty"`
Title *string `json:"title,omitempty" url:"title,omitempty"`
Timestamp *int64 `json:"timestamp,omitempty" url:"timestamp,omitempty"`
Trace *string `json:"trace,omitempty" url:"trace,omitempty"`
// contains filtered or unexported fields
}
func (*InstructionQuoteResponse) GetData ¶
func (i *InstructionQuoteResponse) GetData() *InstructionQuoteResponseData
func (*InstructionQuoteResponse) GetErrorCode ¶
func (i *InstructionQuoteResponse) GetErrorCode() *int
func (*InstructionQuoteResponse) GetExtraProperties ¶
func (i *InstructionQuoteResponse) GetExtraProperties() map[string]interface{}
func (*InstructionQuoteResponse) GetMsg ¶
func (i *InstructionQuoteResponse) GetMsg() *string
func (*InstructionQuoteResponse) GetStatus ¶
func (i *InstructionQuoteResponse) GetStatus() *int
func (*InstructionQuoteResponse) GetTimestamp ¶
func (i *InstructionQuoteResponse) GetTimestamp() *int64
func (*InstructionQuoteResponse) GetTitle ¶
func (i *InstructionQuoteResponse) GetTitle() *string
func (*InstructionQuoteResponse) GetTrace ¶
func (i *InstructionQuoteResponse) GetTrace() *string
func (*InstructionQuoteResponse) MarshalJSON ¶
func (i *InstructionQuoteResponse) MarshalJSON() ([]byte, error)
func (*InstructionQuoteResponse) SetData ¶
func (i *InstructionQuoteResponse) SetData(data *InstructionQuoteResponseData)
SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*InstructionQuoteResponse) SetErrorCode ¶
func (i *InstructionQuoteResponse) SetErrorCode(errorCode *int)
SetErrorCode sets the ErrorCode field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*InstructionQuoteResponse) SetMsg ¶
func (i *InstructionQuoteResponse) SetMsg(msg *string)
SetMsg sets the Msg field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*InstructionQuoteResponse) SetStatus ¶
func (i *InstructionQuoteResponse) SetStatus(status *int)
SetStatus sets the Status field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*InstructionQuoteResponse) SetTimestamp ¶
func (i *InstructionQuoteResponse) SetTimestamp(timestamp *int64)
SetTimestamp sets the Timestamp field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*InstructionQuoteResponse) SetTitle ¶
func (i *InstructionQuoteResponse) SetTitle(title *string)
SetTitle sets the Title field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*InstructionQuoteResponse) SetTrace ¶
func (i *InstructionQuoteResponse) SetTrace(trace *string)
SetTrace sets the Trace field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*InstructionQuoteResponse) String ¶
func (i *InstructionQuoteResponse) String() string
func (*InstructionQuoteResponse) UnmarshalJSON ¶
func (i *InstructionQuoteResponse) UnmarshalJSON(data []byte) error
type InstructionQuoteResponseData ¶
type InstructionQuoteResponseData struct {
// Output amount
ToAmount *string `json:"toAmount,omitempty" url:"toAmount,omitempty"`
// Source name
Market *string `json:"market,omitempty" url:"market,omitempty"`
// Whether the estimated transaction would revert
EstimateRevert *bool `json:"estimateRevert,omitempty" url:"estimateRevert,omitempty"`
Slippage *string `json:"slippage,omitempty" url:"slippage,omitempty"`
// SOL compute unit consumption
ComputeUnits *float64 `json:"computeUnits,omitempty" url:"computeUnits,omitempty"`
// Estimated gas limit
GasLimit *float64 `json:"gasLimit,omitempty" url:"gasLimit,omitempty"`
// contains filtered or unexported fields
}
func (*InstructionQuoteResponseData) GetComputeUnits ¶
func (i *InstructionQuoteResponseData) GetComputeUnits() *float64
func (*InstructionQuoteResponseData) GetEstimateRevert ¶
func (i *InstructionQuoteResponseData) GetEstimateRevert() *bool
func (*InstructionQuoteResponseData) GetExtraProperties ¶
func (i *InstructionQuoteResponseData) GetExtraProperties() map[string]interface{}
func (*InstructionQuoteResponseData) GetGasLimit ¶
func (i *InstructionQuoteResponseData) GetGasLimit() *float64
func (*InstructionQuoteResponseData) GetMarket ¶
func (i *InstructionQuoteResponseData) GetMarket() *string
func (*InstructionQuoteResponseData) GetSlippage ¶
func (i *InstructionQuoteResponseData) GetSlippage() *string
func (*InstructionQuoteResponseData) GetToAmount ¶
func (i *InstructionQuoteResponseData) GetToAmount() *string
func (*InstructionQuoteResponseData) MarshalJSON ¶
func (i *InstructionQuoteResponseData) MarshalJSON() ([]byte, error)
func (*InstructionQuoteResponseData) SetComputeUnits ¶
func (i *InstructionQuoteResponseData) SetComputeUnits(computeUnits *float64)
SetComputeUnits sets the ComputeUnits field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*InstructionQuoteResponseData) SetEstimateRevert ¶
func (i *InstructionQuoteResponseData) SetEstimateRevert(estimateRevert *bool)
SetEstimateRevert sets the EstimateRevert field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*InstructionQuoteResponseData) SetGasLimit ¶
func (i *InstructionQuoteResponseData) SetGasLimit(gasLimit *float64)
SetGasLimit sets the GasLimit field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*InstructionQuoteResponseData) SetMarket ¶
func (i *InstructionQuoteResponseData) SetMarket(market *string)
SetMarket sets the Market field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*InstructionQuoteResponseData) SetSlippage ¶
func (i *InstructionQuoteResponseData) SetSlippage(slippage *string)
SetSlippage sets the Slippage field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*InstructionQuoteResponseData) SetToAmount ¶
func (i *InstructionQuoteResponseData) SetToAmount(toAmount *string)
SetToAmount sets the ToAmount field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*InstructionQuoteResponseData) String ¶
func (i *InstructionQuoteResponseData) String() string
func (*InstructionQuoteResponseData) UnmarshalJSON ¶
func (i *InstructionQuoteResponseData) UnmarshalJSON(data []byte) error
type InstructionSendRequest ¶
type InstructionSendRequest struct {
Chain string `json:"chain" url:"-"`
Txs []*InstructionSendRequestTxsItem `json:"txs" url:"-"`
// contains filtered or unexported fields
}
func (*InstructionSendRequest) MarshalJSON ¶
func (i *InstructionSendRequest) MarshalJSON() ([]byte, error)
func (*InstructionSendRequest) SetChain ¶
func (i *InstructionSendRequest) SetChain(chain string)
SetChain sets the Chain field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*InstructionSendRequest) SetTxs ¶
func (i *InstructionSendRequest) SetTxs(txs []*InstructionSendRequestTxsItem)
SetTxs sets the Txs field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*InstructionSendRequest) UnmarshalJSON ¶
func (i *InstructionSendRequest) UnmarshalJSON(data []byte) error
type InstructionSendRequestTxsItem ¶
type InstructionSendRequestTxsItem struct {
ID string `json:"id" url:"id"`
Chain string `json:"chain" url:"chain"`
RawTx string `json:"rawTx" url:"rawTx"`
From string `json:"from" url:"from"`
Nonce float64 `json:"nonce" url:"nonce"`
Provider *string `json:"provider,omitempty" url:"provider,omitempty"`
// contains filtered or unexported fields
}
func (*InstructionSendRequestTxsItem) GetChain ¶
func (i *InstructionSendRequestTxsItem) GetChain() string
func (*InstructionSendRequestTxsItem) GetExtraProperties ¶
func (i *InstructionSendRequestTxsItem) GetExtraProperties() map[string]interface{}
func (*InstructionSendRequestTxsItem) GetFrom ¶
func (i *InstructionSendRequestTxsItem) GetFrom() string
func (*InstructionSendRequestTxsItem) GetID ¶
func (i *InstructionSendRequestTxsItem) GetID() string
func (*InstructionSendRequestTxsItem) GetNonce ¶
func (i *InstructionSendRequestTxsItem) GetNonce() float64
func (*InstructionSendRequestTxsItem) GetProvider ¶
func (i *InstructionSendRequestTxsItem) GetProvider() *string
func (*InstructionSendRequestTxsItem) GetRawTx ¶
func (i *InstructionSendRequestTxsItem) GetRawTx() string
func (*InstructionSendRequestTxsItem) MarshalJSON ¶
func (i *InstructionSendRequestTxsItem) MarshalJSON() ([]byte, error)
func (*InstructionSendRequestTxsItem) SetChain ¶
func (i *InstructionSendRequestTxsItem) SetChain(chain string)
SetChain sets the Chain field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*InstructionSendRequestTxsItem) SetFrom ¶
func (i *InstructionSendRequestTxsItem) SetFrom(from string)
SetFrom sets the From field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*InstructionSendRequestTxsItem) SetID ¶
func (i *InstructionSendRequestTxsItem) SetID(id string)
SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*InstructionSendRequestTxsItem) SetNonce ¶
func (i *InstructionSendRequestTxsItem) SetNonce(nonce float64)
SetNonce sets the Nonce field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*InstructionSendRequestTxsItem) SetProvider ¶
func (i *InstructionSendRequestTxsItem) SetProvider(provider *string)
SetProvider sets the Provider field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*InstructionSendRequestTxsItem) SetRawTx ¶
func (i *InstructionSendRequestTxsItem) SetRawTx(rawTx string)
SetRawTx sets the RawTx field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*InstructionSendRequestTxsItem) String ¶
func (i *InstructionSendRequestTxsItem) String() string
func (*InstructionSendRequestTxsItem) UnmarshalJSON ¶
func (i *InstructionSendRequestTxsItem) UnmarshalJSON(data []byte) error
type InstructionSendResponse ¶
type InstructionSendResponse struct {
// Business data
Data []*InstructionSendResponseDataItem `json:"data,omitempty" url:"data,omitempty"`
// 0 indicates success, 1 indicates failure
Status *int `json:"status,omitempty" url:"status,omitempty"`
// Business error code; 0 indicates success
ErrorCode *int `json:"error_code,omitempty" url:"error_code,omitempty"`
Msg *string `json:"msg,omitempty" url:"msg,omitempty"`
Title *string `json:"title,omitempty" url:"title,omitempty"`
Timestamp *int64 `json:"timestamp,omitempty" url:"timestamp,omitempty"`
Trace *string `json:"trace,omitempty" url:"trace,omitempty"`
// contains filtered or unexported fields
}
func (*InstructionSendResponse) GetData ¶
func (i *InstructionSendResponse) GetData() []*InstructionSendResponseDataItem
func (*InstructionSendResponse) GetErrorCode ¶
func (i *InstructionSendResponse) GetErrorCode() *int
func (*InstructionSendResponse) GetExtraProperties ¶
func (i *InstructionSendResponse) GetExtraProperties() map[string]interface{}
func (*InstructionSendResponse) GetMsg ¶
func (i *InstructionSendResponse) GetMsg() *string
func (*InstructionSendResponse) GetStatus ¶
func (i *InstructionSendResponse) GetStatus() *int
func (*InstructionSendResponse) GetTimestamp ¶
func (i *InstructionSendResponse) GetTimestamp() *int64
func (*InstructionSendResponse) GetTitle ¶
func (i *InstructionSendResponse) GetTitle() *string
func (*InstructionSendResponse) GetTrace ¶
func (i *InstructionSendResponse) GetTrace() *string
func (*InstructionSendResponse) MarshalJSON ¶
func (i *InstructionSendResponse) MarshalJSON() ([]byte, error)
func (*InstructionSendResponse) SetData ¶
func (i *InstructionSendResponse) SetData(data []*InstructionSendResponseDataItem)
SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*InstructionSendResponse) SetErrorCode ¶
func (i *InstructionSendResponse) SetErrorCode(errorCode *int)
SetErrorCode sets the ErrorCode field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*InstructionSendResponse) SetMsg ¶
func (i *InstructionSendResponse) SetMsg(msg *string)
SetMsg sets the Msg field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*InstructionSendResponse) SetStatus ¶
func (i *InstructionSendResponse) SetStatus(status *int)
SetStatus sets the Status field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*InstructionSendResponse) SetTimestamp ¶
func (i *InstructionSendResponse) SetTimestamp(timestamp *int64)
SetTimestamp sets the Timestamp field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*InstructionSendResponse) SetTitle ¶
func (i *InstructionSendResponse) SetTitle(title *string)
SetTitle sets the Title field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*InstructionSendResponse) SetTrace ¶
func (i *InstructionSendResponse) SetTrace(trace *string)
SetTrace sets the Trace field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*InstructionSendResponse) String ¶
func (i *InstructionSendResponse) String() string
func (*InstructionSendResponse) UnmarshalJSON ¶
func (i *InstructionSendResponse) UnmarshalJSON(data []byte) error
type InstructionSendResponseDataItem ¶
type InstructionSendResponseDataItem struct {
// Order ID
ID *string `json:"id,omitempty" url:"id,omitempty"`
TxHash *string `json:"txHash,omitempty" url:"txHash,omitempty"`
// 0 = success
Code *string `json:"code,omitempty" url:"code,omitempty"`
Message *string `json:"message,omitempty" url:"message,omitempty"`
// contains filtered or unexported fields
}
func (*InstructionSendResponseDataItem) GetCode ¶
func (i *InstructionSendResponseDataItem) GetCode() *string
func (*InstructionSendResponseDataItem) GetExtraProperties ¶
func (i *InstructionSendResponseDataItem) GetExtraProperties() map[string]interface{}
func (*InstructionSendResponseDataItem) GetID ¶
func (i *InstructionSendResponseDataItem) GetID() *string
func (*InstructionSendResponseDataItem) GetMessage ¶
func (i *InstructionSendResponseDataItem) GetMessage() *string
func (*InstructionSendResponseDataItem) GetTxHash ¶
func (i *InstructionSendResponseDataItem) GetTxHash() *string
func (*InstructionSendResponseDataItem) MarshalJSON ¶
func (i *InstructionSendResponseDataItem) MarshalJSON() ([]byte, error)
func (*InstructionSendResponseDataItem) SetCode ¶
func (i *InstructionSendResponseDataItem) SetCode(code *string)
SetCode sets the Code field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*InstructionSendResponseDataItem) SetID ¶
func (i *InstructionSendResponseDataItem) SetID(id *string)
SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*InstructionSendResponseDataItem) SetMessage ¶
func (i *InstructionSendResponseDataItem) SetMessage(message *string)
SetMessage sets the Message field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*InstructionSendResponseDataItem) SetTxHash ¶
func (i *InstructionSendResponseDataItem) SetTxHash(txHash *string)
SetTxHash sets the TxHash field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*InstructionSendResponseDataItem) String ¶
func (i *InstructionSendResponseDataItem) String() string
func (*InstructionSendResponseDataItem) UnmarshalJSON ¶
func (i *InstructionSendResponseDataItem) UnmarshalJSON(data []byte) error
type InstructionSwapRequest ¶
type InstructionSwapRequest struct {
FromSymbol *string `json:"fromSymbol,omitempty" url:"-"`
// Source token contract; empty for native token
FromContract string `json:"fromContract" url:"-"`
FromAmount string `json:"fromAmount" url:"-"`
FromChain string `json:"fromChain" url:"-"`
ToSymbol *string `json:"toSymbol,omitempty" url:"-"`
// Target token contract; empty for native token
ToContract string `json:"toContract" url:"-"`
ToChain string `json:"toChain" url:"-"`
// Payer address
FromAddress string `json:"fromAddress" url:"-"`
// Recipient address
ToAddress string `json:"toAddress" url:"-"`
// Percentage (1 = 1%); defaults to the system value
Slippage *float64 `json:"slippage,omitempty" url:"-"`
// Best source from the quote
Market string `json:"market" url:"-"`
// Executor contract; required when the initiator is not fromAddress
ExecutorAddress *string `json:"executorAddress,omitempty" url:"-"`
// Fee payer; defaults to fromAddress (SOL account fee)
FeePayer *string `json:"feePayer,omitempty" url:"-"`
// Seconds; defaults to eth = 300s, others = 120s; maximum 10 minutes
Deadline *float64 `json:"deadline,omitempty" url:"-"`
// Protocol list; defaults to all
Protocols *string `json:"protocols,omitempty" url:"-"`
TxOrigin *string `json:"txOrigin,omitempty" url:"-"`
FeeRate *float64 `json:"feeRate,omitempty" url:"-"`
SolMaxAccounts *string `json:"solMaxAccounts,omitempty" url:"-"`
// Response verbosity mode
RequestMod *InstructionSwapRequestRequestMod `json:"requestMod,omitempty" url:"-"`
// contains filtered or unexported fields
}
func (*InstructionSwapRequest) MarshalJSON ¶
func (i *InstructionSwapRequest) MarshalJSON() ([]byte, error)
func (*InstructionSwapRequest) SetDeadline ¶
func (i *InstructionSwapRequest) SetDeadline(deadline *float64)
SetDeadline sets the Deadline field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*InstructionSwapRequest) SetExecutorAddress ¶
func (i *InstructionSwapRequest) SetExecutorAddress(executorAddress *string)
SetExecutorAddress sets the ExecutorAddress field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*InstructionSwapRequest) SetFeePayer ¶
func (i *InstructionSwapRequest) SetFeePayer(feePayer *string)
SetFeePayer sets the FeePayer field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*InstructionSwapRequest) SetFeeRate ¶
func (i *InstructionSwapRequest) SetFeeRate(feeRate *float64)
SetFeeRate sets the FeeRate field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*InstructionSwapRequest) SetFromAddress ¶
func (i *InstructionSwapRequest) SetFromAddress(fromAddress string)
SetFromAddress sets the FromAddress field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*InstructionSwapRequest) SetFromAmount ¶
func (i *InstructionSwapRequest) SetFromAmount(fromAmount string)
SetFromAmount sets the FromAmount field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*InstructionSwapRequest) SetFromChain ¶
func (i *InstructionSwapRequest) SetFromChain(fromChain string)
SetFromChain sets the FromChain field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*InstructionSwapRequest) SetFromContract ¶
func (i *InstructionSwapRequest) SetFromContract(fromContract string)
SetFromContract sets the FromContract field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*InstructionSwapRequest) SetFromSymbol ¶
func (i *InstructionSwapRequest) SetFromSymbol(fromSymbol *string)
SetFromSymbol sets the FromSymbol field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*InstructionSwapRequest) SetMarket ¶
func (i *InstructionSwapRequest) SetMarket(market string)
SetMarket sets the Market field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*InstructionSwapRequest) SetProtocols ¶
func (i *InstructionSwapRequest) SetProtocols(protocols *string)
SetProtocols sets the Protocols field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*InstructionSwapRequest) SetRequestMod ¶
func (i *InstructionSwapRequest) SetRequestMod(requestMod *InstructionSwapRequestRequestMod)
SetRequestMod sets the RequestMod field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*InstructionSwapRequest) SetSlippage ¶
func (i *InstructionSwapRequest) SetSlippage(slippage *float64)
SetSlippage sets the Slippage field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*InstructionSwapRequest) SetSolMaxAccounts ¶
func (i *InstructionSwapRequest) SetSolMaxAccounts(solMaxAccounts *string)
SetSolMaxAccounts sets the SolMaxAccounts field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*InstructionSwapRequest) SetToAddress ¶
func (i *InstructionSwapRequest) SetToAddress(toAddress string)
SetToAddress sets the ToAddress field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*InstructionSwapRequest) SetToChain ¶
func (i *InstructionSwapRequest) SetToChain(toChain string)
SetToChain sets the ToChain field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*InstructionSwapRequest) SetToContract ¶
func (i *InstructionSwapRequest) SetToContract(toContract string)
SetToContract sets the ToContract field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*InstructionSwapRequest) SetToSymbol ¶
func (i *InstructionSwapRequest) SetToSymbol(toSymbol *string)
SetToSymbol sets the ToSymbol field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*InstructionSwapRequest) SetTxOrigin ¶
func (i *InstructionSwapRequest) SetTxOrigin(txOrigin *string)
SetTxOrigin sets the TxOrigin field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*InstructionSwapRequest) UnmarshalJSON ¶
func (i *InstructionSwapRequest) UnmarshalJSON(data []byte) error
type InstructionSwapRequestRequestMod ¶
type InstructionSwapRequestRequestMod string
Response verbosity mode
const ( InstructionSwapRequestRequestModSimple InstructionSwapRequestRequestMod = "simple" InstructionSwapRequestRequestModRich InstructionSwapRequestRequestMod = "rich" )
func NewInstructionSwapRequestRequestModFromString ¶
func NewInstructionSwapRequestRequestModFromString(s string) (InstructionSwapRequestRequestMod, error)
func (InstructionSwapRequestRequestMod) Ptr ¶
func (i InstructionSwapRequestRequestMod) Ptr() *InstructionSwapRequestRequestMod
type InstructionSwapResponse ¶
type InstructionSwapResponse struct {
// When requestMod=rich, additional fields such as outAmount, minAmount, priceImpact, routePath, gasFee, swapFee, and swapTransaction are also returned
Data *InstructionSwapResponseData `json:"data,omitempty" url:"data,omitempty"`
// 0 indicates success, 1 indicates failure
Status *int `json:"status,omitempty" url:"status,omitempty"`
// Business error code; 0 indicates success
ErrorCode *int `json:"error_code,omitempty" url:"error_code,omitempty"`
Msg *string `json:"msg,omitempty" url:"msg,omitempty"`
Title *string `json:"title,omitempty" url:"title,omitempty"`
Timestamp *int64 `json:"timestamp,omitempty" url:"timestamp,omitempty"`
Trace *string `json:"trace,omitempty" url:"trace,omitempty"`
// contains filtered or unexported fields
}
func (*InstructionSwapResponse) GetData ¶
func (i *InstructionSwapResponse) GetData() *InstructionSwapResponseData
func (*InstructionSwapResponse) GetErrorCode ¶
func (i *InstructionSwapResponse) GetErrorCode() *int
func (*InstructionSwapResponse) GetExtraProperties ¶
func (i *InstructionSwapResponse) GetExtraProperties() map[string]interface{}
func (*InstructionSwapResponse) GetMsg ¶
func (i *InstructionSwapResponse) GetMsg() *string
func (*InstructionSwapResponse) GetStatus ¶
func (i *InstructionSwapResponse) GetStatus() *int
func (*InstructionSwapResponse) GetTimestamp ¶
func (i *InstructionSwapResponse) GetTimestamp() *int64
func (*InstructionSwapResponse) GetTitle ¶
func (i *InstructionSwapResponse) GetTitle() *string
func (*InstructionSwapResponse) GetTrace ¶
func (i *InstructionSwapResponse) GetTrace() *string
func (*InstructionSwapResponse) MarshalJSON ¶
func (i *InstructionSwapResponse) MarshalJSON() ([]byte, error)
func (*InstructionSwapResponse) SetData ¶
func (i *InstructionSwapResponse) SetData(data *InstructionSwapResponseData)
SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*InstructionSwapResponse) SetErrorCode ¶
func (i *InstructionSwapResponse) SetErrorCode(errorCode *int)
SetErrorCode sets the ErrorCode field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*InstructionSwapResponse) SetMsg ¶
func (i *InstructionSwapResponse) SetMsg(msg *string)
SetMsg sets the Msg field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*InstructionSwapResponse) SetStatus ¶
func (i *InstructionSwapResponse) SetStatus(status *int)
SetStatus sets the Status field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*InstructionSwapResponse) SetTimestamp ¶
func (i *InstructionSwapResponse) SetTimestamp(timestamp *int64)
SetTimestamp sets the Timestamp field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*InstructionSwapResponse) SetTitle ¶
func (i *InstructionSwapResponse) SetTitle(title *string)
SetTitle sets the Title field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*InstructionSwapResponse) SetTrace ¶
func (i *InstructionSwapResponse) SetTrace(trace *string)
SetTrace sets the Trace field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*InstructionSwapResponse) String ¶
func (i *InstructionSwapResponse) String() string
func (*InstructionSwapResponse) UnmarshalJSON ¶
func (i *InstructionSwapResponse) UnmarshalJSON(data []byte) error
type InstructionSwapResponseData ¶
type InstructionSwapResponseData struct {
// Order ID
ID *string `json:"id,omitempty" url:"id,omitempty"`
Market *string `json:"market,omitempty" url:"market,omitempty"`
// Contract (EVM only)
Contract *string `json:"contract,omitempty" url:"contract,omitempty"`
Calldata *string `json:"calldata,omitempty" url:"calldata,omitempty"`
// Timeout (seconds)
Deadline *float64 `json:"deadline,omitempty" url:"deadline,omitempty"`
// SOL compute unit consumption
ComputeUnits *float64 `json:"computeUnits,omitempty" url:"computeUnits,omitempty"`
// SOL only: ALT pubkeys
AddressLookupTableAccount []string `json:"addressLookupTableAccount,omitempty" url:"addressLookupTableAccount,omitempty"`
// SOL only: instruction list
InstructionLists []map[string]any `json:"instructionLists,omitempty" url:"instructionLists,omitempty"`
// contains filtered or unexported fields
}
func (*InstructionSwapResponseData) GetAddressLookupTableAccount ¶
func (i *InstructionSwapResponseData) GetAddressLookupTableAccount() []string
func (*InstructionSwapResponseData) GetCalldata ¶
func (i *InstructionSwapResponseData) GetCalldata() *string
func (*InstructionSwapResponseData) GetComputeUnits ¶
func (i *InstructionSwapResponseData) GetComputeUnits() *float64
func (*InstructionSwapResponseData) GetContract ¶
func (i *InstructionSwapResponseData) GetContract() *string
func (*InstructionSwapResponseData) GetDeadline ¶
func (i *InstructionSwapResponseData) GetDeadline() *float64
func (*InstructionSwapResponseData) GetExtraProperties ¶
func (i *InstructionSwapResponseData) GetExtraProperties() map[string]interface{}
func (*InstructionSwapResponseData) GetID ¶
func (i *InstructionSwapResponseData) GetID() *string
func (*InstructionSwapResponseData) GetInstructionLists ¶
func (i *InstructionSwapResponseData) GetInstructionLists() []map[string]any
func (*InstructionSwapResponseData) GetMarket ¶
func (i *InstructionSwapResponseData) GetMarket() *string
func (*InstructionSwapResponseData) MarshalJSON ¶
func (i *InstructionSwapResponseData) MarshalJSON() ([]byte, error)
func (*InstructionSwapResponseData) SetAddressLookupTableAccount ¶
func (i *InstructionSwapResponseData) SetAddressLookupTableAccount(addressLookupTableAccount []string)
SetAddressLookupTableAccount sets the AddressLookupTableAccount field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*InstructionSwapResponseData) SetCalldata ¶
func (i *InstructionSwapResponseData) SetCalldata(calldata *string)
SetCalldata sets the Calldata field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*InstructionSwapResponseData) SetComputeUnits ¶
func (i *InstructionSwapResponseData) SetComputeUnits(computeUnits *float64)
SetComputeUnits sets the ComputeUnits field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*InstructionSwapResponseData) SetContract ¶
func (i *InstructionSwapResponseData) SetContract(contract *string)
SetContract sets the Contract field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*InstructionSwapResponseData) SetDeadline ¶
func (i *InstructionSwapResponseData) SetDeadline(deadline *float64)
SetDeadline sets the Deadline field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*InstructionSwapResponseData) SetID ¶
func (i *InstructionSwapResponseData) SetID(id *string)
SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*InstructionSwapResponseData) SetInstructionLists ¶
func (i *InstructionSwapResponseData) SetInstructionLists(instructionLists []map[string]any)
SetInstructionLists sets the InstructionLists field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*InstructionSwapResponseData) SetMarket ¶
func (i *InstructionSwapResponseData) SetMarket(market *string)
SetMarket sets the Market field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*InstructionSwapResponseData) String ¶
func (i *InstructionSwapResponseData) String() string
func (*InstructionSwapResponseData) UnmarshalJSON ¶
func (i *InstructionSwapResponseData) UnmarshalJSON(data []byte) error
type InstructionSwaprRequest ¶
type InstructionSwaprRequest struct {
// e.g. sol, eth, bnb, base
FromChain string `json:"fromChain" url:"-"`
// Source token; empty for native token
FromContract string `json:"fromContract" url:"-"`
// Target token; empty for native token
ToContract string `json:"toContract" url:"-"`
// Meaning depends on requestMode
Amount string `json:"amount" url:"-"`
// exactIn = compute output from a given input; minAmountOut = compute the required input from a desired output
RequestMode InstructionSwaprRequestRequestMode `json:"requestMode" url:"-"`
// Payer address
FromAddress string `json:"fromAddress" url:"-"`
// Recipient address
ToAddress string `json:"toAddress" url:"-"`
// Percentage (0.5 = 0.5%)
Slippage *string `json:"slippage,omitempty" url:"-"`
// Per-mille; 0 or 0.001–0.2
FeeRate float64 `json:"feeRate" url:"-"`
// eth = 600s, others = 300s; maximum 10 minutes
Deadline *int `json:"deadline,omitempty" url:"-"`
// Required when the initiator is not fromAddress
ExecutorAddress *string `json:"executorAddress,omitempty" url:"-"`
// contains filtered or unexported fields
}
func (*InstructionSwaprRequest) MarshalJSON ¶
func (i *InstructionSwaprRequest) MarshalJSON() ([]byte, error)
func (*InstructionSwaprRequest) SetAmount ¶
func (i *InstructionSwaprRequest) SetAmount(amount string)
SetAmount sets the Amount field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*InstructionSwaprRequest) SetDeadline ¶
func (i *InstructionSwaprRequest) SetDeadline(deadline *int)
SetDeadline sets the Deadline field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*InstructionSwaprRequest) SetExecutorAddress ¶
func (i *InstructionSwaprRequest) SetExecutorAddress(executorAddress *string)
SetExecutorAddress sets the ExecutorAddress field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*InstructionSwaprRequest) SetFeeRate ¶
func (i *InstructionSwaprRequest) SetFeeRate(feeRate float64)
SetFeeRate sets the FeeRate field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*InstructionSwaprRequest) SetFromAddress ¶
func (i *InstructionSwaprRequest) SetFromAddress(fromAddress string)
SetFromAddress sets the FromAddress field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*InstructionSwaprRequest) SetFromChain ¶
func (i *InstructionSwaprRequest) SetFromChain(fromChain string)
SetFromChain sets the FromChain field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*InstructionSwaprRequest) SetFromContract ¶
func (i *InstructionSwaprRequest) SetFromContract(fromContract string)
SetFromContract sets the FromContract field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*InstructionSwaprRequest) SetRequestMode ¶
func (i *InstructionSwaprRequest) SetRequestMode(requestMode InstructionSwaprRequestRequestMode)
SetRequestMode sets the RequestMode field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*InstructionSwaprRequest) SetSlippage ¶
func (i *InstructionSwaprRequest) SetSlippage(slippage *string)
SetSlippage sets the Slippage field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*InstructionSwaprRequest) SetToAddress ¶
func (i *InstructionSwaprRequest) SetToAddress(toAddress string)
SetToAddress sets the ToAddress field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*InstructionSwaprRequest) SetToContract ¶
func (i *InstructionSwaprRequest) SetToContract(toContract string)
SetToContract sets the ToContract field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*InstructionSwaprRequest) UnmarshalJSON ¶
func (i *InstructionSwaprRequest) UnmarshalJSON(data []byte) error
type InstructionSwaprRequestRequestMode ¶
type InstructionSwaprRequestRequestMode string
exactIn = compute output from a given input; minAmountOut = compute the required input from a desired output
const ( InstructionSwaprRequestRequestModeExactIn InstructionSwaprRequestRequestMode = "exactIn" InstructionSwaprRequestRequestModeMinAmountOut InstructionSwaprRequestRequestMode = "minAmountOut" )
func NewInstructionSwaprRequestRequestModeFromString ¶
func NewInstructionSwaprRequestRequestModeFromString(s string) (InstructionSwaprRequestRequestMode, error)
func (InstructionSwaprRequestRequestMode) Ptr ¶
func (i InstructionSwaprRequestRequestMode) Ptr() *InstructionSwaprRequestRequestMode
type InstructionSwaprResponse ¶
type InstructionSwaprResponse struct {
// Business data
Data *InstructionSwaprResponseData `json:"data,omitempty" url:"data,omitempty"`
// 0 indicates success, 1 indicates failure
Status *int `json:"status,omitempty" url:"status,omitempty"`
// Business error code; 0 indicates success
ErrorCode *int `json:"error_code,omitempty" url:"error_code,omitempty"`
Msg *string `json:"msg,omitempty" url:"msg,omitempty"`
Title *string `json:"title,omitempty" url:"title,omitempty"`
Timestamp *int64 `json:"timestamp,omitempty" url:"timestamp,omitempty"`
Trace *string `json:"trace,omitempty" url:"trace,omitempty"`
// contains filtered or unexported fields
}
func (*InstructionSwaprResponse) GetData ¶
func (i *InstructionSwaprResponse) GetData() *InstructionSwaprResponseData
func (*InstructionSwaprResponse) GetErrorCode ¶
func (i *InstructionSwaprResponse) GetErrorCode() *int
func (*InstructionSwaprResponse) GetExtraProperties ¶
func (i *InstructionSwaprResponse) GetExtraProperties() map[string]interface{}
func (*InstructionSwaprResponse) GetMsg ¶
func (i *InstructionSwaprResponse) GetMsg() *string
func (*InstructionSwaprResponse) GetStatus ¶
func (i *InstructionSwaprResponse) GetStatus() *int
func (*InstructionSwaprResponse) GetTimestamp ¶
func (i *InstructionSwaprResponse) GetTimestamp() *int64
func (*InstructionSwaprResponse) GetTitle ¶
func (i *InstructionSwaprResponse) GetTitle() *string
func (*InstructionSwaprResponse) GetTrace ¶
func (i *InstructionSwaprResponse) GetTrace() *string
func (*InstructionSwaprResponse) MarshalJSON ¶
func (i *InstructionSwaprResponse) MarshalJSON() ([]byte, error)
func (*InstructionSwaprResponse) SetData ¶
func (i *InstructionSwaprResponse) SetData(data *InstructionSwaprResponseData)
SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*InstructionSwaprResponse) SetErrorCode ¶
func (i *InstructionSwaprResponse) SetErrorCode(errorCode *int)
SetErrorCode sets the ErrorCode field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*InstructionSwaprResponse) SetMsg ¶
func (i *InstructionSwaprResponse) SetMsg(msg *string)
SetMsg sets the Msg field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*InstructionSwaprResponse) SetStatus ¶
func (i *InstructionSwaprResponse) SetStatus(status *int)
SetStatus sets the Status field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*InstructionSwaprResponse) SetTimestamp ¶
func (i *InstructionSwaprResponse) SetTimestamp(timestamp *int64)
SetTimestamp sets the Timestamp field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*InstructionSwaprResponse) SetTitle ¶
func (i *InstructionSwaprResponse) SetTitle(title *string)
SetTitle sets the Title field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*InstructionSwaprResponse) SetTrace ¶
func (i *InstructionSwaprResponse) SetTrace(trace *string)
SetTrace sets the Trace field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*InstructionSwaprResponse) String ¶
func (i *InstructionSwaprResponse) String() string
func (*InstructionSwaprResponse) UnmarshalJSON ¶
func (i *InstructionSwaprResponse) UnmarshalJSON(data []byte) error
type InstructionSwaprResponseData ¶
type InstructionSwaprResponseData struct {
ID *string `json:"id,omitempty" url:"id,omitempty"`
AmountIn *string `json:"amountIn,omitempty" url:"amountIn,omitempty"`
ExpectedAmountOut *string `json:"expectedAmountOut,omitempty" url:"expectedAmountOut,omitempty"`
MinAmountOut *string `json:"minAmountOut,omitempty" url:"minAmountOut,omitempty"`
PriceImpact *string `json:"priceImpact,omitempty" url:"priceImpact,omitempty"`
RecommendSlippage *float64 `json:"recommendSlippage,omitempty" url:"recommendSlippage,omitempty"`
// Expiry in unix seconds
ExpiresAt *float64 `json:"expiresAt,omitempty" url:"expiresAt,omitempty"`
Market *string `json:"market,omitempty" url:"market,omitempty"`
Txs []*InstructionSwaprResponseDataTxsItem `json:"txs,omitempty" url:"txs,omitempty"`
Fee *InstructionSwaprResponseDataFee `json:"fee,omitempty" url:"fee,omitempty"`
// contains filtered or unexported fields
}
func (*InstructionSwaprResponseData) GetAmountIn ¶
func (i *InstructionSwaprResponseData) GetAmountIn() *string
func (*InstructionSwaprResponseData) GetExpectedAmountOut ¶
func (i *InstructionSwaprResponseData) GetExpectedAmountOut() *string
func (*InstructionSwaprResponseData) GetExpiresAt ¶
func (i *InstructionSwaprResponseData) GetExpiresAt() *float64
func (*InstructionSwaprResponseData) GetExtraProperties ¶
func (i *InstructionSwaprResponseData) GetExtraProperties() map[string]interface{}
func (*InstructionSwaprResponseData) GetFee ¶
func (i *InstructionSwaprResponseData) GetFee() *InstructionSwaprResponseDataFee
func (*InstructionSwaprResponseData) GetID ¶
func (i *InstructionSwaprResponseData) GetID() *string
func (*InstructionSwaprResponseData) GetMarket ¶
func (i *InstructionSwaprResponseData) GetMarket() *string
func (*InstructionSwaprResponseData) GetMinAmountOut ¶
func (i *InstructionSwaprResponseData) GetMinAmountOut() *string
func (*InstructionSwaprResponseData) GetPriceImpact ¶
func (i *InstructionSwaprResponseData) GetPriceImpact() *string
func (*InstructionSwaprResponseData) GetRecommendSlippage ¶
func (i *InstructionSwaprResponseData) GetRecommendSlippage() *float64
func (*InstructionSwaprResponseData) GetTxs ¶
func (i *InstructionSwaprResponseData) GetTxs() []*InstructionSwaprResponseDataTxsItem
func (*InstructionSwaprResponseData) MarshalJSON ¶
func (i *InstructionSwaprResponseData) MarshalJSON() ([]byte, error)
func (*InstructionSwaprResponseData) SetAmountIn ¶
func (i *InstructionSwaprResponseData) SetAmountIn(amountIn *string)
SetAmountIn sets the AmountIn field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*InstructionSwaprResponseData) SetExpectedAmountOut ¶
func (i *InstructionSwaprResponseData) SetExpectedAmountOut(expectedAmountOut *string)
SetExpectedAmountOut sets the ExpectedAmountOut field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*InstructionSwaprResponseData) SetExpiresAt ¶
func (i *InstructionSwaprResponseData) SetExpiresAt(expiresAt *float64)
SetExpiresAt sets the ExpiresAt field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*InstructionSwaprResponseData) SetFee ¶
func (i *InstructionSwaprResponseData) SetFee(fee *InstructionSwaprResponseDataFee)
SetFee sets the Fee field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*InstructionSwaprResponseData) SetID ¶
func (i *InstructionSwaprResponseData) SetID(id *string)
SetID sets the ID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*InstructionSwaprResponseData) SetMarket ¶
func (i *InstructionSwaprResponseData) SetMarket(market *string)
SetMarket sets the Market field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*InstructionSwaprResponseData) SetMinAmountOut ¶
func (i *InstructionSwaprResponseData) SetMinAmountOut(minAmountOut *string)
SetMinAmountOut sets the MinAmountOut field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*InstructionSwaprResponseData) SetPriceImpact ¶
func (i *InstructionSwaprResponseData) SetPriceImpact(priceImpact *string)
SetPriceImpact sets the PriceImpact field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*InstructionSwaprResponseData) SetRecommendSlippage ¶
func (i *InstructionSwaprResponseData) SetRecommendSlippage(recommendSlippage *float64)
SetRecommendSlippage sets the RecommendSlippage field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*InstructionSwaprResponseData) SetTxs ¶
func (i *InstructionSwaprResponseData) SetTxs(txs []*InstructionSwaprResponseDataTxsItem)
SetTxs sets the Txs field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*InstructionSwaprResponseData) String ¶
func (i *InstructionSwaprResponseData) String() string
func (*InstructionSwaprResponseData) UnmarshalJSON ¶
func (i *InstructionSwaprResponseData) UnmarshalJSON(data []byte) error
type InstructionSwaprResponseDataFee ¶
type InstructionSwaprResponseDataFee struct {
TotalAmountInUsd *string `json:"totalAmountInUsd,omitempty" url:"totalAmountInUsd,omitempty"`
PlatformFee *InstructionSwaprResponseDataFeePlatformFee `json:"platformFee,omitempty" url:"platformFee,omitempty"`
// contains filtered or unexported fields
}
func (*InstructionSwaprResponseDataFee) GetExtraProperties ¶
func (i *InstructionSwaprResponseDataFee) GetExtraProperties() map[string]interface{}
func (*InstructionSwaprResponseDataFee) GetPlatformFee ¶
func (i *InstructionSwaprResponseDataFee) GetPlatformFee() *InstructionSwaprResponseDataFeePlatformFee
func (*InstructionSwaprResponseDataFee) GetTotalAmountInUsd ¶
func (i *InstructionSwaprResponseDataFee) GetTotalAmountInUsd() *string
func (*InstructionSwaprResponseDataFee) MarshalJSON ¶
func (i *InstructionSwaprResponseDataFee) MarshalJSON() ([]byte, error)
func (*InstructionSwaprResponseDataFee) SetPlatformFee ¶
func (i *InstructionSwaprResponseDataFee) SetPlatformFee(platformFee *InstructionSwaprResponseDataFeePlatformFee)
SetPlatformFee sets the PlatformFee field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*InstructionSwaprResponseDataFee) SetTotalAmountInUsd ¶
func (i *InstructionSwaprResponseDataFee) SetTotalAmountInUsd(totalAmountInUsd *string)
SetTotalAmountInUsd sets the TotalAmountInUsd field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*InstructionSwaprResponseDataFee) String ¶
func (i *InstructionSwaprResponseDataFee) String() string
func (*InstructionSwaprResponseDataFee) UnmarshalJSON ¶
func (i *InstructionSwaprResponseDataFee) UnmarshalJSON(data []byte) error
type InstructionSwaprResponseDataFeePlatformFee ¶
type InstructionSwaprResponseDataFeePlatformFee struct {
AmountInUsd *string `json:"amountInUsd,omitempty" url:"amountInUsd,omitempty"`
Items []map[string]any `json:"items,omitempty" url:"items,omitempty"`
// contains filtered or unexported fields
}
func (*InstructionSwaprResponseDataFeePlatformFee) GetAmountInUsd ¶
func (i *InstructionSwaprResponseDataFeePlatformFee) GetAmountInUsd() *string
func (*InstructionSwaprResponseDataFeePlatformFee) GetExtraProperties ¶
func (i *InstructionSwaprResponseDataFeePlatformFee) GetExtraProperties() map[string]interface{}
func (*InstructionSwaprResponseDataFeePlatformFee) GetItems ¶
func (i *InstructionSwaprResponseDataFeePlatformFee) GetItems() []map[string]any
func (*InstructionSwaprResponseDataFeePlatformFee) MarshalJSON ¶
func (i *InstructionSwaprResponseDataFeePlatformFee) MarshalJSON() ([]byte, error)
func (*InstructionSwaprResponseDataFeePlatformFee) SetAmountInUsd ¶
func (i *InstructionSwaprResponseDataFeePlatformFee) SetAmountInUsd(amountInUsd *string)
SetAmountInUsd sets the AmountInUsd field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*InstructionSwaprResponseDataFeePlatformFee) SetItems ¶
func (i *InstructionSwaprResponseDataFeePlatformFee) SetItems(items []map[string]any)
SetItems sets the Items field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*InstructionSwaprResponseDataFeePlatformFee) String ¶
func (i *InstructionSwaprResponseDataFeePlatformFee) String() string
func (*InstructionSwaprResponseDataFeePlatformFee) UnmarshalJSON ¶
func (i *InstructionSwaprResponseDataFeePlatformFee) UnmarshalJSON(data []byte) error
type InstructionSwaprResponseDataTxsItem ¶
type InstructionSwaprResponseDataTxsItem struct {
ChainID float64 `json:"chainId" url:"chainId"`
To string `json:"to" url:"to"`
Calldata string `json:"calldata" url:"calldata"`
Function string `json:"function" url:"function"`
GasLimit string `json:"gasLimit" url:"gasLimit"`
GasPrice string `json:"gasPrice" url:"gasPrice"`
Nonce float64 `json:"nonce" url:"nonce"`
Value string `json:"value" url:"value"`
// contains filtered or unexported fields
}
func (*InstructionSwaprResponseDataTxsItem) GetCalldata ¶
func (i *InstructionSwaprResponseDataTxsItem) GetCalldata() string
func (*InstructionSwaprResponseDataTxsItem) GetChainID ¶
func (i *InstructionSwaprResponseDataTxsItem) GetChainID() float64
func (*InstructionSwaprResponseDataTxsItem) GetExtraProperties ¶
func (i *InstructionSwaprResponseDataTxsItem) GetExtraProperties() map[string]interface{}
func (*InstructionSwaprResponseDataTxsItem) GetFunction ¶
func (i *InstructionSwaprResponseDataTxsItem) GetFunction() string
func (*InstructionSwaprResponseDataTxsItem) GetGasLimit ¶
func (i *InstructionSwaprResponseDataTxsItem) GetGasLimit() string
func (*InstructionSwaprResponseDataTxsItem) GetGasPrice ¶
func (i *InstructionSwaprResponseDataTxsItem) GetGasPrice() string
func (*InstructionSwaprResponseDataTxsItem) GetNonce ¶
func (i *InstructionSwaprResponseDataTxsItem) GetNonce() float64
func (*InstructionSwaprResponseDataTxsItem) GetTo ¶
func (i *InstructionSwaprResponseDataTxsItem) GetTo() string
func (*InstructionSwaprResponseDataTxsItem) GetValue ¶
func (i *InstructionSwaprResponseDataTxsItem) GetValue() string
func (*InstructionSwaprResponseDataTxsItem) MarshalJSON ¶
func (i *InstructionSwaprResponseDataTxsItem) MarshalJSON() ([]byte, error)
func (*InstructionSwaprResponseDataTxsItem) SetCalldata ¶
func (i *InstructionSwaprResponseDataTxsItem) SetCalldata(calldata string)
SetCalldata sets the Calldata field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*InstructionSwaprResponseDataTxsItem) SetChainID ¶
func (i *InstructionSwaprResponseDataTxsItem) SetChainID(chainID float64)
SetChainID sets the ChainID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*InstructionSwaprResponseDataTxsItem) SetFunction ¶
func (i *InstructionSwaprResponseDataTxsItem) SetFunction(function string)
SetFunction sets the Function field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*InstructionSwaprResponseDataTxsItem) SetGasLimit ¶
func (i *InstructionSwaprResponseDataTxsItem) SetGasLimit(gasLimit string)
SetGasLimit sets the GasLimit field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*InstructionSwaprResponseDataTxsItem) SetGasPrice ¶
func (i *InstructionSwaprResponseDataTxsItem) SetGasPrice(gasPrice string)
SetGasPrice sets the GasPrice field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*InstructionSwaprResponseDataTxsItem) SetNonce ¶
func (i *InstructionSwaprResponseDataTxsItem) SetNonce(nonce float64)
SetNonce sets the Nonce field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*InstructionSwaprResponseDataTxsItem) SetTo ¶
func (i *InstructionSwaprResponseDataTxsItem) SetTo(to string)
SetTo sets the To field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*InstructionSwaprResponseDataTxsItem) SetValue ¶
func (i *InstructionSwaprResponseDataTxsItem) SetValue(value string)
SetValue sets the Value field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*InstructionSwaprResponseDataTxsItem) String ¶
func (i *InstructionSwaprResponseDataTxsItem) String() string
func (*InstructionSwaprResponseDataTxsItem) UnmarshalJSON ¶
func (i *InstructionSwaprResponseDataTxsItem) UnmarshalJSON(data []byte) error
type MarketResponse ¶
type MarketResponse struct {
// 0 indicates success
Status *int `json:"status,omitempty" url:"status,omitempty"`
TraceID *string `json:"traceId,omitempty" url:"traceId,omitempty"`
// Business data
Data any `json:"data,omitempty" url:"data,omitempty"`
// contains filtered or unexported fields
}
func (*MarketResponse) GetData ¶
func (m *MarketResponse) GetData() any
func (*MarketResponse) GetExtraProperties ¶
func (m *MarketResponse) GetExtraProperties() map[string]interface{}
func (*MarketResponse) GetStatus ¶
func (m *MarketResponse) GetStatus() *int
func (*MarketResponse) GetTraceID ¶
func (m *MarketResponse) GetTraceID() *string
func (*MarketResponse) MarshalJSON ¶
func (m *MarketResponse) MarshalJSON() ([]byte, error)
func (*MarketResponse) SetData ¶
func (m *MarketResponse) SetData(data any)
SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*MarketResponse) SetStatus ¶
func (m *MarketResponse) SetStatus(status *int)
SetStatus sets the Status field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*MarketResponse) SetTraceID ¶
func (m *MarketResponse) SetTraceID(traceID *string)
SetTraceID sets the TraceID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*MarketResponse) String ¶
func (m *MarketResponse) String() string
func (*MarketResponse) UnmarshalJSON ¶
func (m *MarketResponse) UnmarshalJSON(data []byte) error
type OrderCheckOrdersFeeRequest ¶
type OrderCheckOrdersFeeRequest struct {
// 1–50 items, each non-empty; duplicates are deduplicated, keeping the first occurrence
OrderIDs []string `json:"orderIds" url:"-"`
// contains filtered or unexported fields
}
func (*OrderCheckOrdersFeeRequest) MarshalJSON ¶
func (o *OrderCheckOrdersFeeRequest) MarshalJSON() ([]byte, error)
func (*OrderCheckOrdersFeeRequest) SetOrderIDs ¶
func (o *OrderCheckOrdersFeeRequest) SetOrderIDs(orderIDs []string)
SetOrderIDs sets the OrderIDs field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*OrderCheckOrdersFeeRequest) UnmarshalJSON ¶
func (o *OrderCheckOrdersFeeRequest) UnmarshalJSON(data []byte) error
type OrderCheckOrdersFeeResponse ¶
type OrderCheckOrdersFeeResponse struct {
// Business data
Data *OrderCheckOrdersFeeResponseData `json:"data,omitempty" url:"data,omitempty"`
// 0 indicates success, 1 indicates failure
Status *int `json:"status,omitempty" url:"status,omitempty"`
// Business error code; 0 indicates success
ErrorCode *int `json:"error_code,omitempty" url:"error_code,omitempty"`
Msg *string `json:"msg,omitempty" url:"msg,omitempty"`
Title *string `json:"title,omitempty" url:"title,omitempty"`
Timestamp *int64 `json:"timestamp,omitempty" url:"timestamp,omitempty"`
Trace *string `json:"trace,omitempty" url:"trace,omitempty"`
// contains filtered or unexported fields
}
func (*OrderCheckOrdersFeeResponse) GetData ¶
func (o *OrderCheckOrdersFeeResponse) GetData() *OrderCheckOrdersFeeResponseData
func (*OrderCheckOrdersFeeResponse) GetErrorCode ¶
func (o *OrderCheckOrdersFeeResponse) GetErrorCode() *int
func (*OrderCheckOrdersFeeResponse) GetExtraProperties ¶
func (o *OrderCheckOrdersFeeResponse) GetExtraProperties() map[string]interface{}
func (*OrderCheckOrdersFeeResponse) GetMsg ¶
func (o *OrderCheckOrdersFeeResponse) GetMsg() *string
func (*OrderCheckOrdersFeeResponse) GetStatus ¶
func (o *OrderCheckOrdersFeeResponse) GetStatus() *int
func (*OrderCheckOrdersFeeResponse) GetTimestamp ¶
func (o *OrderCheckOrdersFeeResponse) GetTimestamp() *int64
func (*OrderCheckOrdersFeeResponse) GetTitle ¶
func (o *OrderCheckOrdersFeeResponse) GetTitle() *string
func (*OrderCheckOrdersFeeResponse) GetTrace ¶
func (o *OrderCheckOrdersFeeResponse) GetTrace() *string
func (*OrderCheckOrdersFeeResponse) MarshalJSON ¶
func (o *OrderCheckOrdersFeeResponse) MarshalJSON() ([]byte, error)
func (*OrderCheckOrdersFeeResponse) SetData ¶
func (o *OrderCheckOrdersFeeResponse) SetData(data *OrderCheckOrdersFeeResponseData)
SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*OrderCheckOrdersFeeResponse) SetErrorCode ¶
func (o *OrderCheckOrdersFeeResponse) SetErrorCode(errorCode *int)
SetErrorCode sets the ErrorCode field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*OrderCheckOrdersFeeResponse) SetMsg ¶
func (o *OrderCheckOrdersFeeResponse) SetMsg(msg *string)
SetMsg sets the Msg field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*OrderCheckOrdersFeeResponse) SetStatus ¶
func (o *OrderCheckOrdersFeeResponse) SetStatus(status *int)
SetStatus sets the Status field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*OrderCheckOrdersFeeResponse) SetTimestamp ¶
func (o *OrderCheckOrdersFeeResponse) SetTimestamp(timestamp *int64)
SetTimestamp sets the Timestamp field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*OrderCheckOrdersFeeResponse) SetTitle ¶
func (o *OrderCheckOrdersFeeResponse) SetTitle(title *string)
SetTitle sets the Title field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*OrderCheckOrdersFeeResponse) SetTrace ¶
func (o *OrderCheckOrdersFeeResponse) SetTrace(trace *string)
SetTrace sets the Trace field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*OrderCheckOrdersFeeResponse) String ¶
func (o *OrderCheckOrdersFeeResponse) String() string
func (*OrderCheckOrdersFeeResponse) UnmarshalJSON ¶
func (o *OrderCheckOrdersFeeResponse) UnmarshalJSON(data []byte) error
type OrderCheckOrdersFeeResponseData ¶
type OrderCheckOrdersFeeResponseData struct {
// Returned in the deduplicated request order
Items []*OrderCheckOrdersFeeResponseDataItemsItem `json:"items,omitempty" url:"items,omitempty"`
// contains filtered or unexported fields
}
func (*OrderCheckOrdersFeeResponseData) GetExtraProperties ¶
func (o *OrderCheckOrdersFeeResponseData) GetExtraProperties() map[string]interface{}
func (*OrderCheckOrdersFeeResponseData) GetItems ¶
func (o *OrderCheckOrdersFeeResponseData) GetItems() []*OrderCheckOrdersFeeResponseDataItemsItem
func (*OrderCheckOrdersFeeResponseData) MarshalJSON ¶
func (o *OrderCheckOrdersFeeResponseData) MarshalJSON() ([]byte, error)
func (*OrderCheckOrdersFeeResponseData) SetItems ¶
func (o *OrderCheckOrdersFeeResponseData) SetItems(items []*OrderCheckOrdersFeeResponseDataItemsItem)
SetItems sets the Items field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*OrderCheckOrdersFeeResponseData) String ¶
func (o *OrderCheckOrdersFeeResponseData) String() string
func (*OrderCheckOrdersFeeResponseData) UnmarshalJSON ¶
func (o *OrderCheckOrdersFeeResponseData) UnmarshalJSON(data []byte) error
type OrderCheckOrdersFeeResponseDataItemsItem ¶
type OrderCheckOrdersFeeResponseDataItemsItem struct {
OrderID *string `json:"orderId,omitempty" url:"orderId,omitempty"`
// Reconciled fee; same structure as the fee in getSwapOrder; null when not ready or no fee applies
Fee *Fee `json:"fee,omitempty" url:"fee,omitempty"`
// contains filtered or unexported fields
}
func (*OrderCheckOrdersFeeResponseDataItemsItem) GetExtraProperties ¶
func (o *OrderCheckOrdersFeeResponseDataItemsItem) GetExtraProperties() map[string]interface{}
func (*OrderCheckOrdersFeeResponseDataItemsItem) GetFee ¶
func (o *OrderCheckOrdersFeeResponseDataItemsItem) GetFee() *Fee
func (*OrderCheckOrdersFeeResponseDataItemsItem) GetOrderID ¶
func (o *OrderCheckOrdersFeeResponseDataItemsItem) GetOrderID() *string
func (*OrderCheckOrdersFeeResponseDataItemsItem) MarshalJSON ¶
func (o *OrderCheckOrdersFeeResponseDataItemsItem) MarshalJSON() ([]byte, error)
func (*OrderCheckOrdersFeeResponseDataItemsItem) SetFee ¶
func (o *OrderCheckOrdersFeeResponseDataItemsItem) SetFee(fee *Fee)
SetFee sets the Fee field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*OrderCheckOrdersFeeResponseDataItemsItem) SetOrderID ¶
func (o *OrderCheckOrdersFeeResponseDataItemsItem) SetOrderID(orderID *string)
SetOrderID sets the OrderID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*OrderCheckOrdersFeeResponseDataItemsItem) String ¶
func (o *OrderCheckOrdersFeeResponseDataItemsItem) String() string
func (*OrderCheckOrdersFeeResponseDataItemsItem) UnmarshalJSON ¶
func (o *OrderCheckOrdersFeeResponseDataItemsItem) UnmarshalJSON(data []byte) error
type OrderGetSwapOrderRequest ¶
type OrderGetSwapOrderRequest struct {
OrderID string `json:"orderId" url:"-"`
// contains filtered or unexported fields
}
func (*OrderGetSwapOrderRequest) MarshalJSON ¶
func (o *OrderGetSwapOrderRequest) MarshalJSON() ([]byte, error)
func (*OrderGetSwapOrderRequest) SetOrderID ¶
func (o *OrderGetSwapOrderRequest) SetOrderID(orderID string)
SetOrderID sets the OrderID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*OrderGetSwapOrderRequest) UnmarshalJSON ¶
func (o *OrderGetSwapOrderRequest) UnmarshalJSON(data []byte) error
type OrderGetSwapOrderResponse ¶
type OrderGetSwapOrderResponse struct {
// Business data
Data *OrderGetSwapOrderResponseData `json:"data,omitempty" url:"data,omitempty"`
// 0 indicates success, 1 indicates failure
Status *int `json:"status,omitempty" url:"status,omitempty"`
// Business error code; 0 indicates success
ErrorCode *int `json:"error_code,omitempty" url:"error_code,omitempty"`
Msg *string `json:"msg,omitempty" url:"msg,omitempty"`
Title *string `json:"title,omitempty" url:"title,omitempty"`
Timestamp *int64 `json:"timestamp,omitempty" url:"timestamp,omitempty"`
Trace *string `json:"trace,omitempty" url:"trace,omitempty"`
// contains filtered or unexported fields
}
func (*OrderGetSwapOrderResponse) GetData ¶
func (o *OrderGetSwapOrderResponse) GetData() *OrderGetSwapOrderResponseData
func (*OrderGetSwapOrderResponse) GetErrorCode ¶
func (o *OrderGetSwapOrderResponse) GetErrorCode() *int
func (*OrderGetSwapOrderResponse) GetExtraProperties ¶
func (o *OrderGetSwapOrderResponse) GetExtraProperties() map[string]interface{}
func (*OrderGetSwapOrderResponse) GetMsg ¶
func (o *OrderGetSwapOrderResponse) GetMsg() *string
func (*OrderGetSwapOrderResponse) GetStatus ¶
func (o *OrderGetSwapOrderResponse) GetStatus() *int
func (*OrderGetSwapOrderResponse) GetTimestamp ¶
func (o *OrderGetSwapOrderResponse) GetTimestamp() *int64
func (*OrderGetSwapOrderResponse) GetTitle ¶
func (o *OrderGetSwapOrderResponse) GetTitle() *string
func (*OrderGetSwapOrderResponse) GetTrace ¶
func (o *OrderGetSwapOrderResponse) GetTrace() *string
func (*OrderGetSwapOrderResponse) MarshalJSON ¶
func (o *OrderGetSwapOrderResponse) MarshalJSON() ([]byte, error)
func (*OrderGetSwapOrderResponse) SetData ¶
func (o *OrderGetSwapOrderResponse) SetData(data *OrderGetSwapOrderResponseData)
SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*OrderGetSwapOrderResponse) SetErrorCode ¶
func (o *OrderGetSwapOrderResponse) SetErrorCode(errorCode *int)
SetErrorCode sets the ErrorCode field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*OrderGetSwapOrderResponse) SetMsg ¶
func (o *OrderGetSwapOrderResponse) SetMsg(msg *string)
SetMsg sets the Msg field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*OrderGetSwapOrderResponse) SetStatus ¶
func (o *OrderGetSwapOrderResponse) SetStatus(status *int)
SetStatus sets the Status field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*OrderGetSwapOrderResponse) SetTimestamp ¶
func (o *OrderGetSwapOrderResponse) SetTimestamp(timestamp *int64)
SetTimestamp sets the Timestamp field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*OrderGetSwapOrderResponse) SetTitle ¶
func (o *OrderGetSwapOrderResponse) SetTitle(title *string)
SetTitle sets the Title field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*OrderGetSwapOrderResponse) SetTrace ¶
func (o *OrderGetSwapOrderResponse) SetTrace(trace *string)
SetTrace sets the Trace field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*OrderGetSwapOrderResponse) String ¶
func (o *OrderGetSwapOrderResponse) String() string
func (*OrderGetSwapOrderResponse) UnmarshalJSON ¶
func (o *OrderGetSwapOrderResponse) UnmarshalJSON(data []byte) error
type OrderGetSwapOrderResponseData ¶
type OrderGetSwapOrderResponseData struct {
OrderID *string `json:"orderId,omitempty" url:"orderId,omitempty"`
// init = created but not submitted, processing = in progress, success/failed/refunding/refunded
Status *OrderGetSwapOrderResponseDataStatus `json:"status,omitempty" url:"status,omitempty"`
FromChain *string `json:"fromChain,omitempty" url:"fromChain,omitempty"`
FromContract *string `json:"fromContract,omitempty" url:"fromContract,omitempty"`
FromAmount *string `json:"fromAmount,omitempty" url:"fromAmount,omitempty"`
ToChain *string `json:"toChain,omitempty" url:"toChain,omitempty"`
ToContract *string `json:"toContract,omitempty" url:"toContract,omitempty"`
// Expected amount to receive
ToAmount *string `json:"toAmount,omitempty" url:"toAmount,omitempty"`
// Actual amount received (after success)
ReceiveAmount *string `json:"receiveAmount,omitempty" url:"receiveAmount,omitempty"`
GasFee *OrderGetSwapOrderResponseDataGasFee `json:"gasFee,omitempty" url:"gasFee,omitempty"`
Txs []*OrderGetSwapOrderResponseDataTxsItem `json:"txs,omitempty" url:"txs,omitempty"`
Fee *Fee `json:"fee,omitempty" url:"fee,omitempty"`
// Error message on failure
Message *string `json:"message,omitempty" url:"message,omitempty"`
// Creation time (Unix seconds)
CreateTime *int64 `json:"createTime,omitempty" url:"createTime,omitempty"`
// Update time (Unix seconds)
UpdateTime *int64 `json:"updateTime,omitempty" url:"updateTime,omitempty"`
TokenInfo []*TokenInfo `json:"tokenInfo,omitempty" url:"tokenInfo,omitempty"`
ChainInfo []*ChainInfo `json:"chainInfo,omitempty" url:"chainInfo,omitempty"`
// contains filtered or unexported fields
}
func (*OrderGetSwapOrderResponseData) GetChainInfo ¶
func (o *OrderGetSwapOrderResponseData) GetChainInfo() []*ChainInfo
func (*OrderGetSwapOrderResponseData) GetCreateTime ¶
func (o *OrderGetSwapOrderResponseData) GetCreateTime() *int64
func (*OrderGetSwapOrderResponseData) GetExtraProperties ¶
func (o *OrderGetSwapOrderResponseData) GetExtraProperties() map[string]interface{}
func (*OrderGetSwapOrderResponseData) GetFee ¶
func (o *OrderGetSwapOrderResponseData) GetFee() *Fee
func (*OrderGetSwapOrderResponseData) GetFromAmount ¶
func (o *OrderGetSwapOrderResponseData) GetFromAmount() *string
func (*OrderGetSwapOrderResponseData) GetFromChain ¶
func (o *OrderGetSwapOrderResponseData) GetFromChain() *string
func (*OrderGetSwapOrderResponseData) GetFromContract ¶
func (o *OrderGetSwapOrderResponseData) GetFromContract() *string
func (*OrderGetSwapOrderResponseData) GetGasFee ¶
func (o *OrderGetSwapOrderResponseData) GetGasFee() *OrderGetSwapOrderResponseDataGasFee
func (*OrderGetSwapOrderResponseData) GetMessage ¶
func (o *OrderGetSwapOrderResponseData) GetMessage() *string
func (*OrderGetSwapOrderResponseData) GetOrderID ¶
func (o *OrderGetSwapOrderResponseData) GetOrderID() *string
func (*OrderGetSwapOrderResponseData) GetReceiveAmount ¶
func (o *OrderGetSwapOrderResponseData) GetReceiveAmount() *string
func (*OrderGetSwapOrderResponseData) GetStatus ¶
func (o *OrderGetSwapOrderResponseData) GetStatus() *OrderGetSwapOrderResponseDataStatus
func (*OrderGetSwapOrderResponseData) GetToAmount ¶
func (o *OrderGetSwapOrderResponseData) GetToAmount() *string
func (*OrderGetSwapOrderResponseData) GetToChain ¶
func (o *OrderGetSwapOrderResponseData) GetToChain() *string
func (*OrderGetSwapOrderResponseData) GetToContract ¶
func (o *OrderGetSwapOrderResponseData) GetToContract() *string
func (*OrderGetSwapOrderResponseData) GetTokenInfo ¶
func (o *OrderGetSwapOrderResponseData) GetTokenInfo() []*TokenInfo
func (*OrderGetSwapOrderResponseData) GetTxs ¶
func (o *OrderGetSwapOrderResponseData) GetTxs() []*OrderGetSwapOrderResponseDataTxsItem
func (*OrderGetSwapOrderResponseData) GetUpdateTime ¶
func (o *OrderGetSwapOrderResponseData) GetUpdateTime() *int64
func (*OrderGetSwapOrderResponseData) MarshalJSON ¶
func (o *OrderGetSwapOrderResponseData) MarshalJSON() ([]byte, error)
func (*OrderGetSwapOrderResponseData) SetChainInfo ¶
func (o *OrderGetSwapOrderResponseData) SetChainInfo(chainInfo []*ChainInfo)
SetChainInfo sets the ChainInfo field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*OrderGetSwapOrderResponseData) SetCreateTime ¶
func (o *OrderGetSwapOrderResponseData) SetCreateTime(createTime *int64)
SetCreateTime sets the CreateTime field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*OrderGetSwapOrderResponseData) SetFee ¶
func (o *OrderGetSwapOrderResponseData) SetFee(fee *Fee)
SetFee sets the Fee field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*OrderGetSwapOrderResponseData) SetFromAmount ¶
func (o *OrderGetSwapOrderResponseData) SetFromAmount(fromAmount *string)
SetFromAmount sets the FromAmount field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*OrderGetSwapOrderResponseData) SetFromChain ¶
func (o *OrderGetSwapOrderResponseData) SetFromChain(fromChain *string)
SetFromChain sets the FromChain field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*OrderGetSwapOrderResponseData) SetFromContract ¶
func (o *OrderGetSwapOrderResponseData) SetFromContract(fromContract *string)
SetFromContract sets the FromContract field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*OrderGetSwapOrderResponseData) SetGasFee ¶
func (o *OrderGetSwapOrderResponseData) SetGasFee(gasFee *OrderGetSwapOrderResponseDataGasFee)
SetGasFee sets the GasFee field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*OrderGetSwapOrderResponseData) SetMessage ¶
func (o *OrderGetSwapOrderResponseData) SetMessage(message *string)
SetMessage sets the Message field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*OrderGetSwapOrderResponseData) SetOrderID ¶
func (o *OrderGetSwapOrderResponseData) SetOrderID(orderID *string)
SetOrderID sets the OrderID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*OrderGetSwapOrderResponseData) SetReceiveAmount ¶
func (o *OrderGetSwapOrderResponseData) SetReceiveAmount(receiveAmount *string)
SetReceiveAmount sets the ReceiveAmount field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*OrderGetSwapOrderResponseData) SetStatus ¶
func (o *OrderGetSwapOrderResponseData) SetStatus(status *OrderGetSwapOrderResponseDataStatus)
SetStatus sets the Status field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*OrderGetSwapOrderResponseData) SetToAmount ¶
func (o *OrderGetSwapOrderResponseData) SetToAmount(toAmount *string)
SetToAmount sets the ToAmount field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*OrderGetSwapOrderResponseData) SetToChain ¶
func (o *OrderGetSwapOrderResponseData) SetToChain(toChain *string)
SetToChain sets the ToChain field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*OrderGetSwapOrderResponseData) SetToContract ¶
func (o *OrderGetSwapOrderResponseData) SetToContract(toContract *string)
SetToContract sets the ToContract field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*OrderGetSwapOrderResponseData) SetTokenInfo ¶
func (o *OrderGetSwapOrderResponseData) SetTokenInfo(tokenInfo []*TokenInfo)
SetTokenInfo sets the TokenInfo field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*OrderGetSwapOrderResponseData) SetTxs ¶
func (o *OrderGetSwapOrderResponseData) SetTxs(txs []*OrderGetSwapOrderResponseDataTxsItem)
SetTxs sets the Txs field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*OrderGetSwapOrderResponseData) SetUpdateTime ¶
func (o *OrderGetSwapOrderResponseData) SetUpdateTime(updateTime *int64)
SetUpdateTime sets the UpdateTime field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*OrderGetSwapOrderResponseData) String ¶
func (o *OrderGetSwapOrderResponseData) String() string
func (*OrderGetSwapOrderResponseData) UnmarshalJSON ¶
func (o *OrderGetSwapOrderResponseData) UnmarshalJSON(data []byte) error
type OrderGetSwapOrderResponseDataGasFee ¶
type OrderGetSwapOrderResponseDataGasFee struct {
// Native token fee (general)
Fee *string `json:"fee,omitempty" url:"fee,omitempty"`
// EVM
GasPrice *string `json:"gasPrice,omitempty" url:"gasPrice,omitempty"`
// EVM
GasLimit *string `json:"gasLimit,omitempty" url:"gasLimit,omitempty"`
// EVM actual consumption
GasUsed *string `json:"gasUsed,omitempty" url:"gasUsed,omitempty"`
// TRX
EnergyUsed *string `json:"energyUsed,omitempty" url:"energyUsed,omitempty"`
// TRX bandwidth
NetUsed *string `json:"netUsed,omitempty" url:"netUsed,omitempty"`
// contains filtered or unexported fields
}
func (*OrderGetSwapOrderResponseDataGasFee) GetEnergyUsed ¶
func (o *OrderGetSwapOrderResponseDataGasFee) GetEnergyUsed() *string
func (*OrderGetSwapOrderResponseDataGasFee) GetExtraProperties ¶
func (o *OrderGetSwapOrderResponseDataGasFee) GetExtraProperties() map[string]interface{}
func (*OrderGetSwapOrderResponseDataGasFee) GetFee ¶
func (o *OrderGetSwapOrderResponseDataGasFee) GetFee() *string
func (*OrderGetSwapOrderResponseDataGasFee) GetGasLimit ¶
func (o *OrderGetSwapOrderResponseDataGasFee) GetGasLimit() *string
func (*OrderGetSwapOrderResponseDataGasFee) GetGasPrice ¶
func (o *OrderGetSwapOrderResponseDataGasFee) GetGasPrice() *string
func (*OrderGetSwapOrderResponseDataGasFee) GetGasUsed ¶
func (o *OrderGetSwapOrderResponseDataGasFee) GetGasUsed() *string
func (*OrderGetSwapOrderResponseDataGasFee) GetNetUsed ¶
func (o *OrderGetSwapOrderResponseDataGasFee) GetNetUsed() *string
func (*OrderGetSwapOrderResponseDataGasFee) MarshalJSON ¶
func (o *OrderGetSwapOrderResponseDataGasFee) MarshalJSON() ([]byte, error)
func (*OrderGetSwapOrderResponseDataGasFee) SetEnergyUsed ¶
func (o *OrderGetSwapOrderResponseDataGasFee) SetEnergyUsed(energyUsed *string)
SetEnergyUsed sets the EnergyUsed field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*OrderGetSwapOrderResponseDataGasFee) SetFee ¶
func (o *OrderGetSwapOrderResponseDataGasFee) SetFee(fee *string)
SetFee sets the Fee field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*OrderGetSwapOrderResponseDataGasFee) SetGasLimit ¶
func (o *OrderGetSwapOrderResponseDataGasFee) SetGasLimit(gasLimit *string)
SetGasLimit sets the GasLimit field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*OrderGetSwapOrderResponseDataGasFee) SetGasPrice ¶
func (o *OrderGetSwapOrderResponseDataGasFee) SetGasPrice(gasPrice *string)
SetGasPrice sets the GasPrice field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*OrderGetSwapOrderResponseDataGasFee) SetGasUsed ¶
func (o *OrderGetSwapOrderResponseDataGasFee) SetGasUsed(gasUsed *string)
SetGasUsed sets the GasUsed field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*OrderGetSwapOrderResponseDataGasFee) SetNetUsed ¶
func (o *OrderGetSwapOrderResponseDataGasFee) SetNetUsed(netUsed *string)
SetNetUsed sets the NetUsed field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*OrderGetSwapOrderResponseDataGasFee) String ¶
func (o *OrderGetSwapOrderResponseDataGasFee) String() string
func (*OrderGetSwapOrderResponseDataGasFee) UnmarshalJSON ¶
func (o *OrderGetSwapOrderResponseDataGasFee) UnmarshalJSON(data []byte) error
type OrderGetSwapOrderResponseDataStatus ¶
type OrderGetSwapOrderResponseDataStatus string
init = created but not submitted, processing = in progress, success/failed/refunding/refunded
const ( OrderGetSwapOrderResponseDataStatusInit OrderGetSwapOrderResponseDataStatus = "init" OrderGetSwapOrderResponseDataStatusProcessing OrderGetSwapOrderResponseDataStatus = "processing" OrderGetSwapOrderResponseDataStatusSuccess OrderGetSwapOrderResponseDataStatus = "success" OrderGetSwapOrderResponseDataStatusFailed OrderGetSwapOrderResponseDataStatus = "failed" OrderGetSwapOrderResponseDataStatusRefunding OrderGetSwapOrderResponseDataStatus = "refunding" OrderGetSwapOrderResponseDataStatusRefunded OrderGetSwapOrderResponseDataStatus = "refunded" )
func NewOrderGetSwapOrderResponseDataStatusFromString ¶
func NewOrderGetSwapOrderResponseDataStatusFromString(s string) (OrderGetSwapOrderResponseDataStatus, error)
type OrderGetSwapOrderResponseDataTxsItem ¶
type OrderGetSwapOrderResponseDataTxsItem struct {
Chain *string `json:"chain,omitempty" url:"chain,omitempty"`
// Transaction hash
TxID *string `json:"txId,omitempty" url:"txId,omitempty"`
Stage *OrderGetSwapOrderResponseDataTxsItemStage `json:"stage,omitempty" url:"stage,omitempty"`
Tokens []*TokenInfo `json:"tokens,omitempty" url:"tokens,omitempty"`
// contains filtered or unexported fields
}
func (*OrderGetSwapOrderResponseDataTxsItem) GetChain ¶
func (o *OrderGetSwapOrderResponseDataTxsItem) GetChain() *string
func (*OrderGetSwapOrderResponseDataTxsItem) GetExtraProperties ¶
func (o *OrderGetSwapOrderResponseDataTxsItem) GetExtraProperties() map[string]interface{}
func (*OrderGetSwapOrderResponseDataTxsItem) GetStage ¶
func (o *OrderGetSwapOrderResponseDataTxsItem) GetStage() *OrderGetSwapOrderResponseDataTxsItemStage
func (*OrderGetSwapOrderResponseDataTxsItem) GetTokens ¶
func (o *OrderGetSwapOrderResponseDataTxsItem) GetTokens() []*TokenInfo
func (*OrderGetSwapOrderResponseDataTxsItem) GetTxID ¶
func (o *OrderGetSwapOrderResponseDataTxsItem) GetTxID() *string
func (*OrderGetSwapOrderResponseDataTxsItem) MarshalJSON ¶
func (o *OrderGetSwapOrderResponseDataTxsItem) MarshalJSON() ([]byte, error)
func (*OrderGetSwapOrderResponseDataTxsItem) SetChain ¶
func (o *OrderGetSwapOrderResponseDataTxsItem) SetChain(chain *string)
SetChain sets the Chain field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*OrderGetSwapOrderResponseDataTxsItem) SetStage ¶
func (o *OrderGetSwapOrderResponseDataTxsItem) SetStage(stage *OrderGetSwapOrderResponseDataTxsItemStage)
SetStage sets the Stage field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*OrderGetSwapOrderResponseDataTxsItem) SetTokens ¶
func (o *OrderGetSwapOrderResponseDataTxsItem) SetTokens(tokens []*TokenInfo)
SetTokens sets the Tokens field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*OrderGetSwapOrderResponseDataTxsItem) SetTxID ¶
func (o *OrderGetSwapOrderResponseDataTxsItem) SetTxID(txID *string)
SetTxID sets the TxID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*OrderGetSwapOrderResponseDataTxsItem) String ¶
func (o *OrderGetSwapOrderResponseDataTxsItem) String() string
func (*OrderGetSwapOrderResponseDataTxsItem) UnmarshalJSON ¶
func (o *OrderGetSwapOrderResponseDataTxsItem) UnmarshalJSON(data []byte) error
type OrderGetSwapOrderResponseDataTxsItemStage ¶
type OrderGetSwapOrderResponseDataTxsItemStage string
const ( OrderGetSwapOrderResponseDataTxsItemStageSource OrderGetSwapOrderResponseDataTxsItemStage = "source" OrderGetSwapOrderResponseDataTxsItemStageTarget OrderGetSwapOrderResponseDataTxsItemStage = "target" OrderGetSwapOrderResponseDataTxsItemStageSwap OrderGetSwapOrderResponseDataTxsItemStage = "swap" OrderGetSwapOrderResponseDataTxsItemStageBridge OrderGetSwapOrderResponseDataTxsItemStage = "bridge" OrderGetSwapOrderResponseDataTxsItemStageRefund OrderGetSwapOrderResponseDataTxsItemStage = "refund" OrderGetSwapOrderResponseDataTxsItemStageApprove OrderGetSwapOrderResponseDataTxsItemStage = "approve" )
func NewOrderGetSwapOrderResponseDataTxsItemStageFromString ¶
func NewOrderGetSwapOrderResponseDataTxsItemStageFromString(s string) (OrderGetSwapOrderResponseDataTxsItemStage, error)
type OrderGetSwapPriceRequest ¶
type OrderGetSwapPriceRequest struct {
FromChain string `json:"fromChain" url:"-"`
// Source token contract; empty for native token
FromContract string `json:"fromContract" url:"-"`
FromAmount string `json:"fromAmount" url:"-"`
ToChain string `json:"toChain" url:"-"`
// Target token contract; empty for native token
ToContract string `json:"toContract" url:"-"`
FromAddress string `json:"fromAddress" url:"-"`
// Recipient address; defaults to fromAddress
ToAddress *string `json:"toAddress,omitempty" url:"-"`
// 0 or 0.001–0.02 (i.e. 0% or 0.1%–2%)
FeeRate *string `json:"feeRate,omitempty" url:"-"`
// contains filtered or unexported fields
}
func (*OrderGetSwapPriceRequest) MarshalJSON ¶
func (o *OrderGetSwapPriceRequest) MarshalJSON() ([]byte, error)
func (*OrderGetSwapPriceRequest) SetFeeRate ¶
func (o *OrderGetSwapPriceRequest) SetFeeRate(feeRate *string)
SetFeeRate sets the FeeRate field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*OrderGetSwapPriceRequest) SetFromAddress ¶
func (o *OrderGetSwapPriceRequest) SetFromAddress(fromAddress string)
SetFromAddress sets the FromAddress field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*OrderGetSwapPriceRequest) SetFromAmount ¶
func (o *OrderGetSwapPriceRequest) SetFromAmount(fromAmount string)
SetFromAmount sets the FromAmount field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*OrderGetSwapPriceRequest) SetFromChain ¶
func (o *OrderGetSwapPriceRequest) SetFromChain(fromChain string)
SetFromChain sets the FromChain field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*OrderGetSwapPriceRequest) SetFromContract ¶
func (o *OrderGetSwapPriceRequest) SetFromContract(fromContract string)
SetFromContract sets the FromContract field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*OrderGetSwapPriceRequest) SetToAddress ¶
func (o *OrderGetSwapPriceRequest) SetToAddress(toAddress *string)
SetToAddress sets the ToAddress field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*OrderGetSwapPriceRequest) SetToChain ¶
func (o *OrderGetSwapPriceRequest) SetToChain(toChain string)
SetToChain sets the ToChain field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*OrderGetSwapPriceRequest) SetToContract ¶
func (o *OrderGetSwapPriceRequest) SetToContract(toContract string)
SetToContract sets the ToContract field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*OrderGetSwapPriceRequest) UnmarshalJSON ¶
func (o *OrderGetSwapPriceRequest) UnmarshalJSON(data []byte) error
type OrderGetSwapPriceResponse ¶
type OrderGetSwapPriceResponse struct {
// Business data
Data *OrderGetSwapPriceResponseData `json:"data,omitempty" url:"data,omitempty"`
// 0 indicates success, 1 indicates failure
Status *int `json:"status,omitempty" url:"status,omitempty"`
// Business error code; 0 indicates success
ErrorCode *int `json:"error_code,omitempty" url:"error_code,omitempty"`
Msg *string `json:"msg,omitempty" url:"msg,omitempty"`
Title *string `json:"title,omitempty" url:"title,omitempty"`
Timestamp *int64 `json:"timestamp,omitempty" url:"timestamp,omitempty"`
Trace *string `json:"trace,omitempty" url:"trace,omitempty"`
// contains filtered or unexported fields
}
func (*OrderGetSwapPriceResponse) GetData ¶
func (o *OrderGetSwapPriceResponse) GetData() *OrderGetSwapPriceResponseData
func (*OrderGetSwapPriceResponse) GetErrorCode ¶
func (o *OrderGetSwapPriceResponse) GetErrorCode() *int
func (*OrderGetSwapPriceResponse) GetExtraProperties ¶
func (o *OrderGetSwapPriceResponse) GetExtraProperties() map[string]interface{}
func (*OrderGetSwapPriceResponse) GetMsg ¶
func (o *OrderGetSwapPriceResponse) GetMsg() *string
func (*OrderGetSwapPriceResponse) GetStatus ¶
func (o *OrderGetSwapPriceResponse) GetStatus() *int
func (*OrderGetSwapPriceResponse) GetTimestamp ¶
func (o *OrderGetSwapPriceResponse) GetTimestamp() *int64
func (*OrderGetSwapPriceResponse) GetTitle ¶
func (o *OrderGetSwapPriceResponse) GetTitle() *string
func (*OrderGetSwapPriceResponse) GetTrace ¶
func (o *OrderGetSwapPriceResponse) GetTrace() *string
func (*OrderGetSwapPriceResponse) MarshalJSON ¶
func (o *OrderGetSwapPriceResponse) MarshalJSON() ([]byte, error)
func (*OrderGetSwapPriceResponse) SetData ¶
func (o *OrderGetSwapPriceResponse) SetData(data *OrderGetSwapPriceResponseData)
SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*OrderGetSwapPriceResponse) SetErrorCode ¶
func (o *OrderGetSwapPriceResponse) SetErrorCode(errorCode *int)
SetErrorCode sets the ErrorCode field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*OrderGetSwapPriceResponse) SetMsg ¶
func (o *OrderGetSwapPriceResponse) SetMsg(msg *string)
SetMsg sets the Msg field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*OrderGetSwapPriceResponse) SetStatus ¶
func (o *OrderGetSwapPriceResponse) SetStatus(status *int)
SetStatus sets the Status field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*OrderGetSwapPriceResponse) SetTimestamp ¶
func (o *OrderGetSwapPriceResponse) SetTimestamp(timestamp *int64)
SetTimestamp sets the Timestamp field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*OrderGetSwapPriceResponse) SetTitle ¶
func (o *OrderGetSwapPriceResponse) SetTitle(title *string)
SetTitle sets the Title field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*OrderGetSwapPriceResponse) SetTrace ¶
func (o *OrderGetSwapPriceResponse) SetTrace(trace *string)
SetTrace sets the Trace field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*OrderGetSwapPriceResponse) String ¶
func (o *OrderGetSwapPriceResponse) String() string
func (*OrderGetSwapPriceResponse) UnmarshalJSON ¶
func (o *OrderGetSwapPriceResponse) UnmarshalJSON(data []byte) error
type OrderGetSwapPriceResponseData ¶
type OrderGetSwapPriceResponseData struct {
// Estimated amount to receive
ToAmount *string `json:"toAmount,omitempty" url:"toAmount,omitempty"`
// Recommended market/bridge
Market *string `json:"market,omitempty" url:"market,omitempty"`
Slippage *string `json:"slippage,omitempty" url:"slippage,omitempty"`
PriceImpact *string `json:"priceImpact,omitempty" url:"priceImpact,omitempty"`
Fee *Fee `json:"fee,omitempty" url:"fee,omitempty"`
// Supported gas features; currently only "no_gas"
Features []string `json:"features,omitempty" url:"features,omitempty"`
Eip7702Bound *bool `json:"eip7702Bound,omitempty" url:"eip7702Bound,omitempty"`
Eip7702Contract *string `json:"eip7702Contract,omitempty" url:"eip7702Contract,omitempty"`
Eip7702IsBgw *bool `json:"eip7702IsBgw,omitempty" url:"eip7702IsBgw,omitempty"`
TokenInfo []*TokenInfo `json:"tokenInfo,omitempty" url:"tokenInfo,omitempty"`
// contains filtered or unexported fields
}
func (*OrderGetSwapPriceResponseData) GetEip7702Bound ¶
func (o *OrderGetSwapPriceResponseData) GetEip7702Bound() *bool
func (*OrderGetSwapPriceResponseData) GetEip7702Contract ¶
func (o *OrderGetSwapPriceResponseData) GetEip7702Contract() *string
func (*OrderGetSwapPriceResponseData) GetEip7702IsBgw ¶
func (o *OrderGetSwapPriceResponseData) GetEip7702IsBgw() *bool
func (*OrderGetSwapPriceResponseData) GetExtraProperties ¶
func (o *OrderGetSwapPriceResponseData) GetExtraProperties() map[string]interface{}
func (*OrderGetSwapPriceResponseData) GetFeatures ¶
func (o *OrderGetSwapPriceResponseData) GetFeatures() []string
func (*OrderGetSwapPriceResponseData) GetFee ¶
func (o *OrderGetSwapPriceResponseData) GetFee() *Fee
func (*OrderGetSwapPriceResponseData) GetMarket ¶
func (o *OrderGetSwapPriceResponseData) GetMarket() *string
func (*OrderGetSwapPriceResponseData) GetPriceImpact ¶
func (o *OrderGetSwapPriceResponseData) GetPriceImpact() *string
func (*OrderGetSwapPriceResponseData) GetSlippage ¶
func (o *OrderGetSwapPriceResponseData) GetSlippage() *string
func (*OrderGetSwapPriceResponseData) GetToAmount ¶
func (o *OrderGetSwapPriceResponseData) GetToAmount() *string
func (*OrderGetSwapPriceResponseData) GetTokenInfo ¶
func (o *OrderGetSwapPriceResponseData) GetTokenInfo() []*TokenInfo
func (*OrderGetSwapPriceResponseData) MarshalJSON ¶
func (o *OrderGetSwapPriceResponseData) MarshalJSON() ([]byte, error)
func (*OrderGetSwapPriceResponseData) SetEip7702Bound ¶
func (o *OrderGetSwapPriceResponseData) SetEip7702Bound(eip7702Bound *bool)
SetEip7702Bound sets the Eip7702Bound field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*OrderGetSwapPriceResponseData) SetEip7702Contract ¶
func (o *OrderGetSwapPriceResponseData) SetEip7702Contract(eip7702Contract *string)
SetEip7702Contract sets the Eip7702Contract field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*OrderGetSwapPriceResponseData) SetEip7702IsBgw ¶
func (o *OrderGetSwapPriceResponseData) SetEip7702IsBgw(eip7702IsBgw *bool)
SetEip7702IsBgw sets the Eip7702IsBgw field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*OrderGetSwapPriceResponseData) SetFeatures ¶
func (o *OrderGetSwapPriceResponseData) SetFeatures(features []string)
SetFeatures sets the Features field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*OrderGetSwapPriceResponseData) SetFee ¶
func (o *OrderGetSwapPriceResponseData) SetFee(fee *Fee)
SetFee sets the Fee field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*OrderGetSwapPriceResponseData) SetMarket ¶
func (o *OrderGetSwapPriceResponseData) SetMarket(market *string)
SetMarket sets the Market field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*OrderGetSwapPriceResponseData) SetPriceImpact ¶
func (o *OrderGetSwapPriceResponseData) SetPriceImpact(priceImpact *string)
SetPriceImpact sets the PriceImpact field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*OrderGetSwapPriceResponseData) SetSlippage ¶
func (o *OrderGetSwapPriceResponseData) SetSlippage(slippage *string)
SetSlippage sets the Slippage field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*OrderGetSwapPriceResponseData) SetToAmount ¶
func (o *OrderGetSwapPriceResponseData) SetToAmount(toAmount *string)
SetToAmount sets the ToAmount field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*OrderGetSwapPriceResponseData) SetTokenInfo ¶
func (o *OrderGetSwapPriceResponseData) SetTokenInfo(tokenInfo []*TokenInfo)
SetTokenInfo sets the TokenInfo field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*OrderGetSwapPriceResponseData) String ¶
func (o *OrderGetSwapPriceResponseData) String() string
func (*OrderGetSwapPriceResponseData) UnmarshalJSON ¶
func (o *OrderGetSwapPriceResponseData) UnmarshalJSON(data []byte) error
type OrderMakeSwapOrderRequest ¶
type OrderMakeSwapOrderRequest struct {
FromChain string `json:"fromChain" url:"-"`
// Source token contract; empty for native token
FromContract string `json:"fromContract" url:"-"`
FromAmount string `json:"fromAmount" url:"-"`
ToChain string `json:"toChain" url:"-"`
// Target token contract; empty for native token
ToContract string `json:"toContract" url:"-"`
FromAddress string `json:"fromAddress" url:"-"`
ToAddress string `json:"toAddress" url:"-"`
// Specified market/bridge, e.g. bkbridgev3.liqbridge
Market string `json:"market" url:"-"`
// Slippage tolerance (decimal; 0.03 means 3%)
Slippage *string `json:"slippage,omitempty" url:"-"`
// 0 or 0.001–0.02
FeeRate *string `json:"feeRate,omitempty" url:"-"`
// Pass "no_gas" to pay gas with the input token
Feature *string `json:"feature,omitempty" url:"-"`
// Minimum amount to receive
ToMinAmount *string `json:"toMinAmount,omitempty" url:"-"`
// Allows overriding an already-bound non-BGW EIP-7702 contract (NoGas only)
OverrideEip7702 *bool `json:"overrideEip7702,omitempty" url:"-"`
// contains filtered or unexported fields
}
func (*OrderMakeSwapOrderRequest) MarshalJSON ¶
func (o *OrderMakeSwapOrderRequest) MarshalJSON() ([]byte, error)
func (*OrderMakeSwapOrderRequest) SetFeature ¶
func (o *OrderMakeSwapOrderRequest) SetFeature(feature *string)
SetFeature sets the Feature field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*OrderMakeSwapOrderRequest) SetFeeRate ¶
func (o *OrderMakeSwapOrderRequest) SetFeeRate(feeRate *string)
SetFeeRate sets the FeeRate field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*OrderMakeSwapOrderRequest) SetFromAddress ¶
func (o *OrderMakeSwapOrderRequest) SetFromAddress(fromAddress string)
SetFromAddress sets the FromAddress field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*OrderMakeSwapOrderRequest) SetFromAmount ¶
func (o *OrderMakeSwapOrderRequest) SetFromAmount(fromAmount string)
SetFromAmount sets the FromAmount field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*OrderMakeSwapOrderRequest) SetFromChain ¶
func (o *OrderMakeSwapOrderRequest) SetFromChain(fromChain string)
SetFromChain sets the FromChain field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*OrderMakeSwapOrderRequest) SetFromContract ¶
func (o *OrderMakeSwapOrderRequest) SetFromContract(fromContract string)
SetFromContract sets the FromContract field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*OrderMakeSwapOrderRequest) SetMarket ¶
func (o *OrderMakeSwapOrderRequest) SetMarket(market string)
SetMarket sets the Market field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*OrderMakeSwapOrderRequest) SetOverrideEip7702 ¶
func (o *OrderMakeSwapOrderRequest) SetOverrideEip7702(overrideEip7702 *bool)
SetOverrideEip7702 sets the OverrideEip7702 field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*OrderMakeSwapOrderRequest) SetSlippage ¶
func (o *OrderMakeSwapOrderRequest) SetSlippage(slippage *string)
SetSlippage sets the Slippage field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*OrderMakeSwapOrderRequest) SetToAddress ¶
func (o *OrderMakeSwapOrderRequest) SetToAddress(toAddress string)
SetToAddress sets the ToAddress field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*OrderMakeSwapOrderRequest) SetToChain ¶
func (o *OrderMakeSwapOrderRequest) SetToChain(toChain string)
SetToChain sets the ToChain field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*OrderMakeSwapOrderRequest) SetToContract ¶
func (o *OrderMakeSwapOrderRequest) SetToContract(toContract string)
SetToContract sets the ToContract field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*OrderMakeSwapOrderRequest) SetToMinAmount ¶
func (o *OrderMakeSwapOrderRequest) SetToMinAmount(toMinAmount *string)
SetToMinAmount sets the ToMinAmount field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*OrderMakeSwapOrderRequest) UnmarshalJSON ¶
func (o *OrderMakeSwapOrderRequest) UnmarshalJSON(data []byte) error
type OrderMakeSwapOrderResponse ¶
type OrderMakeSwapOrderResponse struct {
// Business data
Data *OrderMakeSwapOrderResponseData `json:"data,omitempty" url:"data,omitempty"`
// 0 indicates success, 1 indicates failure
Status *int `json:"status,omitempty" url:"status,omitempty"`
// Business error code; 0 indicates success
ErrorCode *int `json:"error_code,omitempty" url:"error_code,omitempty"`
Msg *string `json:"msg,omitempty" url:"msg,omitempty"`
Title *string `json:"title,omitempty" url:"title,omitempty"`
Timestamp *int64 `json:"timestamp,omitempty" url:"timestamp,omitempty"`
Trace *string `json:"trace,omitempty" url:"trace,omitempty"`
// contains filtered or unexported fields
}
func (*OrderMakeSwapOrderResponse) GetData ¶
func (o *OrderMakeSwapOrderResponse) GetData() *OrderMakeSwapOrderResponseData
func (*OrderMakeSwapOrderResponse) GetErrorCode ¶
func (o *OrderMakeSwapOrderResponse) GetErrorCode() *int
func (*OrderMakeSwapOrderResponse) GetExtraProperties ¶
func (o *OrderMakeSwapOrderResponse) GetExtraProperties() map[string]interface{}
func (*OrderMakeSwapOrderResponse) GetMsg ¶
func (o *OrderMakeSwapOrderResponse) GetMsg() *string
func (*OrderMakeSwapOrderResponse) GetStatus ¶
func (o *OrderMakeSwapOrderResponse) GetStatus() *int
func (*OrderMakeSwapOrderResponse) GetTimestamp ¶
func (o *OrderMakeSwapOrderResponse) GetTimestamp() *int64
func (*OrderMakeSwapOrderResponse) GetTitle ¶
func (o *OrderMakeSwapOrderResponse) GetTitle() *string
func (*OrderMakeSwapOrderResponse) GetTrace ¶
func (o *OrderMakeSwapOrderResponse) GetTrace() *string
func (*OrderMakeSwapOrderResponse) MarshalJSON ¶
func (o *OrderMakeSwapOrderResponse) MarshalJSON() ([]byte, error)
func (*OrderMakeSwapOrderResponse) SetData ¶
func (o *OrderMakeSwapOrderResponse) SetData(data *OrderMakeSwapOrderResponseData)
SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*OrderMakeSwapOrderResponse) SetErrorCode ¶
func (o *OrderMakeSwapOrderResponse) SetErrorCode(errorCode *int)
SetErrorCode sets the ErrorCode field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*OrderMakeSwapOrderResponse) SetMsg ¶
func (o *OrderMakeSwapOrderResponse) SetMsg(msg *string)
SetMsg sets the Msg field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*OrderMakeSwapOrderResponse) SetStatus ¶
func (o *OrderMakeSwapOrderResponse) SetStatus(status *int)
SetStatus sets the Status field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*OrderMakeSwapOrderResponse) SetTimestamp ¶
func (o *OrderMakeSwapOrderResponse) SetTimestamp(timestamp *int64)
SetTimestamp sets the Timestamp field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*OrderMakeSwapOrderResponse) SetTitle ¶
func (o *OrderMakeSwapOrderResponse) SetTitle(title *string)
SetTitle sets the Title field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*OrderMakeSwapOrderResponse) SetTrace ¶
func (o *OrderMakeSwapOrderResponse) SetTrace(trace *string)
SetTrace sets the Trace field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*OrderMakeSwapOrderResponse) String ¶
func (o *OrderMakeSwapOrderResponse) String() string
func (*OrderMakeSwapOrderResponse) UnmarshalJSON ¶
func (o *OrderMakeSwapOrderResponse) UnmarshalJSON(data []byte) error
type OrderMakeSwapOrderResponseData ¶
type OrderMakeSwapOrderResponseData struct {
OrderID *string `json:"orderId,omitempty" url:"orderId,omitempty"`
// Minimum amount to receive after re-quoting
ToMinAmount *string `json:"toMinAmount,omitempty" url:"toMinAmount,omitempty"`
Eip7702Bound *bool `json:"eip7702Bound,omitempty" url:"eip7702Bound,omitempty"`
Eip7702Contract *string `json:"eip7702Contract,omitempty" url:"eip7702Contract,omitempty"`
Eip7702IsBgw *bool `json:"eip7702IsBgw,omitempty" url:"eip7702IsBgw,omitempty"`
// Transactions to be signed (standard/Solana mode); appears as an alternative to signatures
Txs []*OrderTxOrSignature `json:"txs,omitempty" url:"txs,omitempty"`
// EIP-712 payloads to be signed (EVM NoGas / HyperCore); appears as an alternative to txs
Signatures []*OrderTxOrSignature `json:"signatures,omitempty" url:"signatures,omitempty"`
// contains filtered or unexported fields
}
func (*OrderMakeSwapOrderResponseData) GetEip7702Bound ¶
func (o *OrderMakeSwapOrderResponseData) GetEip7702Bound() *bool
func (*OrderMakeSwapOrderResponseData) GetEip7702Contract ¶
func (o *OrderMakeSwapOrderResponseData) GetEip7702Contract() *string
func (*OrderMakeSwapOrderResponseData) GetEip7702IsBgw ¶
func (o *OrderMakeSwapOrderResponseData) GetEip7702IsBgw() *bool
func (*OrderMakeSwapOrderResponseData) GetExtraProperties ¶
func (o *OrderMakeSwapOrderResponseData) GetExtraProperties() map[string]interface{}
func (*OrderMakeSwapOrderResponseData) GetOrderID ¶
func (o *OrderMakeSwapOrderResponseData) GetOrderID() *string
func (*OrderMakeSwapOrderResponseData) GetSignatures ¶
func (o *OrderMakeSwapOrderResponseData) GetSignatures() []*OrderTxOrSignature
func (*OrderMakeSwapOrderResponseData) GetToMinAmount ¶
func (o *OrderMakeSwapOrderResponseData) GetToMinAmount() *string
func (*OrderMakeSwapOrderResponseData) GetTxs ¶
func (o *OrderMakeSwapOrderResponseData) GetTxs() []*OrderTxOrSignature
func (*OrderMakeSwapOrderResponseData) MarshalJSON ¶
func (o *OrderMakeSwapOrderResponseData) MarshalJSON() ([]byte, error)
func (*OrderMakeSwapOrderResponseData) SetEip7702Bound ¶
func (o *OrderMakeSwapOrderResponseData) SetEip7702Bound(eip7702Bound *bool)
SetEip7702Bound sets the Eip7702Bound field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*OrderMakeSwapOrderResponseData) SetEip7702Contract ¶
func (o *OrderMakeSwapOrderResponseData) SetEip7702Contract(eip7702Contract *string)
SetEip7702Contract sets the Eip7702Contract field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*OrderMakeSwapOrderResponseData) SetEip7702IsBgw ¶
func (o *OrderMakeSwapOrderResponseData) SetEip7702IsBgw(eip7702IsBgw *bool)
SetEip7702IsBgw sets the Eip7702IsBgw field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*OrderMakeSwapOrderResponseData) SetOrderID ¶
func (o *OrderMakeSwapOrderResponseData) SetOrderID(orderID *string)
SetOrderID sets the OrderID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*OrderMakeSwapOrderResponseData) SetSignatures ¶
func (o *OrderMakeSwapOrderResponseData) SetSignatures(signatures []*OrderTxOrSignature)
SetSignatures sets the Signatures field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*OrderMakeSwapOrderResponseData) SetToMinAmount ¶
func (o *OrderMakeSwapOrderResponseData) SetToMinAmount(toMinAmount *string)
SetToMinAmount sets the ToMinAmount field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*OrderMakeSwapOrderResponseData) SetTxs ¶
func (o *OrderMakeSwapOrderResponseData) SetTxs(txs []*OrderTxOrSignature)
SetTxs sets the Txs field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*OrderMakeSwapOrderResponseData) String ¶
func (o *OrderMakeSwapOrderResponseData) String() string
func (*OrderMakeSwapOrderResponseData) UnmarshalJSON ¶
func (o *OrderMakeSwapOrderResponseData) UnmarshalJSON(data []byte) error
type OrderSubmitSwapOrderRequest ¶
type OrderSubmitSwapOrderRequest struct {
OrderID string `json:"orderId" url:"-"`
// Signed transactions/hashes (0x-prefixed); length matches the txs or signatures array
SignedTxs []string `json:"signedTxs" url:"-"`
// contains filtered or unexported fields
}
func (*OrderSubmitSwapOrderRequest) MarshalJSON ¶
func (o *OrderSubmitSwapOrderRequest) MarshalJSON() ([]byte, error)
func (*OrderSubmitSwapOrderRequest) SetOrderID ¶
func (o *OrderSubmitSwapOrderRequest) SetOrderID(orderID string)
SetOrderID sets the OrderID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*OrderSubmitSwapOrderRequest) SetSignedTxs ¶
func (o *OrderSubmitSwapOrderRequest) SetSignedTxs(signedTxs []string)
SetSignedTxs sets the SignedTxs field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*OrderSubmitSwapOrderRequest) UnmarshalJSON ¶
func (o *OrderSubmitSwapOrderRequest) UnmarshalJSON(data []byte) error
type OrderSubmitSwapOrderResponse ¶
type OrderSubmitSwapOrderResponse struct {
// Business data
Data *OrderSubmitSwapOrderResponseData `json:"data,omitempty" url:"data,omitempty"`
// 0 indicates success, 1 indicates failure
Status *int `json:"status,omitempty" url:"status,omitempty"`
// Business error code; 0 indicates success
ErrorCode *int `json:"error_code,omitempty" url:"error_code,omitempty"`
Msg *string `json:"msg,omitempty" url:"msg,omitempty"`
Title *string `json:"title,omitempty" url:"title,omitempty"`
Timestamp *int64 `json:"timestamp,omitempty" url:"timestamp,omitempty"`
Trace *string `json:"trace,omitempty" url:"trace,omitempty"`
// contains filtered or unexported fields
}
func (*OrderSubmitSwapOrderResponse) GetData ¶
func (o *OrderSubmitSwapOrderResponse) GetData() *OrderSubmitSwapOrderResponseData
func (*OrderSubmitSwapOrderResponse) GetErrorCode ¶
func (o *OrderSubmitSwapOrderResponse) GetErrorCode() *int
func (*OrderSubmitSwapOrderResponse) GetExtraProperties ¶
func (o *OrderSubmitSwapOrderResponse) GetExtraProperties() map[string]interface{}
func (*OrderSubmitSwapOrderResponse) GetMsg ¶
func (o *OrderSubmitSwapOrderResponse) GetMsg() *string
func (*OrderSubmitSwapOrderResponse) GetStatus ¶
func (o *OrderSubmitSwapOrderResponse) GetStatus() *int
func (*OrderSubmitSwapOrderResponse) GetTimestamp ¶
func (o *OrderSubmitSwapOrderResponse) GetTimestamp() *int64
func (*OrderSubmitSwapOrderResponse) GetTitle ¶
func (o *OrderSubmitSwapOrderResponse) GetTitle() *string
func (*OrderSubmitSwapOrderResponse) GetTrace ¶
func (o *OrderSubmitSwapOrderResponse) GetTrace() *string
func (*OrderSubmitSwapOrderResponse) MarshalJSON ¶
func (o *OrderSubmitSwapOrderResponse) MarshalJSON() ([]byte, error)
func (*OrderSubmitSwapOrderResponse) SetData ¶
func (o *OrderSubmitSwapOrderResponse) SetData(data *OrderSubmitSwapOrderResponseData)
SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*OrderSubmitSwapOrderResponse) SetErrorCode ¶
func (o *OrderSubmitSwapOrderResponse) SetErrorCode(errorCode *int)
SetErrorCode sets the ErrorCode field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*OrderSubmitSwapOrderResponse) SetMsg ¶
func (o *OrderSubmitSwapOrderResponse) SetMsg(msg *string)
SetMsg sets the Msg field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*OrderSubmitSwapOrderResponse) SetStatus ¶
func (o *OrderSubmitSwapOrderResponse) SetStatus(status *int)
SetStatus sets the Status field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*OrderSubmitSwapOrderResponse) SetTimestamp ¶
func (o *OrderSubmitSwapOrderResponse) SetTimestamp(timestamp *int64)
SetTimestamp sets the Timestamp field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*OrderSubmitSwapOrderResponse) SetTitle ¶
func (o *OrderSubmitSwapOrderResponse) SetTitle(title *string)
SetTitle sets the Title field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*OrderSubmitSwapOrderResponse) SetTrace ¶
func (o *OrderSubmitSwapOrderResponse) SetTrace(trace *string)
SetTrace sets the Trace field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*OrderSubmitSwapOrderResponse) String ¶
func (o *OrderSubmitSwapOrderResponse) String() string
func (*OrderSubmitSwapOrderResponse) UnmarshalJSON ¶
func (o *OrderSubmitSwapOrderResponse) UnmarshalJSON(data []byte) error
type OrderSubmitSwapOrderResponseData ¶
type OrderSubmitSwapOrderResponseData struct {
OrderID *string `json:"orderId,omitempty" url:"orderId,omitempty"`
// contains filtered or unexported fields
}
func (*OrderSubmitSwapOrderResponseData) GetExtraProperties ¶
func (o *OrderSubmitSwapOrderResponseData) GetExtraProperties() map[string]interface{}
func (*OrderSubmitSwapOrderResponseData) GetOrderID ¶
func (o *OrderSubmitSwapOrderResponseData) GetOrderID() *string
func (*OrderSubmitSwapOrderResponseData) MarshalJSON ¶
func (o *OrderSubmitSwapOrderResponseData) MarshalJSON() ([]byte, error)
func (*OrderSubmitSwapOrderResponseData) SetOrderID ¶
func (o *OrderSubmitSwapOrderResponseData) SetOrderID(orderID *string)
SetOrderID sets the OrderID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*OrderSubmitSwapOrderResponseData) String ¶
func (o *OrderSubmitSwapOrderResponseData) String() string
func (*OrderSubmitSwapOrderResponseData) UnmarshalJSON ¶
func (o *OrderSubmitSwapOrderResponseData) UnmarshalJSON(data []byte) error
type OrderTxOrSignature ¶
type OrderTxOrSignature struct {
Kind OrderTxOrSignatureKind `json:"kind" url:"kind"`
// Chain name, e.g. ethereum, bsc, base, arbitrum, solana
ChainName string `json:"chainName" url:"chainName"`
ChainID string `json:"chainId" url:"chainId"`
// EIP-712 typed data hash (NoGas signs with eth_sign, not personal_sign)
Hash *string `json:"hash,omitempty" url:"hash,omitempty"`
// Operation data; varies by chain/type. For EIP-712 it contains signType/types/domain/message/primaryType
Data map[string]any `json:"data" url:"data"`
// contains filtered or unexported fields
}
func (*OrderTxOrSignature) GetChainID ¶
func (o *OrderTxOrSignature) GetChainID() string
func (*OrderTxOrSignature) GetChainName ¶
func (o *OrderTxOrSignature) GetChainName() string
func (*OrderTxOrSignature) GetData ¶
func (o *OrderTxOrSignature) GetData() map[string]any
func (*OrderTxOrSignature) GetExtraProperties ¶
func (o *OrderTxOrSignature) GetExtraProperties() map[string]interface{}
func (*OrderTxOrSignature) GetHash ¶
func (o *OrderTxOrSignature) GetHash() *string
func (*OrderTxOrSignature) GetKind ¶
func (o *OrderTxOrSignature) GetKind() OrderTxOrSignatureKind
func (*OrderTxOrSignature) MarshalJSON ¶
func (o *OrderTxOrSignature) MarshalJSON() ([]byte, error)
func (*OrderTxOrSignature) SetChainID ¶
func (o *OrderTxOrSignature) SetChainID(chainID string)
SetChainID sets the ChainID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*OrderTxOrSignature) SetChainName ¶
func (o *OrderTxOrSignature) SetChainName(chainName string)
SetChainName sets the ChainName field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*OrderTxOrSignature) SetData ¶
func (o *OrderTxOrSignature) SetData(data map[string]any)
SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*OrderTxOrSignature) SetHash ¶
func (o *OrderTxOrSignature) SetHash(hash *string)
SetHash sets the Hash field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*OrderTxOrSignature) SetKind ¶
func (o *OrderTxOrSignature) SetKind(kind OrderTxOrSignatureKind)
SetKind sets the Kind field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*OrderTxOrSignature) String ¶
func (o *OrderTxOrSignature) String() string
func (*OrderTxOrSignature) UnmarshalJSON ¶
func (o *OrderTxOrSignature) UnmarshalJSON(data []byte) error
type OrderTxOrSignatureKind ¶
type OrderTxOrSignatureKind string
const ( OrderTxOrSignatureKindTransaction OrderTxOrSignatureKind = "transaction" OrderTxOrSignatureKindSignature OrderTxOrSignatureKind = "signature" )
func NewOrderTxOrSignatureKindFromString ¶
func NewOrderTxOrSignatureKindFromString(s string) (OrderTxOrSignatureKind, error)
func (OrderTxOrSignatureKind) Ptr ¶
func (o OrderTxOrSignatureKind) Ptr() *OrderTxOrSignatureKind
type PoolListRequest ¶
type PoolListRequest struct {
// Chain the token resides on
Chain string `json:"chain" url:"-"`
// Contract address (case-sensitive)
Contract string `json:"contract" url:"-"`
// contains filtered or unexported fields
}
func (*PoolListRequest) MarshalJSON ¶
func (p *PoolListRequest) MarshalJSON() ([]byte, error)
func (*PoolListRequest) SetChain ¶
func (p *PoolListRequest) SetChain(chain string)
SetChain sets the Chain field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*PoolListRequest) SetContract ¶
func (p *PoolListRequest) SetContract(contract string)
SetContract sets the Contract field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*PoolListRequest) UnmarshalJSON ¶
func (p *PoolListRequest) UnmarshalJSON(data []byte) error
type PoolListResponse ¶
type PoolListResponse struct {
// Business data
Data *PoolListResponseData `json:"data,omitempty" url:"data,omitempty"`
// 0 indicates success
Status *int `json:"status,omitempty" url:"status,omitempty"`
TraceID *string `json:"traceId,omitempty" url:"traceId,omitempty"`
// contains filtered or unexported fields
}
func (*PoolListResponse) GetData ¶
func (p *PoolListResponse) GetData() *PoolListResponseData
func (*PoolListResponse) GetExtraProperties ¶
func (p *PoolListResponse) GetExtraProperties() map[string]interface{}
func (*PoolListResponse) GetStatus ¶
func (p *PoolListResponse) GetStatus() *int
func (*PoolListResponse) GetTraceID ¶
func (p *PoolListResponse) GetTraceID() *string
func (*PoolListResponse) MarshalJSON ¶
func (p *PoolListResponse) MarshalJSON() ([]byte, error)
func (*PoolListResponse) SetData ¶
func (p *PoolListResponse) SetData(data *PoolListResponseData)
SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*PoolListResponse) SetStatus ¶
func (p *PoolListResponse) SetStatus(status *int)
SetStatus sets the Status field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*PoolListResponse) SetTraceID ¶
func (p *PoolListResponse) SetTraceID(traceID *string)
SetTraceID sets the TraceID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*PoolListResponse) String ¶
func (p *PoolListResponse) String() string
func (*PoolListResponse) UnmarshalJSON ¶
func (p *PoolListResponse) UnmarshalJSON(data []byte) error
type PoolListResponseData ¶
type PoolListResponseData struct {
TotalLpValue *float64 `json:"totalLpValue,omitempty" url:"totalLpValue,omitempty"`
LockedLpValue *float64 `json:"lockedLpValue,omitempty" url:"lockedLpValue,omitempty"`
LockedLpPercent *float64 `json:"lockedLpPercent,omitempty" url:"lockedLpPercent,omitempty"`
Pools []*PoolListResponseDataPoolsItem `json:"pools,omitempty" url:"pools,omitempty"`
// Add/remove liquidity records
Activities []*PoolListResponseDataActivitiesItem `json:"activities,omitempty" url:"activities,omitempty"`
// contains filtered or unexported fields
}
func (*PoolListResponseData) GetActivities ¶
func (p *PoolListResponseData) GetActivities() []*PoolListResponseDataActivitiesItem
func (*PoolListResponseData) GetExtraProperties ¶
func (p *PoolListResponseData) GetExtraProperties() map[string]interface{}
func (*PoolListResponseData) GetLockedLpPercent ¶
func (p *PoolListResponseData) GetLockedLpPercent() *float64
func (*PoolListResponseData) GetLockedLpValue ¶
func (p *PoolListResponseData) GetLockedLpValue() *float64
func (*PoolListResponseData) GetPools ¶
func (p *PoolListResponseData) GetPools() []*PoolListResponseDataPoolsItem
func (*PoolListResponseData) GetTotalLpValue ¶
func (p *PoolListResponseData) GetTotalLpValue() *float64
func (*PoolListResponseData) MarshalJSON ¶
func (p *PoolListResponseData) MarshalJSON() ([]byte, error)
func (*PoolListResponseData) SetActivities ¶
func (p *PoolListResponseData) SetActivities(activities []*PoolListResponseDataActivitiesItem)
SetActivities sets the Activities field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*PoolListResponseData) SetLockedLpPercent ¶
func (p *PoolListResponseData) SetLockedLpPercent(lockedLpPercent *float64)
SetLockedLpPercent sets the LockedLpPercent field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*PoolListResponseData) SetLockedLpValue ¶
func (p *PoolListResponseData) SetLockedLpValue(lockedLpValue *float64)
SetLockedLpValue sets the LockedLpValue field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*PoolListResponseData) SetPools ¶
func (p *PoolListResponseData) SetPools(pools []*PoolListResponseDataPoolsItem)
SetPools sets the Pools field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*PoolListResponseData) SetTotalLpValue ¶
func (p *PoolListResponseData) SetTotalLpValue(totalLpValue *float64)
SetTotalLpValue sets the TotalLpValue field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*PoolListResponseData) String ¶
func (p *PoolListResponseData) String() string
func (*PoolListResponseData) UnmarshalJSON ¶
func (p *PoolListResponseData) UnmarshalJSON(data []byte) error
type PoolListResponseDataActivitiesItem ¶
type PoolListResponseDataActivitiesItem struct {
Side *PoolListResponseDataActivitiesItemSide `json:"side,omitempty" url:"side,omitempty"`
Token0Symbol *string `json:"token0Symbol,omitempty" url:"token0Symbol,omitempty"`
Token1Symbol *string `json:"token1Symbol,omitempty" url:"token1Symbol,omitempty"`
Amount0 *string `json:"amount0,omitempty" url:"amount0,omitempty"`
Amount1 *string `json:"amount1,omitempty" url:"amount1,omitempty"`
Time *string `json:"time,omitempty" url:"time,omitempty"`
TxID *string `json:"txId,omitempty" url:"txId,omitempty"`
TxURL *string `json:"txUrl,omitempty" url:"txUrl,omitempty"`
TransactionHash *string `json:"transactionHash,omitempty" url:"transactionHash,omitempty"`
TransactionURL *string `json:"transactionUrl,omitempty" url:"transactionUrl,omitempty"`
// contains filtered or unexported fields
}
func (*PoolListResponseDataActivitiesItem) GetAmount0 ¶
func (p *PoolListResponseDataActivitiesItem) GetAmount0() *string
func (*PoolListResponseDataActivitiesItem) GetAmount1 ¶
func (p *PoolListResponseDataActivitiesItem) GetAmount1() *string
func (*PoolListResponseDataActivitiesItem) GetExtraProperties ¶
func (p *PoolListResponseDataActivitiesItem) GetExtraProperties() map[string]interface{}
func (*PoolListResponseDataActivitiesItem) GetSide ¶
func (p *PoolListResponseDataActivitiesItem) GetSide() *PoolListResponseDataActivitiesItemSide
func (*PoolListResponseDataActivitiesItem) GetTime ¶
func (p *PoolListResponseDataActivitiesItem) GetTime() *string
func (*PoolListResponseDataActivitiesItem) GetToken0Symbol ¶
func (p *PoolListResponseDataActivitiesItem) GetToken0Symbol() *string
func (*PoolListResponseDataActivitiesItem) GetToken1Symbol ¶
func (p *PoolListResponseDataActivitiesItem) GetToken1Symbol() *string
func (*PoolListResponseDataActivitiesItem) GetTransactionHash ¶
func (p *PoolListResponseDataActivitiesItem) GetTransactionHash() *string
func (*PoolListResponseDataActivitiesItem) GetTransactionURL ¶
func (p *PoolListResponseDataActivitiesItem) GetTransactionURL() *string
func (*PoolListResponseDataActivitiesItem) GetTxID ¶
func (p *PoolListResponseDataActivitiesItem) GetTxID() *string
func (*PoolListResponseDataActivitiesItem) GetTxURL ¶
func (p *PoolListResponseDataActivitiesItem) GetTxURL() *string
func (*PoolListResponseDataActivitiesItem) MarshalJSON ¶
func (p *PoolListResponseDataActivitiesItem) MarshalJSON() ([]byte, error)
func (*PoolListResponseDataActivitiesItem) SetAmount0 ¶
func (p *PoolListResponseDataActivitiesItem) SetAmount0(amount0 *string)
SetAmount0 sets the Amount0 field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*PoolListResponseDataActivitiesItem) SetAmount1 ¶
func (p *PoolListResponseDataActivitiesItem) SetAmount1(amount1 *string)
SetAmount1 sets the Amount1 field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*PoolListResponseDataActivitiesItem) SetSide ¶
func (p *PoolListResponseDataActivitiesItem) SetSide(side *PoolListResponseDataActivitiesItemSide)
SetSide sets the Side field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*PoolListResponseDataActivitiesItem) SetTime ¶
func (p *PoolListResponseDataActivitiesItem) SetTime(time *string)
SetTime sets the Time field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*PoolListResponseDataActivitiesItem) SetToken0Symbol ¶
func (p *PoolListResponseDataActivitiesItem) SetToken0Symbol(token0Symbol *string)
SetToken0Symbol sets the Token0Symbol field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*PoolListResponseDataActivitiesItem) SetToken1Symbol ¶
func (p *PoolListResponseDataActivitiesItem) SetToken1Symbol(token1Symbol *string)
SetToken1Symbol sets the Token1Symbol field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*PoolListResponseDataActivitiesItem) SetTransactionHash ¶
func (p *PoolListResponseDataActivitiesItem) SetTransactionHash(transactionHash *string)
SetTransactionHash sets the TransactionHash field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*PoolListResponseDataActivitiesItem) SetTransactionURL ¶
func (p *PoolListResponseDataActivitiesItem) SetTransactionURL(transactionURL *string)
SetTransactionURL sets the TransactionURL field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*PoolListResponseDataActivitiesItem) SetTxID ¶
func (p *PoolListResponseDataActivitiesItem) SetTxID(txID *string)
SetTxID sets the TxID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*PoolListResponseDataActivitiesItem) SetTxURL ¶
func (p *PoolListResponseDataActivitiesItem) SetTxURL(txURL *string)
SetTxURL sets the TxURL field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*PoolListResponseDataActivitiesItem) String ¶
func (p *PoolListResponseDataActivitiesItem) String() string
func (*PoolListResponseDataActivitiesItem) UnmarshalJSON ¶
func (p *PoolListResponseDataActivitiesItem) UnmarshalJSON(data []byte) error
type PoolListResponseDataActivitiesItemSide ¶
type PoolListResponseDataActivitiesItemSide string
const ( PoolListResponseDataActivitiesItemSideAdd PoolListResponseDataActivitiesItemSide = "add" PoolListResponseDataActivitiesItemSideRemove PoolListResponseDataActivitiesItemSide = "remove" )
func NewPoolListResponseDataActivitiesItemSideFromString ¶
func NewPoolListResponseDataActivitiesItemSideFromString(s string) (PoolListResponseDataActivitiesItemSide, error)
type PoolListResponseDataPoolsItem ¶
type PoolListResponseDataPoolsItem struct {
PoolAddr *string `json:"poolAddr,omitempty" url:"poolAddr,omitempty"`
PoolSymbol *string `json:"poolSymbol,omitempty" url:"poolSymbol,omitempty"`
Protocol *string `json:"protocol,omitempty" url:"protocol,omitempty"`
ProtocolAddress *string `json:"protocolAddress,omitempty" url:"protocolAddress,omitempty"`
ProtocolIcon *string `json:"protocolIcon,omitempty" url:"protocolIcon,omitempty"`
TotalUsd *string `json:"totalUsd,omitempty" url:"totalUsd,omitempty"`
Change *string `json:"change,omitempty" url:"change,omitempty"`
Token0Symbol *string `json:"token0Symbol,omitempty" url:"token0Symbol,omitempty"`
Token1Symbol *string `json:"token1Symbol,omitempty" url:"token1Symbol,omitempty"`
Token0Contract *string `json:"token0Contract,omitempty" url:"token0Contract,omitempty"`
Token1Contract *string `json:"token1Contract,omitempty" url:"token1Contract,omitempty"`
Reserve0 *string `json:"reserve0,omitempty" url:"reserve0,omitempty"`
Reserve1 *string `json:"reserve1,omitempty" url:"reserve1,omitempty"`
PriceRate *string `json:"priceRate,omitempty" url:"priceRate,omitempty"`
PriceRateText *string `json:"priceRateText,omitempty" url:"priceRateText,omitempty"`
Token0Icon *string `json:"token0Icon,omitempty" url:"token0Icon,omitempty"`
Token1Icon *string `json:"token1Icon,omitempty" url:"token1Icon,omitempty"`
// contains filtered or unexported fields
}
func (*PoolListResponseDataPoolsItem) GetChange ¶
func (p *PoolListResponseDataPoolsItem) GetChange() *string
func (*PoolListResponseDataPoolsItem) GetExtraProperties ¶
func (p *PoolListResponseDataPoolsItem) GetExtraProperties() map[string]interface{}
func (*PoolListResponseDataPoolsItem) GetPoolAddr ¶
func (p *PoolListResponseDataPoolsItem) GetPoolAddr() *string
func (*PoolListResponseDataPoolsItem) GetPoolSymbol ¶
func (p *PoolListResponseDataPoolsItem) GetPoolSymbol() *string
func (*PoolListResponseDataPoolsItem) GetPriceRate ¶
func (p *PoolListResponseDataPoolsItem) GetPriceRate() *string
func (*PoolListResponseDataPoolsItem) GetPriceRateText ¶
func (p *PoolListResponseDataPoolsItem) GetPriceRateText() *string
func (*PoolListResponseDataPoolsItem) GetProtocol ¶
func (p *PoolListResponseDataPoolsItem) GetProtocol() *string
func (*PoolListResponseDataPoolsItem) GetProtocolAddress ¶
func (p *PoolListResponseDataPoolsItem) GetProtocolAddress() *string
func (*PoolListResponseDataPoolsItem) GetProtocolIcon ¶
func (p *PoolListResponseDataPoolsItem) GetProtocolIcon() *string
func (*PoolListResponseDataPoolsItem) GetReserve0 ¶
func (p *PoolListResponseDataPoolsItem) GetReserve0() *string
func (*PoolListResponseDataPoolsItem) GetReserve1 ¶
func (p *PoolListResponseDataPoolsItem) GetReserve1() *string
func (*PoolListResponseDataPoolsItem) GetToken0Contract ¶
func (p *PoolListResponseDataPoolsItem) GetToken0Contract() *string
func (*PoolListResponseDataPoolsItem) GetToken0Icon ¶
func (p *PoolListResponseDataPoolsItem) GetToken0Icon() *string
func (*PoolListResponseDataPoolsItem) GetToken0Symbol ¶
func (p *PoolListResponseDataPoolsItem) GetToken0Symbol() *string
func (*PoolListResponseDataPoolsItem) GetToken1Contract ¶
func (p *PoolListResponseDataPoolsItem) GetToken1Contract() *string
func (*PoolListResponseDataPoolsItem) GetToken1Icon ¶
func (p *PoolListResponseDataPoolsItem) GetToken1Icon() *string
func (*PoolListResponseDataPoolsItem) GetToken1Symbol ¶
func (p *PoolListResponseDataPoolsItem) GetToken1Symbol() *string
func (*PoolListResponseDataPoolsItem) GetTotalUsd ¶
func (p *PoolListResponseDataPoolsItem) GetTotalUsd() *string
func (*PoolListResponseDataPoolsItem) MarshalJSON ¶
func (p *PoolListResponseDataPoolsItem) MarshalJSON() ([]byte, error)
func (*PoolListResponseDataPoolsItem) SetChange ¶
func (p *PoolListResponseDataPoolsItem) SetChange(change *string)
SetChange sets the Change field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*PoolListResponseDataPoolsItem) SetPoolAddr ¶
func (p *PoolListResponseDataPoolsItem) SetPoolAddr(poolAddr *string)
SetPoolAddr sets the PoolAddr field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*PoolListResponseDataPoolsItem) SetPoolSymbol ¶
func (p *PoolListResponseDataPoolsItem) SetPoolSymbol(poolSymbol *string)
SetPoolSymbol sets the PoolSymbol field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*PoolListResponseDataPoolsItem) SetPriceRate ¶
func (p *PoolListResponseDataPoolsItem) SetPriceRate(priceRate *string)
SetPriceRate sets the PriceRate field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*PoolListResponseDataPoolsItem) SetPriceRateText ¶
func (p *PoolListResponseDataPoolsItem) SetPriceRateText(priceRateText *string)
SetPriceRateText sets the PriceRateText field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*PoolListResponseDataPoolsItem) SetProtocol ¶
func (p *PoolListResponseDataPoolsItem) SetProtocol(protocol *string)
SetProtocol sets the Protocol field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*PoolListResponseDataPoolsItem) SetProtocolAddress ¶
func (p *PoolListResponseDataPoolsItem) SetProtocolAddress(protocolAddress *string)
SetProtocolAddress sets the ProtocolAddress field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*PoolListResponseDataPoolsItem) SetProtocolIcon ¶
func (p *PoolListResponseDataPoolsItem) SetProtocolIcon(protocolIcon *string)
SetProtocolIcon sets the ProtocolIcon field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*PoolListResponseDataPoolsItem) SetReserve0 ¶
func (p *PoolListResponseDataPoolsItem) SetReserve0(reserve0 *string)
SetReserve0 sets the Reserve0 field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*PoolListResponseDataPoolsItem) SetReserve1 ¶
func (p *PoolListResponseDataPoolsItem) SetReserve1(reserve1 *string)
SetReserve1 sets the Reserve1 field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*PoolListResponseDataPoolsItem) SetToken0Contract ¶
func (p *PoolListResponseDataPoolsItem) SetToken0Contract(token0Contract *string)
SetToken0Contract sets the Token0Contract field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*PoolListResponseDataPoolsItem) SetToken0Icon ¶
func (p *PoolListResponseDataPoolsItem) SetToken0Icon(token0Icon *string)
SetToken0Icon sets the Token0Icon field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*PoolListResponseDataPoolsItem) SetToken0Symbol ¶
func (p *PoolListResponseDataPoolsItem) SetToken0Symbol(token0Symbol *string)
SetToken0Symbol sets the Token0Symbol field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*PoolListResponseDataPoolsItem) SetToken1Contract ¶
func (p *PoolListResponseDataPoolsItem) SetToken1Contract(token1Contract *string)
SetToken1Contract sets the Token1Contract field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*PoolListResponseDataPoolsItem) SetToken1Icon ¶
func (p *PoolListResponseDataPoolsItem) SetToken1Icon(token1Icon *string)
SetToken1Icon sets the Token1Icon field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*PoolListResponseDataPoolsItem) SetToken1Symbol ¶
func (p *PoolListResponseDataPoolsItem) SetToken1Symbol(token1Symbol *string)
SetToken1Symbol sets the Token1Symbol field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*PoolListResponseDataPoolsItem) SetTotalUsd ¶
func (p *PoolListResponseDataPoolsItem) SetTotalUsd(totalUsd *string)
SetTotalUsd sets the TotalUsd field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*PoolListResponseDataPoolsItem) String ¶
func (p *PoolListResponseDataPoolsItem) String() string
func (*PoolListResponseDataPoolsItem) UnmarshalJSON ¶
func (p *PoolListResponseDataPoolsItem) UnmarshalJSON(data []byte) error
type RwaChainAsset ¶
type RwaChainAsset struct {
Chain *string `json:"chain,omitempty" url:"chain,omitempty"`
ChainIcon *string `json:"chain_icon,omitempty" url:"chain_icon,omitempty"`
ChainName *string `json:"chain_name,omitempty" url:"chain_name,omitempty"`
Icon *string `json:"icon,omitempty" url:"icon,omitempty"`
Symbol *string `json:"symbol,omitempty" url:"symbol,omitempty"`
Name *string `json:"name,omitempty" url:"name,omitempty"`
Contract *string `json:"contract,omitempty" url:"contract,omitempty"`
Decimals *int `json:"decimals,omitempty" url:"decimals,omitempty"`
LatestPrice *string `json:"latest_price,omitempty" url:"latest_price,omitempty"`
Price24HChange *string `json:"price_24h_change,omitempty" url:"price_24h_change,omitempty"`
Price24HChangeRatio *string `json:"price_24h_change_ratio,omitempty" url:"price_24h_change_ratio,omitempty"`
TxMaximumBuyUsd *string `json:"tx_maximum_buy_usd,omitempty" url:"tx_maximum_buy_usd,omitempty"`
TxMinimumBuyUsd *string `json:"tx_minimum_buy_usd,omitempty" url:"tx_minimum_buy_usd,omitempty"`
TxMaximumSellUsd *string `json:"tx_maximum_sell_usd,omitempty" url:"tx_maximum_sell_usd,omitempty"`
TxMinimumSellUsd *string `json:"tx_minimum_sell_usd,omitempty" url:"tx_minimum_sell_usd,omitempty"`
DataSource *RwaChainAssetDataSource `json:"data_source,omitempty" url:"data_source,omitempty"`
MarketStatus *RwaChainAssetMarketStatus `json:"market_status,omitempty" url:"market_status,omitempty"`
MarketStatusTitle *string `json:"market_status_title,omitempty" url:"market_status_title,omitempty"`
// ondo only
MarketStatusCode *RwaChainAssetMarketStatusCode `json:"market_status_code,omitempty" url:"market_status_code,omitempty"`
// contains filtered or unexported fields
}
func (*RwaChainAsset) GetChain ¶
func (r *RwaChainAsset) GetChain() *string
func (*RwaChainAsset) GetChainIcon ¶
func (r *RwaChainAsset) GetChainIcon() *string
func (*RwaChainAsset) GetChainName ¶
func (r *RwaChainAsset) GetChainName() *string
func (*RwaChainAsset) GetContract ¶
func (r *RwaChainAsset) GetContract() *string
func (*RwaChainAsset) GetDataSource ¶
func (r *RwaChainAsset) GetDataSource() *RwaChainAssetDataSource
func (*RwaChainAsset) GetDecimals ¶
func (r *RwaChainAsset) GetDecimals() *int
func (*RwaChainAsset) GetExtraProperties ¶
func (r *RwaChainAsset) GetExtraProperties() map[string]interface{}
func (*RwaChainAsset) GetIcon ¶
func (r *RwaChainAsset) GetIcon() *string
func (*RwaChainAsset) GetLatestPrice ¶
func (r *RwaChainAsset) GetLatestPrice() *string
func (*RwaChainAsset) GetMarketStatus ¶
func (r *RwaChainAsset) GetMarketStatus() *RwaChainAssetMarketStatus
func (*RwaChainAsset) GetMarketStatusCode ¶
func (r *RwaChainAsset) GetMarketStatusCode() *RwaChainAssetMarketStatusCode
func (*RwaChainAsset) GetMarketStatusTitle ¶
func (r *RwaChainAsset) GetMarketStatusTitle() *string
func (*RwaChainAsset) GetName ¶
func (r *RwaChainAsset) GetName() *string
func (*RwaChainAsset) GetPrice24HChange ¶
func (r *RwaChainAsset) GetPrice24HChange() *string
func (*RwaChainAsset) GetPrice24HChangeRatio ¶
func (r *RwaChainAsset) GetPrice24HChangeRatio() *string
func (*RwaChainAsset) GetSymbol ¶
func (r *RwaChainAsset) GetSymbol() *string
func (*RwaChainAsset) GetTxMaximumBuyUsd ¶
func (r *RwaChainAsset) GetTxMaximumBuyUsd() *string
func (*RwaChainAsset) GetTxMaximumSellUsd ¶
func (r *RwaChainAsset) GetTxMaximumSellUsd() *string
func (*RwaChainAsset) GetTxMinimumBuyUsd ¶
func (r *RwaChainAsset) GetTxMinimumBuyUsd() *string
func (*RwaChainAsset) GetTxMinimumSellUsd ¶
func (r *RwaChainAsset) GetTxMinimumSellUsd() *string
func (*RwaChainAsset) MarshalJSON ¶
func (r *RwaChainAsset) MarshalJSON() ([]byte, error)
func (*RwaChainAsset) SetChain ¶
func (r *RwaChainAsset) SetChain(chain *string)
SetChain sets the Chain field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*RwaChainAsset) SetChainIcon ¶
func (r *RwaChainAsset) SetChainIcon(chainIcon *string)
SetChainIcon sets the ChainIcon field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*RwaChainAsset) SetChainName ¶
func (r *RwaChainAsset) SetChainName(chainName *string)
SetChainName sets the ChainName field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*RwaChainAsset) SetContract ¶
func (r *RwaChainAsset) SetContract(contract *string)
SetContract sets the Contract field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*RwaChainAsset) SetDataSource ¶
func (r *RwaChainAsset) SetDataSource(dataSource *RwaChainAssetDataSource)
SetDataSource sets the DataSource field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*RwaChainAsset) SetDecimals ¶
func (r *RwaChainAsset) SetDecimals(decimals *int)
SetDecimals sets the Decimals field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*RwaChainAsset) SetIcon ¶
func (r *RwaChainAsset) SetIcon(icon *string)
SetIcon sets the Icon field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*RwaChainAsset) SetLatestPrice ¶
func (r *RwaChainAsset) SetLatestPrice(latestPrice *string)
SetLatestPrice sets the LatestPrice field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*RwaChainAsset) SetMarketStatus ¶
func (r *RwaChainAsset) SetMarketStatus(marketStatus *RwaChainAssetMarketStatus)
SetMarketStatus sets the MarketStatus field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*RwaChainAsset) SetMarketStatusCode ¶
func (r *RwaChainAsset) SetMarketStatusCode(marketStatusCode *RwaChainAssetMarketStatusCode)
SetMarketStatusCode sets the MarketStatusCode field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*RwaChainAsset) SetMarketStatusTitle ¶
func (r *RwaChainAsset) SetMarketStatusTitle(marketStatusTitle *string)
SetMarketStatusTitle sets the MarketStatusTitle field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*RwaChainAsset) SetName ¶
func (r *RwaChainAsset) SetName(name *string)
SetName sets the Name field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*RwaChainAsset) SetPrice24HChange ¶
func (r *RwaChainAsset) SetPrice24HChange(price24HChange *string)
SetPrice24HChange sets the Price24HChange field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*RwaChainAsset) SetPrice24HChangeRatio ¶
func (r *RwaChainAsset) SetPrice24HChangeRatio(price24HChangeRatio *string)
SetPrice24HChangeRatio sets the Price24HChangeRatio field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*RwaChainAsset) SetSymbol ¶
func (r *RwaChainAsset) SetSymbol(symbol *string)
SetSymbol sets the Symbol field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*RwaChainAsset) SetTxMaximumBuyUsd ¶
func (r *RwaChainAsset) SetTxMaximumBuyUsd(txMaximumBuyUsd *string)
SetTxMaximumBuyUsd sets the TxMaximumBuyUsd field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*RwaChainAsset) SetTxMaximumSellUsd ¶
func (r *RwaChainAsset) SetTxMaximumSellUsd(txMaximumSellUsd *string)
SetTxMaximumSellUsd sets the TxMaximumSellUsd field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*RwaChainAsset) SetTxMinimumBuyUsd ¶
func (r *RwaChainAsset) SetTxMinimumBuyUsd(txMinimumBuyUsd *string)
SetTxMinimumBuyUsd sets the TxMinimumBuyUsd field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*RwaChainAsset) SetTxMinimumSellUsd ¶
func (r *RwaChainAsset) SetTxMinimumSellUsd(txMinimumSellUsd *string)
SetTxMinimumSellUsd sets the TxMinimumSellUsd field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*RwaChainAsset) String ¶
func (r *RwaChainAsset) String() string
func (*RwaChainAsset) UnmarshalJSON ¶
func (r *RwaChainAsset) UnmarshalJSON(data []byte) error
type RwaChainAssetDataSource ¶
type RwaChainAssetDataSource string
const ( RwaChainAssetDataSourceOndo RwaChainAssetDataSource = "ondo" RwaChainAssetDataSourceXstocks RwaChainAssetDataSource = "xstocks" )
func NewRwaChainAssetDataSourceFromString ¶
func NewRwaChainAssetDataSourceFromString(s string) (RwaChainAssetDataSource, error)
func (RwaChainAssetDataSource) Ptr ¶
func (r RwaChainAssetDataSource) Ptr() *RwaChainAssetDataSource
type RwaChainAssetMarketStatus ¶
type RwaChainAssetMarketStatus string
const ( RwaChainAssetMarketStatusOpen RwaChainAssetMarketStatus = "open" RwaChainAssetMarketStatusClose RwaChainAssetMarketStatus = "close" )
func NewRwaChainAssetMarketStatusFromString ¶
func NewRwaChainAssetMarketStatusFromString(s string) (RwaChainAssetMarketStatus, error)
func (RwaChainAssetMarketStatus) Ptr ¶
func (r RwaChainAssetMarketStatus) Ptr() *RwaChainAssetMarketStatus
type RwaChainAssetMarketStatusCode ¶
type RwaChainAssetMarketStatusCode string
ondo only
const ( RwaChainAssetMarketStatusCodeRegular RwaChainAssetMarketStatusCode = "regular" RwaChainAssetMarketStatusCodePremarket RwaChainAssetMarketStatusCode = "premarket" RwaChainAssetMarketStatusCodePostmarket RwaChainAssetMarketStatusCode = "postmarket" RwaChainAssetMarketStatusCodeOvernight RwaChainAssetMarketStatusCode = "overnight" RwaChainAssetMarketStatusCodePaused RwaChainAssetMarketStatusCode = "paused" RwaChainAssetMarketStatusCodeClosed RwaChainAssetMarketStatusCode = "closed" )
func NewRwaChainAssetMarketStatusCodeFromString ¶
func NewRwaChainAssetMarketStatusCodeFromString(s string) (RwaChainAssetMarketStatusCode, error)
func (RwaChainAssetMarketStatusCode) Ptr ¶
func (r RwaChainAssetMarketStatusCode) Ptr() *RwaChainAssetMarketStatusCode
type RwaCheckContractRequest ¶
type RwaCheckContractRequest struct {
Chain string `json:"chain" url:"-"`
Contract string `json:"contract" url:"-"`
// contains filtered or unexported fields
}
func (*RwaCheckContractRequest) MarshalJSON ¶
func (r *RwaCheckContractRequest) MarshalJSON() ([]byte, error)
func (*RwaCheckContractRequest) SetChain ¶
func (r *RwaCheckContractRequest) SetChain(chain string)
SetChain sets the Chain field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*RwaCheckContractRequest) SetContract ¶
func (r *RwaCheckContractRequest) SetContract(contract string)
SetContract sets the Contract field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*RwaCheckContractRequest) UnmarshalJSON ¶
func (r *RwaCheckContractRequest) UnmarshalJSON(data []byte) error
type RwaCheckContractResponse ¶
type RwaCheckContractResponse struct {
Data *RwaCheckContractResponseData `json:"data,omitempty" url:"data,omitempty"`
// 0 = success, 1 = failure (data is an error message string)
Status *int `json:"status,omitempty" url:"status,omitempty"`
TraceID *string `json:"traceId,omitempty" url:"traceId,omitempty"`
// contains filtered or unexported fields
}
func (*RwaCheckContractResponse) GetData ¶
func (r *RwaCheckContractResponse) GetData() *RwaCheckContractResponseData
func (*RwaCheckContractResponse) GetExtraProperties ¶
func (r *RwaCheckContractResponse) GetExtraProperties() map[string]interface{}
func (*RwaCheckContractResponse) GetStatus ¶
func (r *RwaCheckContractResponse) GetStatus() *int
func (*RwaCheckContractResponse) GetTraceID ¶
func (r *RwaCheckContractResponse) GetTraceID() *string
func (*RwaCheckContractResponse) MarshalJSON ¶
func (r *RwaCheckContractResponse) MarshalJSON() ([]byte, error)
func (*RwaCheckContractResponse) SetData ¶
func (r *RwaCheckContractResponse) SetData(data *RwaCheckContractResponseData)
SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*RwaCheckContractResponse) SetStatus ¶
func (r *RwaCheckContractResponse) SetStatus(status *int)
SetStatus sets the Status field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*RwaCheckContractResponse) SetTraceID ¶
func (r *RwaCheckContractResponse) SetTraceID(traceID *string)
SetTraceID sets the TraceID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*RwaCheckContractResponse) String ¶
func (r *RwaCheckContractResponse) String() string
func (*RwaCheckContractResponse) UnmarshalJSON ¶
func (r *RwaCheckContractResponse) UnmarshalJSON(data []byte) error
type RwaCheckContractResponseData ¶
type RwaCheckContractResponseData struct {
IsExisted *bool `json:"is_existed,omitempty" url:"is_existed,omitempty"`
StockTicker *string `json:"stock_ticker,omitempty" url:"stock_ticker,omitempty"`
DataSource *string `json:"data_source,omitempty" url:"data_source,omitempty"`
// contains filtered or unexported fields
}
func (*RwaCheckContractResponseData) GetDataSource ¶
func (r *RwaCheckContractResponseData) GetDataSource() *string
func (*RwaCheckContractResponseData) GetExtraProperties ¶
func (r *RwaCheckContractResponseData) GetExtraProperties() map[string]interface{}
func (*RwaCheckContractResponseData) GetIsExisted ¶
func (r *RwaCheckContractResponseData) GetIsExisted() *bool
func (*RwaCheckContractResponseData) GetStockTicker ¶
func (r *RwaCheckContractResponseData) GetStockTicker() *string
func (*RwaCheckContractResponseData) MarshalJSON ¶
func (r *RwaCheckContractResponseData) MarshalJSON() ([]byte, error)
func (*RwaCheckContractResponseData) SetDataSource ¶
func (r *RwaCheckContractResponseData) SetDataSource(dataSource *string)
SetDataSource sets the DataSource field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*RwaCheckContractResponseData) SetIsExisted ¶
func (r *RwaCheckContractResponseData) SetIsExisted(isExisted *bool)
SetIsExisted sets the IsExisted field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*RwaCheckContractResponseData) SetStockTicker ¶
func (r *RwaCheckContractResponseData) SetStockTicker(stockTicker *string)
SetStockTicker sets the StockTicker field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*RwaCheckContractResponseData) String ¶
func (r *RwaCheckContractResponseData) String() string
func (*RwaCheckContractResponseData) UnmarshalJSON ¶
func (r *RwaCheckContractResponseData) UnmarshalJSON(data []byte) error
type RwaKlineRequest ¶
type RwaKlineRequest struct {
// e.g. eth, sol
Chain string `json:"chain" url:"-"`
Contract string `json:"contract" url:"-"`
// Defaults to 5m; ondo excludes sub-minute intervals and 12h
Period *RwaKlineRequestPeriod `json:"period,omitempty" url:"-"`
// Number of entries; defaults to a value derived from period
Size *int `json:"size,omitempty" url:"-"`
// End time (seconds); leave empty for the latest
EndTime *int64 `json:"end_time,omitempty" url:"-"`
// contains filtered or unexported fields
}
func (*RwaKlineRequest) MarshalJSON ¶
func (r *RwaKlineRequest) MarshalJSON() ([]byte, error)
func (*RwaKlineRequest) SetChain ¶
func (r *RwaKlineRequest) SetChain(chain string)
SetChain sets the Chain field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*RwaKlineRequest) SetContract ¶
func (r *RwaKlineRequest) SetContract(contract string)
SetContract sets the Contract field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*RwaKlineRequest) SetEndTime ¶
func (r *RwaKlineRequest) SetEndTime(endTime *int64)
SetEndTime sets the EndTime field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*RwaKlineRequest) SetPeriod ¶
func (r *RwaKlineRequest) SetPeriod(period *RwaKlineRequestPeriod)
SetPeriod sets the Period field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*RwaKlineRequest) SetSize ¶
func (r *RwaKlineRequest) SetSize(size *int)
SetSize sets the Size field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*RwaKlineRequest) UnmarshalJSON ¶
func (r *RwaKlineRequest) UnmarshalJSON(data []byte) error
type RwaKlineRequestPeriod ¶
type RwaKlineRequestPeriod string
Defaults to 5m; ondo excludes sub-minute intervals and 12h
const ( RwaKlineRequestPeriodOneS RwaKlineRequestPeriod = "1s" RwaKlineRequestPeriodFiveS RwaKlineRequestPeriod = "5s" RwaKlineRequestPeriodFifteenS RwaKlineRequestPeriod = "15s" RwaKlineRequestPeriodOneM RwaKlineRequestPeriod = "1m" RwaKlineRequestPeriodFiveM RwaKlineRequestPeriod = "5m" RwaKlineRequestPeriodFifteenM RwaKlineRequestPeriod = "15m" RwaKlineRequestPeriodThirtyM RwaKlineRequestPeriod = "30m" RwaKlineRequestPeriodOneH RwaKlineRequestPeriod = "1h" RwaKlineRequestPeriodTwoH RwaKlineRequestPeriod = "2h" RwaKlineRequestPeriodFourH RwaKlineRequestPeriod = "4h" RwaKlineRequestPeriodSixH RwaKlineRequestPeriod = "6h" RwaKlineRequestPeriodEightH RwaKlineRequestPeriod = "8h" RwaKlineRequestPeriodTwelveH RwaKlineRequestPeriod = "12h" RwaKlineRequestPeriodOneD RwaKlineRequestPeriod = "1d" RwaKlineRequestPeriodThreeD RwaKlineRequestPeriod = "3d" RwaKlineRequestPeriodOneW RwaKlineRequestPeriod = "1w" )
func NewRwaKlineRequestPeriodFromString ¶
func NewRwaKlineRequestPeriodFromString(s string) (RwaKlineRequestPeriod, error)
func (RwaKlineRequestPeriod) Ptr ¶
func (r RwaKlineRequestPeriod) Ptr() *RwaKlineRequestPeriod
type RwaKlineResponse ¶
type RwaKlineResponse struct {
Data *RwaKlineResponseData `json:"data,omitempty" url:"data,omitempty"`
// 0 = success, 1 = failure (data is an error message string)
Status *int `json:"status,omitempty" url:"status,omitempty"`
TraceID *string `json:"traceId,omitempty" url:"traceId,omitempty"`
// contains filtered or unexported fields
}
func (*RwaKlineResponse) GetData ¶
func (r *RwaKlineResponse) GetData() *RwaKlineResponseData
func (*RwaKlineResponse) GetExtraProperties ¶
func (r *RwaKlineResponse) GetExtraProperties() map[string]interface{}
func (*RwaKlineResponse) GetStatus ¶
func (r *RwaKlineResponse) GetStatus() *int
func (*RwaKlineResponse) GetTraceID ¶
func (r *RwaKlineResponse) GetTraceID() *string
func (*RwaKlineResponse) MarshalJSON ¶
func (r *RwaKlineResponse) MarshalJSON() ([]byte, error)
func (*RwaKlineResponse) SetData ¶
func (r *RwaKlineResponse) SetData(data *RwaKlineResponseData)
SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*RwaKlineResponse) SetStatus ¶
func (r *RwaKlineResponse) SetStatus(status *int)
SetStatus sets the Status field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*RwaKlineResponse) SetTraceID ¶
func (r *RwaKlineResponse) SetTraceID(traceID *string)
SetTraceID sets the TraceID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*RwaKlineResponse) String ¶
func (r *RwaKlineResponse) String() string
func (*RwaKlineResponse) UnmarshalJSON ¶
func (r *RwaKlineResponse) UnmarshalJSON(data []byte) error
type RwaKlineResponseData ¶
type RwaKlineResponseData struct {
List []*RwaKlineResponseDataListItem `json:"list,omitempty" url:"list,omitempty"`
// contains filtered or unexported fields
}
func (*RwaKlineResponseData) GetExtraProperties ¶
func (r *RwaKlineResponseData) GetExtraProperties() map[string]interface{}
func (*RwaKlineResponseData) GetList ¶
func (r *RwaKlineResponseData) GetList() []*RwaKlineResponseDataListItem
func (*RwaKlineResponseData) MarshalJSON ¶
func (r *RwaKlineResponseData) MarshalJSON() ([]byte, error)
func (*RwaKlineResponseData) SetList ¶
func (r *RwaKlineResponseData) SetList(list []*RwaKlineResponseDataListItem)
SetList sets the List field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*RwaKlineResponseData) String ¶
func (r *RwaKlineResponseData) String() string
func (*RwaKlineResponseData) UnmarshalJSON ¶
func (r *RwaKlineResponseData) UnmarshalJSON(data []byte) error
type RwaKlineResponseDataListItem ¶
type RwaKlineResponseDataListItem struct {
Ts *int `json:"ts,omitempty" url:"ts,omitempty"`
Open *float64 `json:"open,omitempty" url:"open,omitempty"`
High *float64 `json:"high,omitempty" url:"high,omitempty"`
Low *float64 `json:"low,omitempty" url:"low,omitempty"`
Close *float64 `json:"close,omitempty" url:"close,omitempty"`
// Returned for on-chain K-lines; not included for ondo
Volume *float64 `json:"volume,omitempty" url:"volume,omitempty"`
// Returned for on-chain K-lines; not included for ondo
Amount *float64 `json:"amount,omitempty" url:"amount,omitempty"`
// Returned for on-chain K-lines; not included for ondo
Txn *int `json:"txn,omitempty" url:"txn,omitempty"`
// contains filtered or unexported fields
}
func (*RwaKlineResponseDataListItem) GetAmount ¶
func (r *RwaKlineResponseDataListItem) GetAmount() *float64
func (*RwaKlineResponseDataListItem) GetClose ¶
func (r *RwaKlineResponseDataListItem) GetClose() *float64
func (*RwaKlineResponseDataListItem) GetExtraProperties ¶
func (r *RwaKlineResponseDataListItem) GetExtraProperties() map[string]interface{}
func (*RwaKlineResponseDataListItem) GetHigh ¶
func (r *RwaKlineResponseDataListItem) GetHigh() *float64
func (*RwaKlineResponseDataListItem) GetLow ¶
func (r *RwaKlineResponseDataListItem) GetLow() *float64
func (*RwaKlineResponseDataListItem) GetOpen ¶
func (r *RwaKlineResponseDataListItem) GetOpen() *float64
func (*RwaKlineResponseDataListItem) GetTs ¶
func (r *RwaKlineResponseDataListItem) GetTs() *int
func (*RwaKlineResponseDataListItem) GetTxn ¶
func (r *RwaKlineResponseDataListItem) GetTxn() *int
func (*RwaKlineResponseDataListItem) GetVolume ¶
func (r *RwaKlineResponseDataListItem) GetVolume() *float64
func (*RwaKlineResponseDataListItem) MarshalJSON ¶
func (r *RwaKlineResponseDataListItem) MarshalJSON() ([]byte, error)
func (*RwaKlineResponseDataListItem) SetAmount ¶
func (r *RwaKlineResponseDataListItem) SetAmount(amount *float64)
SetAmount sets the Amount field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*RwaKlineResponseDataListItem) SetClose ¶
func (r *RwaKlineResponseDataListItem) SetClose(close *float64)
SetClose sets the Close field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*RwaKlineResponseDataListItem) SetHigh ¶
func (r *RwaKlineResponseDataListItem) SetHigh(high *float64)
SetHigh sets the High field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*RwaKlineResponseDataListItem) SetLow ¶
func (r *RwaKlineResponseDataListItem) SetLow(low *float64)
SetLow sets the Low field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*RwaKlineResponseDataListItem) SetOpen ¶
func (r *RwaKlineResponseDataListItem) SetOpen(open *float64)
SetOpen sets the Open field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*RwaKlineResponseDataListItem) SetTs ¶
func (r *RwaKlineResponseDataListItem) SetTs(ts *int)
SetTs sets the Ts field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*RwaKlineResponseDataListItem) SetTxn ¶
func (r *RwaKlineResponseDataListItem) SetTxn(txn *int)
SetTxn sets the Txn field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*RwaKlineResponseDataListItem) SetVolume ¶
func (r *RwaKlineResponseDataListItem) SetVolume(volume *float64)
SetVolume sets the Volume field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*RwaKlineResponseDataListItem) String ¶
func (r *RwaKlineResponseDataListItem) String() string
func (*RwaKlineResponseDataListItem) UnmarshalJSON ¶
func (r *RwaKlineResponseDataListItem) UnmarshalJSON(data []byte) error
type RwaResponseEnvelope ¶
type RwaResponseEnvelope struct {
// 0 = success, 1 = failure (data is an error message string)
Status *int `json:"status,omitempty" url:"status,omitempty"`
TraceID *string `json:"traceId,omitempty" url:"traceId,omitempty"`
Data any `json:"data,omitempty" url:"data,omitempty"`
// contains filtered or unexported fields
}
func (*RwaResponseEnvelope) GetData ¶
func (r *RwaResponseEnvelope) GetData() any
func (*RwaResponseEnvelope) GetExtraProperties ¶
func (r *RwaResponseEnvelope) GetExtraProperties() map[string]interface{}
func (*RwaResponseEnvelope) GetStatus ¶
func (r *RwaResponseEnvelope) GetStatus() *int
func (*RwaResponseEnvelope) GetTraceID ¶
func (r *RwaResponseEnvelope) GetTraceID() *string
func (*RwaResponseEnvelope) MarshalJSON ¶
func (r *RwaResponseEnvelope) MarshalJSON() ([]byte, error)
func (*RwaResponseEnvelope) SetData ¶
func (r *RwaResponseEnvelope) SetData(data any)
SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*RwaResponseEnvelope) SetStatus ¶
func (r *RwaResponseEnvelope) SetStatus(status *int)
SetStatus sets the Status field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*RwaResponseEnvelope) SetTraceID ¶
func (r *RwaResponseEnvelope) SetTraceID(traceID *string)
SetTraceID sets the TraceID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*RwaResponseEnvelope) String ¶
func (r *RwaResponseEnvelope) String() string
func (*RwaResponseEnvelope) UnmarshalJSON ¶
func (r *RwaResponseEnvelope) UnmarshalJSON(data []byte) error
type RwaStockInfoRequest ¶
type RwaStockInfoRequest struct {
// Stock ticker (normalized server-side), e.g. TSLA
Ticker *string `json:"ticker,omitempty" url:"-"`
Chain *string `json:"chain,omitempty" url:"-"`
Contract *string `json:"contract,omitempty" url:"-"`
// Whether to include delisted data; defaults to false
HasOffline *bool `json:"has_offline,omitempty" url:"-"`
// contains filtered or unexported fields
}
func (*RwaStockInfoRequest) MarshalJSON ¶
func (r *RwaStockInfoRequest) MarshalJSON() ([]byte, error)
func (*RwaStockInfoRequest) SetChain ¶
func (r *RwaStockInfoRequest) SetChain(chain *string)
SetChain sets the Chain field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*RwaStockInfoRequest) SetContract ¶
func (r *RwaStockInfoRequest) SetContract(contract *string)
SetContract sets the Contract field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*RwaStockInfoRequest) SetHasOffline ¶
func (r *RwaStockInfoRequest) SetHasOffline(hasOffline *bool)
SetHasOffline sets the HasOffline field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*RwaStockInfoRequest) SetTicker ¶
func (r *RwaStockInfoRequest) SetTicker(ticker *string)
SetTicker sets the Ticker field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*RwaStockInfoRequest) UnmarshalJSON ¶
func (r *RwaStockInfoRequest) UnmarshalJSON(data []byte) error
type RwaStockInfoResponse ¶
type RwaStockInfoResponse struct {
Data *RwaStockInfoResponseData `json:"data,omitempty" url:"data,omitempty"`
// 0 = success, 1 = failure (data is an error message string)
Status *int `json:"status,omitempty" url:"status,omitempty"`
TraceID *string `json:"traceId,omitempty" url:"traceId,omitempty"`
// contains filtered or unexported fields
}
func (*RwaStockInfoResponse) GetData ¶
func (r *RwaStockInfoResponse) GetData() *RwaStockInfoResponseData
func (*RwaStockInfoResponse) GetExtraProperties ¶
func (r *RwaStockInfoResponse) GetExtraProperties() map[string]interface{}
func (*RwaStockInfoResponse) GetStatus ¶
func (r *RwaStockInfoResponse) GetStatus() *int
func (*RwaStockInfoResponse) GetTraceID ¶
func (r *RwaStockInfoResponse) GetTraceID() *string
func (*RwaStockInfoResponse) MarshalJSON ¶
func (r *RwaStockInfoResponse) MarshalJSON() ([]byte, error)
func (*RwaStockInfoResponse) SetData ¶
func (r *RwaStockInfoResponse) SetData(data *RwaStockInfoResponseData)
SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*RwaStockInfoResponse) SetStatus ¶
func (r *RwaStockInfoResponse) SetStatus(status *int)
SetStatus sets the Status field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*RwaStockInfoResponse) SetTraceID ¶
func (r *RwaStockInfoResponse) SetTraceID(traceID *string)
SetTraceID sets the TraceID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*RwaStockInfoResponse) String ¶
func (r *RwaStockInfoResponse) String() string
func (*RwaStockInfoResponse) UnmarshalJSON ¶
func (r *RwaStockInfoResponse) UnmarshalJSON(data []byte) error
type RwaStockInfoResponseData ¶
type RwaStockInfoResponseData struct {
Ticker *string `json:"ticker,omitempty" url:"ticker,omitempty"`
Name *string `json:"name,omitempty" url:"name,omitempty"`
Icon *string `json:"icon,omitempty" url:"icon,omitempty"`
LatestPrice *string `json:"latest_price,omitempty" url:"latest_price,omitempty"`
Price24HChange *string `json:"price_24h_change,omitempty" url:"price_24h_change,omitempty"`
Price24HChangeRatio *string `json:"price_24h_change_ratio,omitempty" url:"price_24h_change_ratio,omitempty"`
ChainAssets []*RwaChainAsset `json:"chain_assets,omitempty" url:"chain_assets,omitempty"`
// contains filtered or unexported fields
}
func (*RwaStockInfoResponseData) GetChainAssets ¶
func (r *RwaStockInfoResponseData) GetChainAssets() []*RwaChainAsset
func (*RwaStockInfoResponseData) GetExtraProperties ¶
func (r *RwaStockInfoResponseData) GetExtraProperties() map[string]interface{}
func (*RwaStockInfoResponseData) GetIcon ¶
func (r *RwaStockInfoResponseData) GetIcon() *string
func (*RwaStockInfoResponseData) GetLatestPrice ¶
func (r *RwaStockInfoResponseData) GetLatestPrice() *string
func (*RwaStockInfoResponseData) GetName ¶
func (r *RwaStockInfoResponseData) GetName() *string
func (*RwaStockInfoResponseData) GetPrice24HChange ¶
func (r *RwaStockInfoResponseData) GetPrice24HChange() *string
func (*RwaStockInfoResponseData) GetPrice24HChangeRatio ¶
func (r *RwaStockInfoResponseData) GetPrice24HChangeRatio() *string
func (*RwaStockInfoResponseData) GetTicker ¶
func (r *RwaStockInfoResponseData) GetTicker() *string
func (*RwaStockInfoResponseData) MarshalJSON ¶
func (r *RwaStockInfoResponseData) MarshalJSON() ([]byte, error)
func (*RwaStockInfoResponseData) SetChainAssets ¶
func (r *RwaStockInfoResponseData) SetChainAssets(chainAssets []*RwaChainAsset)
SetChainAssets sets the ChainAssets field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*RwaStockInfoResponseData) SetIcon ¶
func (r *RwaStockInfoResponseData) SetIcon(icon *string)
SetIcon sets the Icon field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*RwaStockInfoResponseData) SetLatestPrice ¶
func (r *RwaStockInfoResponseData) SetLatestPrice(latestPrice *string)
SetLatestPrice sets the LatestPrice field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*RwaStockInfoResponseData) SetName ¶
func (r *RwaStockInfoResponseData) SetName(name *string)
SetName sets the Name field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*RwaStockInfoResponseData) SetPrice24HChange ¶
func (r *RwaStockInfoResponseData) SetPrice24HChange(price24HChange *string)
SetPrice24HChange sets the Price24HChange field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*RwaStockInfoResponseData) SetPrice24HChangeRatio ¶
func (r *RwaStockInfoResponseData) SetPrice24HChangeRatio(price24HChangeRatio *string)
SetPrice24HChangeRatio sets the Price24HChangeRatio field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*RwaStockInfoResponseData) SetTicker ¶
func (r *RwaStockInfoResponseData) SetTicker(ticker *string)
SetTicker sets the Ticker field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*RwaStockInfoResponseData) String ¶
func (r *RwaStockInfoResponseData) String() string
func (*RwaStockInfoResponseData) UnmarshalJSON ¶
func (r *RwaStockInfoResponseData) UnmarshalJSON(data []byte) error
type RwaStockListResponse ¶
type RwaStockListResponse struct {
Data *RwaStockListResponseData `json:"data,omitempty" url:"data,omitempty"`
// 0 = success, 1 = failure (data is an error message string)
Status *int `json:"status,omitempty" url:"status,omitempty"`
TraceID *string `json:"traceId,omitempty" url:"traceId,omitempty"`
// contains filtered or unexported fields
}
func (*RwaStockListResponse) GetData ¶
func (r *RwaStockListResponse) GetData() *RwaStockListResponseData
func (*RwaStockListResponse) GetExtraProperties ¶
func (r *RwaStockListResponse) GetExtraProperties() map[string]interface{}
func (*RwaStockListResponse) GetStatus ¶
func (r *RwaStockListResponse) GetStatus() *int
func (*RwaStockListResponse) GetTraceID ¶
func (r *RwaStockListResponse) GetTraceID() *string
func (*RwaStockListResponse) MarshalJSON ¶
func (r *RwaStockListResponse) MarshalJSON() ([]byte, error)
func (*RwaStockListResponse) SetData ¶
func (r *RwaStockListResponse) SetData(data *RwaStockListResponseData)
SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*RwaStockListResponse) SetStatus ¶
func (r *RwaStockListResponse) SetStatus(status *int)
SetStatus sets the Status field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*RwaStockListResponse) SetTraceID ¶
func (r *RwaStockListResponse) SetTraceID(traceID *string)
SetTraceID sets the TraceID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*RwaStockListResponse) String ¶
func (r *RwaStockListResponse) String() string
func (*RwaStockListResponse) UnmarshalJSON ¶
func (r *RwaStockListResponse) UnmarshalJSON(data []byte) error
type RwaStockListResponseData ¶
type RwaStockListResponseData struct {
List []*RwaStockListResponseDataListItem `json:"list,omitempty" url:"list,omitempty"`
// contains filtered or unexported fields
}
func (*RwaStockListResponseData) GetExtraProperties ¶
func (r *RwaStockListResponseData) GetExtraProperties() map[string]interface{}
func (*RwaStockListResponseData) GetList ¶
func (r *RwaStockListResponseData) GetList() []*RwaStockListResponseDataListItem
func (*RwaStockListResponseData) MarshalJSON ¶
func (r *RwaStockListResponseData) MarshalJSON() ([]byte, error)
func (*RwaStockListResponseData) SetList ¶
func (r *RwaStockListResponseData) SetList(list []*RwaStockListResponseDataListItem)
SetList sets the List field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*RwaStockListResponseData) String ¶
func (r *RwaStockListResponseData) String() string
func (*RwaStockListResponseData) UnmarshalJSON ¶
func (r *RwaStockListResponseData) UnmarshalJSON(data []byte) error
type RwaStockListResponseDataListItem ¶
type RwaStockListResponseDataListItem struct {
Ticker *string `json:"ticker,omitempty" url:"ticker,omitempty"`
Name *string `json:"name,omitempty" url:"name,omitempty"`
Icon *string `json:"icon,omitempty" url:"icon,omitempty"`
Status *RwaStockListResponseDataListItemStatus `json:"status,omitempty" url:"status,omitempty"`
Contracts []*RwaStockListResponseDataListItemContractsItem `json:"contracts,omitempty" url:"contracts,omitempty"`
// contains filtered or unexported fields
}
func (*RwaStockListResponseDataListItem) GetContracts ¶
func (r *RwaStockListResponseDataListItem) GetContracts() []*RwaStockListResponseDataListItemContractsItem
func (*RwaStockListResponseDataListItem) GetExtraProperties ¶
func (r *RwaStockListResponseDataListItem) GetExtraProperties() map[string]interface{}
func (*RwaStockListResponseDataListItem) GetIcon ¶
func (r *RwaStockListResponseDataListItem) GetIcon() *string
func (*RwaStockListResponseDataListItem) GetName ¶
func (r *RwaStockListResponseDataListItem) GetName() *string
func (*RwaStockListResponseDataListItem) GetStatus ¶
func (r *RwaStockListResponseDataListItem) GetStatus() *RwaStockListResponseDataListItemStatus
func (*RwaStockListResponseDataListItem) GetTicker ¶
func (r *RwaStockListResponseDataListItem) GetTicker() *string
func (*RwaStockListResponseDataListItem) MarshalJSON ¶
func (r *RwaStockListResponseDataListItem) MarshalJSON() ([]byte, error)
func (*RwaStockListResponseDataListItem) SetContracts ¶
func (r *RwaStockListResponseDataListItem) SetContracts(contracts []*RwaStockListResponseDataListItemContractsItem)
SetContracts sets the Contracts field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*RwaStockListResponseDataListItem) SetIcon ¶
func (r *RwaStockListResponseDataListItem) SetIcon(icon *string)
SetIcon sets the Icon field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*RwaStockListResponseDataListItem) SetName ¶
func (r *RwaStockListResponseDataListItem) SetName(name *string)
SetName sets the Name field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*RwaStockListResponseDataListItem) SetStatus ¶
func (r *RwaStockListResponseDataListItem) SetStatus(status *RwaStockListResponseDataListItemStatus)
SetStatus sets the Status field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*RwaStockListResponseDataListItem) SetTicker ¶
func (r *RwaStockListResponseDataListItem) SetTicker(ticker *string)
SetTicker sets the Ticker field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*RwaStockListResponseDataListItem) String ¶
func (r *RwaStockListResponseDataListItem) String() string
func (*RwaStockListResponseDataListItem) UnmarshalJSON ¶
func (r *RwaStockListResponseDataListItem) UnmarshalJSON(data []byte) error
type RwaStockListResponseDataListItemContractsItem ¶
type RwaStockListResponseDataListItemContractsItem struct {
Chain *string `json:"chain,omitempty" url:"chain,omitempty"`
Contract *string `json:"contract,omitempty" url:"contract,omitempty"`
Symbol *string `json:"symbol,omitempty" url:"symbol,omitempty"`
DataSource *string `json:"data_source,omitempty" url:"data_source,omitempty"`
Status *RwaStockListResponseDataListItemContractsItemStatus `json:"status,omitempty" url:"status,omitempty"`
// contains filtered or unexported fields
}
func (*RwaStockListResponseDataListItemContractsItem) GetChain ¶
func (r *RwaStockListResponseDataListItemContractsItem) GetChain() *string
func (*RwaStockListResponseDataListItemContractsItem) GetContract ¶
func (r *RwaStockListResponseDataListItemContractsItem) GetContract() *string
func (*RwaStockListResponseDataListItemContractsItem) GetDataSource ¶
func (r *RwaStockListResponseDataListItemContractsItem) GetDataSource() *string
func (*RwaStockListResponseDataListItemContractsItem) GetExtraProperties ¶
func (r *RwaStockListResponseDataListItemContractsItem) GetExtraProperties() map[string]interface{}
func (*RwaStockListResponseDataListItemContractsItem) GetStatus ¶
func (r *RwaStockListResponseDataListItemContractsItem) GetStatus() *RwaStockListResponseDataListItemContractsItemStatus
func (*RwaStockListResponseDataListItemContractsItem) GetSymbol ¶
func (r *RwaStockListResponseDataListItemContractsItem) GetSymbol() *string
func (*RwaStockListResponseDataListItemContractsItem) MarshalJSON ¶
func (r *RwaStockListResponseDataListItemContractsItem) MarshalJSON() ([]byte, error)
func (*RwaStockListResponseDataListItemContractsItem) SetChain ¶
func (r *RwaStockListResponseDataListItemContractsItem) SetChain(chain *string)
SetChain sets the Chain field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*RwaStockListResponseDataListItemContractsItem) SetContract ¶
func (r *RwaStockListResponseDataListItemContractsItem) SetContract(contract *string)
SetContract sets the Contract field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*RwaStockListResponseDataListItemContractsItem) SetDataSource ¶
func (r *RwaStockListResponseDataListItemContractsItem) SetDataSource(dataSource *string)
SetDataSource sets the DataSource field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*RwaStockListResponseDataListItemContractsItem) SetStatus ¶
func (r *RwaStockListResponseDataListItemContractsItem) SetStatus(status *RwaStockListResponseDataListItemContractsItemStatus)
SetStatus sets the Status field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*RwaStockListResponseDataListItemContractsItem) SetSymbol ¶
func (r *RwaStockListResponseDataListItemContractsItem) SetSymbol(symbol *string)
SetSymbol sets the Symbol field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*RwaStockListResponseDataListItemContractsItem) String ¶
func (r *RwaStockListResponseDataListItemContractsItem) String() string
func (*RwaStockListResponseDataListItemContractsItem) UnmarshalJSON ¶
func (r *RwaStockListResponseDataListItemContractsItem) UnmarshalJSON(data []byte) error
type RwaStockListResponseDataListItemContractsItemStatus ¶
type RwaStockListResponseDataListItemContractsItemStatus string
const ( RwaStockListResponseDataListItemContractsItemStatusOnline RwaStockListResponseDataListItemContractsItemStatus = "online" RwaStockListResponseDataListItemContractsItemStatusOffline RwaStockListResponseDataListItemContractsItemStatus = "offline" )
func NewRwaStockListResponseDataListItemContractsItemStatusFromString ¶
func NewRwaStockListResponseDataListItemContractsItemStatusFromString(s string) (RwaStockListResponseDataListItemContractsItemStatus, error)
type RwaStockListResponseDataListItemStatus ¶
type RwaStockListResponseDataListItemStatus string
const ( RwaStockListResponseDataListItemStatusOnline RwaStockListResponseDataListItemStatus = "online" RwaStockListResponseDataListItemStatusOffline RwaStockListResponseDataListItemStatus = "offline" )
func NewRwaStockListResponseDataListItemStatusFromString ¶
func NewRwaStockListResponseDataListItemStatusFromString(s string) (RwaStockListResponseDataListItemStatus, error)
type RwaTransactionListRequest ¶
type RwaTransactionListRequest struct {
Chain string `json:"chain" url:"-"`
Contract string `json:"contract" url:"-"`
// Leave empty for all
Side *RwaTransactionListRequestSide `json:"side,omitempty" url:"-"`
// Page number; defaults to 1
Page *int `json:"page,omitempty" url:"-"`
// Items per page; defaults to 20, up to 100
Size *int `json:"size,omitempty" url:"-"`
// contains filtered or unexported fields
}
func (*RwaTransactionListRequest) MarshalJSON ¶
func (r *RwaTransactionListRequest) MarshalJSON() ([]byte, error)
func (*RwaTransactionListRequest) SetChain ¶
func (r *RwaTransactionListRequest) SetChain(chain string)
SetChain sets the Chain field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*RwaTransactionListRequest) SetContract ¶
func (r *RwaTransactionListRequest) SetContract(contract string)
SetContract sets the Contract field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*RwaTransactionListRequest) SetPage ¶
func (r *RwaTransactionListRequest) SetPage(page *int)
SetPage sets the Page field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*RwaTransactionListRequest) SetSide ¶
func (r *RwaTransactionListRequest) SetSide(side *RwaTransactionListRequestSide)
SetSide sets the Side field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*RwaTransactionListRequest) SetSize ¶
func (r *RwaTransactionListRequest) SetSize(size *int)
SetSize sets the Size field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*RwaTransactionListRequest) UnmarshalJSON ¶
func (r *RwaTransactionListRequest) UnmarshalJSON(data []byte) error
type RwaTransactionListRequestSide ¶
type RwaTransactionListRequestSide string
Leave empty for all
const ( RwaTransactionListRequestSideBuy RwaTransactionListRequestSide = "buy" RwaTransactionListRequestSideSell RwaTransactionListRequestSide = "sell" )
func NewRwaTransactionListRequestSideFromString ¶
func NewRwaTransactionListRequestSideFromString(s string) (RwaTransactionListRequestSide, error)
func (RwaTransactionListRequestSide) Ptr ¶
func (r RwaTransactionListRequestSide) Ptr() *RwaTransactionListRequestSide
type RwaTransactionListResponse ¶
type RwaTransactionListResponse struct {
Data *RwaTransactionListResponseData `json:"data,omitempty" url:"data,omitempty"`
// 0 = success, 1 = failure (data is an error message string)
Status *int `json:"status,omitempty" url:"status,omitempty"`
TraceID *string `json:"traceId,omitempty" url:"traceId,omitempty"`
// contains filtered or unexported fields
}
func (*RwaTransactionListResponse) GetData ¶
func (r *RwaTransactionListResponse) GetData() *RwaTransactionListResponseData
func (*RwaTransactionListResponse) GetExtraProperties ¶
func (r *RwaTransactionListResponse) GetExtraProperties() map[string]interface{}
func (*RwaTransactionListResponse) GetStatus ¶
func (r *RwaTransactionListResponse) GetStatus() *int
func (*RwaTransactionListResponse) GetTraceID ¶
func (r *RwaTransactionListResponse) GetTraceID() *string
func (*RwaTransactionListResponse) MarshalJSON ¶
func (r *RwaTransactionListResponse) MarshalJSON() ([]byte, error)
func (*RwaTransactionListResponse) SetData ¶
func (r *RwaTransactionListResponse) SetData(data *RwaTransactionListResponseData)
SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*RwaTransactionListResponse) SetStatus ¶
func (r *RwaTransactionListResponse) SetStatus(status *int)
SetStatus sets the Status field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*RwaTransactionListResponse) SetTraceID ¶
func (r *RwaTransactionListResponse) SetTraceID(traceID *string)
SetTraceID sets the TraceID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*RwaTransactionListResponse) String ¶
func (r *RwaTransactionListResponse) String() string
func (*RwaTransactionListResponse) UnmarshalJSON ¶
func (r *RwaTransactionListResponse) UnmarshalJSON(data []byte) error
type RwaTransactionListResponseData ¶
type RwaTransactionListResponseData struct {
Page *int `json:"page,omitempty" url:"page,omitempty"`
Size *int `json:"size,omitempty" url:"size,omitempty"`
List []*RwaTransactionListResponseDataListItem `json:"list,omitempty" url:"list,omitempty"`
// contains filtered or unexported fields
}
func (*RwaTransactionListResponseData) GetExtraProperties ¶
func (r *RwaTransactionListResponseData) GetExtraProperties() map[string]interface{}
func (*RwaTransactionListResponseData) GetList ¶
func (r *RwaTransactionListResponseData) GetList() []*RwaTransactionListResponseDataListItem
func (*RwaTransactionListResponseData) GetPage ¶
func (r *RwaTransactionListResponseData) GetPage() *int
func (*RwaTransactionListResponseData) GetSize ¶
func (r *RwaTransactionListResponseData) GetSize() *int
func (*RwaTransactionListResponseData) MarshalJSON ¶
func (r *RwaTransactionListResponseData) MarshalJSON() ([]byte, error)
func (*RwaTransactionListResponseData) SetList ¶
func (r *RwaTransactionListResponseData) SetList(list []*RwaTransactionListResponseDataListItem)
SetList sets the List field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*RwaTransactionListResponseData) SetPage ¶
func (r *RwaTransactionListResponseData) SetPage(page *int)
SetPage sets the Page field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*RwaTransactionListResponseData) SetSize ¶
func (r *RwaTransactionListResponseData) SetSize(size *int)
SetSize sets the Size field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*RwaTransactionListResponseData) String ¶
func (r *RwaTransactionListResponseData) String() string
func (*RwaTransactionListResponseData) UnmarshalJSON ¶
func (r *RwaTransactionListResponseData) UnmarshalJSON(data []byte) error
type RwaTransactionListResponseDataListItem ¶
type RwaTransactionListResponseDataListItem struct {
Side *string `json:"side,omitempty" url:"side,omitempty"`
TxFrom *string `json:"tx_from,omitempty" url:"tx_from,omitempty"`
TxHash *string `json:"tx_hash,omitempty" url:"tx_hash,omitempty"`
Amount *float64 `json:"amount,omitempty" url:"amount,omitempty"`
Price *float64 `json:"price,omitempty" url:"price,omitempty"`
Value *float64 `json:"value,omitempty" url:"value,omitempty"`
Ts *int `json:"ts,omitempty" url:"ts,omitempty"`
// contains filtered or unexported fields
}
func (*RwaTransactionListResponseDataListItem) GetAmount ¶
func (r *RwaTransactionListResponseDataListItem) GetAmount() *float64
func (*RwaTransactionListResponseDataListItem) GetExtraProperties ¶
func (r *RwaTransactionListResponseDataListItem) GetExtraProperties() map[string]interface{}
func (*RwaTransactionListResponseDataListItem) GetPrice ¶
func (r *RwaTransactionListResponseDataListItem) GetPrice() *float64
func (*RwaTransactionListResponseDataListItem) GetSide ¶
func (r *RwaTransactionListResponseDataListItem) GetSide() *string
func (*RwaTransactionListResponseDataListItem) GetTs ¶
func (r *RwaTransactionListResponseDataListItem) GetTs() *int
func (*RwaTransactionListResponseDataListItem) GetTxFrom ¶
func (r *RwaTransactionListResponseDataListItem) GetTxFrom() *string
func (*RwaTransactionListResponseDataListItem) GetTxHash ¶
func (r *RwaTransactionListResponseDataListItem) GetTxHash() *string
func (*RwaTransactionListResponseDataListItem) GetValue ¶
func (r *RwaTransactionListResponseDataListItem) GetValue() *float64
func (*RwaTransactionListResponseDataListItem) MarshalJSON ¶
func (r *RwaTransactionListResponseDataListItem) MarshalJSON() ([]byte, error)
func (*RwaTransactionListResponseDataListItem) SetAmount ¶
func (r *RwaTransactionListResponseDataListItem) SetAmount(amount *float64)
SetAmount sets the Amount field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*RwaTransactionListResponseDataListItem) SetPrice ¶
func (r *RwaTransactionListResponseDataListItem) SetPrice(price *float64)
SetPrice sets the Price field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*RwaTransactionListResponseDataListItem) SetSide ¶
func (r *RwaTransactionListResponseDataListItem) SetSide(side *string)
SetSide sets the Side field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*RwaTransactionListResponseDataListItem) SetTs ¶
func (r *RwaTransactionListResponseDataListItem) SetTs(ts *int)
SetTs sets the Ts field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*RwaTransactionListResponseDataListItem) SetTxFrom ¶
func (r *RwaTransactionListResponseDataListItem) SetTxFrom(txFrom *string)
SetTxFrom sets the TxFrom field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*RwaTransactionListResponseDataListItem) SetTxHash ¶
func (r *RwaTransactionListResponseDataListItem) SetTxHash(txHash *string)
SetTxHash sets the TxHash field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*RwaTransactionListResponseDataListItem) SetValue ¶
func (r *RwaTransactionListResponseDataListItem) SetValue(value *float64)
SetValue sets the Value field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*RwaTransactionListResponseDataListItem) String ¶
func (r *RwaTransactionListResponseDataListItem) String() string
func (*RwaTransactionListResponseDataListItem) UnmarshalJSON ¶
func (r *RwaTransactionListResponseDataListItem) UnmarshalJSON(data []byte) error
type SecurityAuditsRequest ¶
type SecurityAuditsRequest struct {
// Business source, e.g. bg
Source string `json:"source" url:"-"`
List []*SecurityAuditsRequestListItem `json:"list" url:"-"`
// contains filtered or unexported fields
}
func (*SecurityAuditsRequest) MarshalJSON ¶
func (s *SecurityAuditsRequest) MarshalJSON() ([]byte, error)
func (*SecurityAuditsRequest) SetList ¶
func (s *SecurityAuditsRequest) SetList(list []*SecurityAuditsRequestListItem)
SetList sets the List field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SecurityAuditsRequest) SetSource ¶
func (s *SecurityAuditsRequest) SetSource(source string)
SetSource sets the Source field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SecurityAuditsRequest) UnmarshalJSON ¶
func (s *SecurityAuditsRequest) UnmarshalJSON(data []byte) error
type SecurityAuditsRequestListItem ¶
type SecurityAuditsRequestListItem struct {
ChainID float64 `json:"chain_id" url:"chain_id"`
Chain string `json:"chain" url:"chain"`
Contract string `json:"contract" url:"contract"`
// contains filtered or unexported fields
}
func (*SecurityAuditsRequestListItem) GetChain ¶
func (s *SecurityAuditsRequestListItem) GetChain() string
func (*SecurityAuditsRequestListItem) GetChainID ¶
func (s *SecurityAuditsRequestListItem) GetChainID() float64
func (*SecurityAuditsRequestListItem) GetContract ¶
func (s *SecurityAuditsRequestListItem) GetContract() string
func (*SecurityAuditsRequestListItem) GetExtraProperties ¶
func (s *SecurityAuditsRequestListItem) GetExtraProperties() map[string]interface{}
func (*SecurityAuditsRequestListItem) MarshalJSON ¶
func (s *SecurityAuditsRequestListItem) MarshalJSON() ([]byte, error)
func (*SecurityAuditsRequestListItem) SetChain ¶
func (s *SecurityAuditsRequestListItem) SetChain(chain string)
SetChain sets the Chain field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SecurityAuditsRequestListItem) SetChainID ¶
func (s *SecurityAuditsRequestListItem) SetChainID(chainID float64)
SetChainID sets the ChainID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SecurityAuditsRequestListItem) SetContract ¶
func (s *SecurityAuditsRequestListItem) SetContract(contract string)
SetContract sets the Contract field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SecurityAuditsRequestListItem) String ¶
func (s *SecurityAuditsRequestListItem) String() string
func (*SecurityAuditsRequestListItem) UnmarshalJSON ¶
func (s *SecurityAuditsRequestListItem) UnmarshalJSON(data []byte) error
type SecurityAuditsResponse ¶
type SecurityAuditsResponse struct {
// Business data
Data []*SecurityAuditsResponseDataItem `json:"data,omitempty" url:"data,omitempty"`
// 0 indicates success
Status *int `json:"status,omitempty" url:"status,omitempty"`
TraceID *string `json:"traceId,omitempty" url:"traceId,omitempty"`
// contains filtered or unexported fields
}
func (*SecurityAuditsResponse) GetData ¶
func (s *SecurityAuditsResponse) GetData() []*SecurityAuditsResponseDataItem
func (*SecurityAuditsResponse) GetExtraProperties ¶
func (s *SecurityAuditsResponse) GetExtraProperties() map[string]interface{}
func (*SecurityAuditsResponse) GetStatus ¶
func (s *SecurityAuditsResponse) GetStatus() *int
func (*SecurityAuditsResponse) GetTraceID ¶
func (s *SecurityAuditsResponse) GetTraceID() *string
func (*SecurityAuditsResponse) MarshalJSON ¶
func (s *SecurityAuditsResponse) MarshalJSON() ([]byte, error)
func (*SecurityAuditsResponse) SetData ¶
func (s *SecurityAuditsResponse) SetData(data []*SecurityAuditsResponseDataItem)
SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SecurityAuditsResponse) SetStatus ¶
func (s *SecurityAuditsResponse) SetStatus(status *int)
SetStatus sets the Status field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SecurityAuditsResponse) SetTraceID ¶
func (s *SecurityAuditsResponse) SetTraceID(traceID *string)
SetTraceID sets the TraceID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SecurityAuditsResponse) String ¶
func (s *SecurityAuditsResponse) String() string
func (*SecurityAuditsResponse) UnmarshalJSON ¶
func (s *SecurityAuditsResponse) UnmarshalJSON(data []byte) error
type SecurityAuditsResponseDataItem ¶
type SecurityAuditsResponseDataItem struct {
Chain *string `json:"chain,omitempty" url:"chain,omitempty"`
ChainID *float64 `json:"chain_id,omitempty" url:"chain_id,omitempty"`
Contract *string `json:"contract,omitempty" url:"contract,omitempty"`
RiskChecks []*SecurityCheckItem `json:"riskChecks,omitempty" url:"riskChecks,omitempty"`
WarnChecks []*SecurityCheckItem `json:"warnChecks,omitempty" url:"warnChecks,omitempty"`
LowChecks []*SecurityCheckItem `json:"lowChecks,omitempty" url:"lowChecks,omitempty"`
RiskCount *float64 `json:"riskCount,omitempty" url:"riskCount,omitempty"`
WarnCount *float64 `json:"warnCount,omitempty" url:"warnCount,omitempty"`
CheckStatus *float64 `json:"checkStatus,omitempty" url:"checkStatus,omitempty"`
Checking *bool `json:"checking,omitempty" url:"checking,omitempty"`
Support *float64 `json:"support,omitempty" url:"support,omitempty"`
HighRisk *bool `json:"highRisk,omitempty" url:"highRisk,omitempty"`
BuyTax *float64 `json:"buyTax,omitempty" url:"buyTax,omitempty"`
SellTax *float64 `json:"sellTax,omitempty" url:"sellTax,omitempty"`
FreezeAuth *bool `json:"freezeAuth,omitempty" url:"freezeAuth,omitempty"`
MintAuth *bool `json:"mintAuth,omitempty" url:"mintAuth,omitempty"`
Token2022 *bool `json:"token2022,omitempty" url:"token2022,omitempty"`
LpLock *bool `json:"lpLock,omitempty" url:"lpLock,omitempty"`
Top10HolderRiskLevel *float64 `json:"top_10_holder_risk_level,omitempty" url:"top_10_holder_risk_level,omitempty"`
// contains filtered or unexported fields
}
func (*SecurityAuditsResponseDataItem) GetBuyTax ¶
func (s *SecurityAuditsResponseDataItem) GetBuyTax() *float64
func (*SecurityAuditsResponseDataItem) GetChain ¶
func (s *SecurityAuditsResponseDataItem) GetChain() *string
func (*SecurityAuditsResponseDataItem) GetChainID ¶
func (s *SecurityAuditsResponseDataItem) GetChainID() *float64
func (*SecurityAuditsResponseDataItem) GetCheckStatus ¶
func (s *SecurityAuditsResponseDataItem) GetCheckStatus() *float64
func (*SecurityAuditsResponseDataItem) GetChecking ¶
func (s *SecurityAuditsResponseDataItem) GetChecking() *bool
func (*SecurityAuditsResponseDataItem) GetContract ¶
func (s *SecurityAuditsResponseDataItem) GetContract() *string
func (*SecurityAuditsResponseDataItem) GetExtraProperties ¶
func (s *SecurityAuditsResponseDataItem) GetExtraProperties() map[string]interface{}
func (*SecurityAuditsResponseDataItem) GetFreezeAuth ¶
func (s *SecurityAuditsResponseDataItem) GetFreezeAuth() *bool
func (*SecurityAuditsResponseDataItem) GetHighRisk ¶
func (s *SecurityAuditsResponseDataItem) GetHighRisk() *bool
func (*SecurityAuditsResponseDataItem) GetLowChecks ¶
func (s *SecurityAuditsResponseDataItem) GetLowChecks() []*SecurityCheckItem
func (*SecurityAuditsResponseDataItem) GetLpLock ¶
func (s *SecurityAuditsResponseDataItem) GetLpLock() *bool
func (*SecurityAuditsResponseDataItem) GetMintAuth ¶
func (s *SecurityAuditsResponseDataItem) GetMintAuth() *bool
func (*SecurityAuditsResponseDataItem) GetRiskChecks ¶
func (s *SecurityAuditsResponseDataItem) GetRiskChecks() []*SecurityCheckItem
func (*SecurityAuditsResponseDataItem) GetRiskCount ¶
func (s *SecurityAuditsResponseDataItem) GetRiskCount() *float64
func (*SecurityAuditsResponseDataItem) GetSellTax ¶
func (s *SecurityAuditsResponseDataItem) GetSellTax() *float64
func (*SecurityAuditsResponseDataItem) GetSupport ¶
func (s *SecurityAuditsResponseDataItem) GetSupport() *float64
func (*SecurityAuditsResponseDataItem) GetToken2022 ¶
func (s *SecurityAuditsResponseDataItem) GetToken2022() *bool
func (*SecurityAuditsResponseDataItem) GetTop10HolderRiskLevel ¶
func (s *SecurityAuditsResponseDataItem) GetTop10HolderRiskLevel() *float64
func (*SecurityAuditsResponseDataItem) GetWarnChecks ¶
func (s *SecurityAuditsResponseDataItem) GetWarnChecks() []*SecurityCheckItem
func (*SecurityAuditsResponseDataItem) GetWarnCount ¶
func (s *SecurityAuditsResponseDataItem) GetWarnCount() *float64
func (*SecurityAuditsResponseDataItem) MarshalJSON ¶
func (s *SecurityAuditsResponseDataItem) MarshalJSON() ([]byte, error)
func (*SecurityAuditsResponseDataItem) SetBuyTax ¶
func (s *SecurityAuditsResponseDataItem) SetBuyTax(buyTax *float64)
SetBuyTax sets the BuyTax field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SecurityAuditsResponseDataItem) SetChain ¶
func (s *SecurityAuditsResponseDataItem) SetChain(chain *string)
SetChain sets the Chain field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SecurityAuditsResponseDataItem) SetChainID ¶
func (s *SecurityAuditsResponseDataItem) SetChainID(chainID *float64)
SetChainID sets the ChainID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SecurityAuditsResponseDataItem) SetCheckStatus ¶
func (s *SecurityAuditsResponseDataItem) SetCheckStatus(checkStatus *float64)
SetCheckStatus sets the CheckStatus field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SecurityAuditsResponseDataItem) SetChecking ¶
func (s *SecurityAuditsResponseDataItem) SetChecking(checking *bool)
SetChecking sets the Checking field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SecurityAuditsResponseDataItem) SetContract ¶
func (s *SecurityAuditsResponseDataItem) SetContract(contract *string)
SetContract sets the Contract field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SecurityAuditsResponseDataItem) SetFreezeAuth ¶
func (s *SecurityAuditsResponseDataItem) SetFreezeAuth(freezeAuth *bool)
SetFreezeAuth sets the FreezeAuth field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SecurityAuditsResponseDataItem) SetHighRisk ¶
func (s *SecurityAuditsResponseDataItem) SetHighRisk(highRisk *bool)
SetHighRisk sets the HighRisk field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SecurityAuditsResponseDataItem) SetLowChecks ¶
func (s *SecurityAuditsResponseDataItem) SetLowChecks(lowChecks []*SecurityCheckItem)
SetLowChecks sets the LowChecks field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SecurityAuditsResponseDataItem) SetLpLock ¶
func (s *SecurityAuditsResponseDataItem) SetLpLock(lpLock *bool)
SetLpLock sets the LpLock field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SecurityAuditsResponseDataItem) SetMintAuth ¶
func (s *SecurityAuditsResponseDataItem) SetMintAuth(mintAuth *bool)
SetMintAuth sets the MintAuth field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SecurityAuditsResponseDataItem) SetRiskChecks ¶
func (s *SecurityAuditsResponseDataItem) SetRiskChecks(riskChecks []*SecurityCheckItem)
SetRiskChecks sets the RiskChecks field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SecurityAuditsResponseDataItem) SetRiskCount ¶
func (s *SecurityAuditsResponseDataItem) SetRiskCount(riskCount *float64)
SetRiskCount sets the RiskCount field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SecurityAuditsResponseDataItem) SetSellTax ¶
func (s *SecurityAuditsResponseDataItem) SetSellTax(sellTax *float64)
SetSellTax sets the SellTax field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SecurityAuditsResponseDataItem) SetSupport ¶
func (s *SecurityAuditsResponseDataItem) SetSupport(support *float64)
SetSupport sets the Support field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SecurityAuditsResponseDataItem) SetToken2022 ¶
func (s *SecurityAuditsResponseDataItem) SetToken2022(token2022 *bool)
SetToken2022 sets the Token2022 field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SecurityAuditsResponseDataItem) SetTop10HolderRiskLevel ¶
func (s *SecurityAuditsResponseDataItem) SetTop10HolderRiskLevel(top10HolderRiskLevel *float64)
SetTop10HolderRiskLevel sets the Top10HolderRiskLevel field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SecurityAuditsResponseDataItem) SetWarnChecks ¶
func (s *SecurityAuditsResponseDataItem) SetWarnChecks(warnChecks []*SecurityCheckItem)
SetWarnChecks sets the WarnChecks field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SecurityAuditsResponseDataItem) SetWarnCount ¶
func (s *SecurityAuditsResponseDataItem) SetWarnCount(warnCount *float64)
SetWarnCount sets the WarnCount field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SecurityAuditsResponseDataItem) String ¶
func (s *SecurityAuditsResponseDataItem) String() string
func (*SecurityAuditsResponseDataItem) UnmarshalJSON ¶
func (s *SecurityAuditsResponseDataItem) UnmarshalJSON(data []byte) error
type SecurityCheckItem ¶
type SecurityCheckItem struct {
// Check item identifier; see the Security Detection reference in the documentation
LabelName *string `json:"labelName,omitempty" url:"labelName,omitempty"`
Status *float64 `json:"status,omitempty" url:"status,omitempty"`
Values any `json:"values,omitempty" url:"values,omitempty"`
Priority *float64 `json:"priority,omitempty" url:"priority,omitempty"`
Type *string `json:"type,omitempty" url:"type,omitempty"`
// contains filtered or unexported fields
}
func (*SecurityCheckItem) GetExtraProperties ¶
func (s *SecurityCheckItem) GetExtraProperties() map[string]interface{}
func (*SecurityCheckItem) GetLabelName ¶
func (s *SecurityCheckItem) GetLabelName() *string
func (*SecurityCheckItem) GetPriority ¶
func (s *SecurityCheckItem) GetPriority() *float64
func (*SecurityCheckItem) GetStatus ¶
func (s *SecurityCheckItem) GetStatus() *float64
func (*SecurityCheckItem) GetType ¶
func (s *SecurityCheckItem) GetType() *string
func (*SecurityCheckItem) GetValues ¶
func (s *SecurityCheckItem) GetValues() any
func (*SecurityCheckItem) MarshalJSON ¶
func (s *SecurityCheckItem) MarshalJSON() ([]byte, error)
func (*SecurityCheckItem) SetLabelName ¶
func (s *SecurityCheckItem) SetLabelName(labelName *string)
SetLabelName sets the LabelName field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SecurityCheckItem) SetPriority ¶
func (s *SecurityCheckItem) SetPriority(priority *float64)
SetPriority sets the Priority field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SecurityCheckItem) SetStatus ¶
func (s *SecurityCheckItem) SetStatus(status *float64)
SetStatus sets the Status field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SecurityCheckItem) SetType ¶
func (s *SecurityCheckItem) SetType(type_ *string)
SetType sets the Type field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SecurityCheckItem) SetValues ¶
func (s *SecurityCheckItem) SetValues(values any)
SetValues sets the Values field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SecurityCheckItem) String ¶
func (s *SecurityCheckItem) String() string
func (*SecurityCheckItem) UnmarshalJSON ¶
func (s *SecurityCheckItem) UnmarshalJSON(data []byte) error
type SecurityInfo ¶
type SecurityInfo struct {
Chain *string `json:"chain,omitempty" url:"chain,omitempty"`
ChainID *float64 `json:"chain_id,omitempty" url:"chain_id,omitempty"`
Contract *string `json:"contract,omitempty" url:"contract,omitempty"`
RiskChecks []*SecurityCheckItem `json:"riskChecks,omitempty" url:"riskChecks,omitempty"`
WarnChecks []*SecurityCheckItem `json:"warnChecks,omitempty" url:"warnChecks,omitempty"`
LowChecks []*SecurityCheckItem `json:"lowChecks,omitempty" url:"lowChecks,omitempty"`
RiskCount *float64 `json:"riskCount,omitempty" url:"riskCount,omitempty"`
WarnCount *float64 `json:"warnCount,omitempty" url:"warnCount,omitempty"`
CheckStatus *float64 `json:"checkStatus,omitempty" url:"checkStatus,omitempty"`
Support *float64 `json:"support,omitempty" url:"support,omitempty"`
// When true, the client may retry later
Checking *bool `json:"checking,omitempty" url:"checking,omitempty"`
BuyTax *float64 `json:"buyTax,omitempty" url:"buyTax,omitempty"`
SellTax *float64 `json:"sellTax,omitempty" url:"sellTax,omitempty"`
FreezeAuth *bool `json:"freezeAuth,omitempty" url:"freezeAuth,omitempty"`
MintAuth *bool `json:"mintAuth,omitempty" url:"mintAuth,omitempty"`
Token2022 *bool `json:"token2022,omitempty" url:"token2022,omitempty"`
LpLock *bool `json:"lpLock,omitempty" url:"lpLock,omitempty"`
Top10HolderRiskLevel *float64 `json:"top_10_holder_risk_level,omitempty" url:"top_10_holder_risk_level,omitempty"`
HighRisk *bool `json:"highRisk,omitempty" url:"highRisk,omitempty"`
// contains filtered or unexported fields
}
func (*SecurityInfo) GetBuyTax ¶
func (s *SecurityInfo) GetBuyTax() *float64
func (*SecurityInfo) GetChain ¶
func (s *SecurityInfo) GetChain() *string
func (*SecurityInfo) GetChainID ¶
func (s *SecurityInfo) GetChainID() *float64
func (*SecurityInfo) GetCheckStatus ¶
func (s *SecurityInfo) GetCheckStatus() *float64
func (*SecurityInfo) GetChecking ¶
func (s *SecurityInfo) GetChecking() *bool
func (*SecurityInfo) GetContract ¶
func (s *SecurityInfo) GetContract() *string
func (*SecurityInfo) GetExtraProperties ¶
func (s *SecurityInfo) GetExtraProperties() map[string]interface{}
func (*SecurityInfo) GetFreezeAuth ¶
func (s *SecurityInfo) GetFreezeAuth() *bool
func (*SecurityInfo) GetHighRisk ¶
func (s *SecurityInfo) GetHighRisk() *bool
func (*SecurityInfo) GetLowChecks ¶
func (s *SecurityInfo) GetLowChecks() []*SecurityCheckItem
func (*SecurityInfo) GetLpLock ¶
func (s *SecurityInfo) GetLpLock() *bool
func (*SecurityInfo) GetMintAuth ¶
func (s *SecurityInfo) GetMintAuth() *bool
func (*SecurityInfo) GetRiskChecks ¶
func (s *SecurityInfo) GetRiskChecks() []*SecurityCheckItem
func (*SecurityInfo) GetRiskCount ¶
func (s *SecurityInfo) GetRiskCount() *float64
func (*SecurityInfo) GetSellTax ¶
func (s *SecurityInfo) GetSellTax() *float64
func (*SecurityInfo) GetSupport ¶
func (s *SecurityInfo) GetSupport() *float64
func (*SecurityInfo) GetToken2022 ¶
func (s *SecurityInfo) GetToken2022() *bool
func (*SecurityInfo) GetTop10HolderRiskLevel ¶
func (s *SecurityInfo) GetTop10HolderRiskLevel() *float64
func (*SecurityInfo) GetWarnChecks ¶
func (s *SecurityInfo) GetWarnChecks() []*SecurityCheckItem
func (*SecurityInfo) GetWarnCount ¶
func (s *SecurityInfo) GetWarnCount() *float64
func (*SecurityInfo) MarshalJSON ¶
func (s *SecurityInfo) MarshalJSON() ([]byte, error)
func (*SecurityInfo) SetBuyTax ¶
func (s *SecurityInfo) SetBuyTax(buyTax *float64)
SetBuyTax sets the BuyTax field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SecurityInfo) SetChain ¶
func (s *SecurityInfo) SetChain(chain *string)
SetChain sets the Chain field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SecurityInfo) SetChainID ¶
func (s *SecurityInfo) SetChainID(chainID *float64)
SetChainID sets the ChainID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SecurityInfo) SetCheckStatus ¶
func (s *SecurityInfo) SetCheckStatus(checkStatus *float64)
SetCheckStatus sets the CheckStatus field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SecurityInfo) SetChecking ¶
func (s *SecurityInfo) SetChecking(checking *bool)
SetChecking sets the Checking field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SecurityInfo) SetContract ¶
func (s *SecurityInfo) SetContract(contract *string)
SetContract sets the Contract field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SecurityInfo) SetFreezeAuth ¶
func (s *SecurityInfo) SetFreezeAuth(freezeAuth *bool)
SetFreezeAuth sets the FreezeAuth field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SecurityInfo) SetHighRisk ¶
func (s *SecurityInfo) SetHighRisk(highRisk *bool)
SetHighRisk sets the HighRisk field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SecurityInfo) SetLowChecks ¶
func (s *SecurityInfo) SetLowChecks(lowChecks []*SecurityCheckItem)
SetLowChecks sets the LowChecks field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SecurityInfo) SetLpLock ¶
func (s *SecurityInfo) SetLpLock(lpLock *bool)
SetLpLock sets the LpLock field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SecurityInfo) SetMintAuth ¶
func (s *SecurityInfo) SetMintAuth(mintAuth *bool)
SetMintAuth sets the MintAuth field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SecurityInfo) SetRiskChecks ¶
func (s *SecurityInfo) SetRiskChecks(riskChecks []*SecurityCheckItem)
SetRiskChecks sets the RiskChecks field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SecurityInfo) SetRiskCount ¶
func (s *SecurityInfo) SetRiskCount(riskCount *float64)
SetRiskCount sets the RiskCount field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SecurityInfo) SetSellTax ¶
func (s *SecurityInfo) SetSellTax(sellTax *float64)
SetSellTax sets the SellTax field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SecurityInfo) SetSupport ¶
func (s *SecurityInfo) SetSupport(support *float64)
SetSupport sets the Support field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SecurityInfo) SetToken2022 ¶
func (s *SecurityInfo) SetToken2022(token2022 *bool)
SetToken2022 sets the Token2022 field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SecurityInfo) SetTop10HolderRiskLevel ¶
func (s *SecurityInfo) SetTop10HolderRiskLevel(top10HolderRiskLevel *float64)
SetTop10HolderRiskLevel sets the Top10HolderRiskLevel field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SecurityInfo) SetWarnChecks ¶
func (s *SecurityInfo) SetWarnChecks(warnChecks []*SecurityCheckItem)
SetWarnChecks sets the WarnChecks field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SecurityInfo) SetWarnCount ¶
func (s *SecurityInfo) SetWarnCount(warnCount *float64)
SetWarnCount sets the WarnCount field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SecurityInfo) String ¶
func (s *SecurityInfo) String() string
func (*SecurityInfo) UnmarshalJSON ¶
func (s *SecurityInfo) UnmarshalJSON(data []byte) error
type SignBgwSolTxRequest ¶
type SignBgwSolTxRequest struct {
// Fixed as sol
Chain string `json:"chain" url:"-"`
// Serialized transaction (e.g. Base58)
Transaction string `json:"transaction" url:"-"`
// contains filtered or unexported fields
}
func (*SignBgwSolTxRequest) MarshalJSON ¶
func (s *SignBgwSolTxRequest) MarshalJSON() ([]byte, error)
func (*SignBgwSolTxRequest) SetChain ¶
func (s *SignBgwSolTxRequest) SetChain(chain string)
SetChain sets the Chain field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SignBgwSolTxRequest) SetTransaction ¶
func (s *SignBgwSolTxRequest) SetTransaction(transaction string)
SetTransaction sets the Transaction field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SignBgwSolTxRequest) UnmarshalJSON ¶
func (s *SignBgwSolTxRequest) UnmarshalJSON(data []byte) error
type SignBgwSolTxResponse ¶
type SignBgwSolTxResponse struct {
// Business data
Data *SignBgwSolTxResponseData `json:"data,omitempty" url:"data,omitempty"`
// 0 indicates success, 1 indicates failure
Status *int `json:"status,omitempty" url:"status,omitempty"`
// Business error code; 0 indicates success
ErrorCode *int `json:"error_code,omitempty" url:"error_code,omitempty"`
Msg *string `json:"msg,omitempty" url:"msg,omitempty"`
Title *string `json:"title,omitempty" url:"title,omitempty"`
Timestamp *int64 `json:"timestamp,omitempty" url:"timestamp,omitempty"`
Trace *string `json:"trace,omitempty" url:"trace,omitempty"`
// contains filtered or unexported fields
}
func (*SignBgwSolTxResponse) GetData ¶
func (s *SignBgwSolTxResponse) GetData() *SignBgwSolTxResponseData
func (*SignBgwSolTxResponse) GetErrorCode ¶
func (s *SignBgwSolTxResponse) GetErrorCode() *int
func (*SignBgwSolTxResponse) GetExtraProperties ¶
func (s *SignBgwSolTxResponse) GetExtraProperties() map[string]interface{}
func (*SignBgwSolTxResponse) GetMsg ¶
func (s *SignBgwSolTxResponse) GetMsg() *string
func (*SignBgwSolTxResponse) GetStatus ¶
func (s *SignBgwSolTxResponse) GetStatus() *int
func (*SignBgwSolTxResponse) GetTimestamp ¶
func (s *SignBgwSolTxResponse) GetTimestamp() *int64
func (*SignBgwSolTxResponse) GetTitle ¶
func (s *SignBgwSolTxResponse) GetTitle() *string
func (*SignBgwSolTxResponse) GetTrace ¶
func (s *SignBgwSolTxResponse) GetTrace() *string
func (*SignBgwSolTxResponse) MarshalJSON ¶
func (s *SignBgwSolTxResponse) MarshalJSON() ([]byte, error)
func (*SignBgwSolTxResponse) SetData ¶
func (s *SignBgwSolTxResponse) SetData(data *SignBgwSolTxResponseData)
SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SignBgwSolTxResponse) SetErrorCode ¶
func (s *SignBgwSolTxResponse) SetErrorCode(errorCode *int)
SetErrorCode sets the ErrorCode field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SignBgwSolTxResponse) SetMsg ¶
func (s *SignBgwSolTxResponse) SetMsg(msg *string)
SetMsg sets the Msg field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SignBgwSolTxResponse) SetStatus ¶
func (s *SignBgwSolTxResponse) SetStatus(status *int)
SetStatus sets the Status field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SignBgwSolTxResponse) SetTimestamp ¶
func (s *SignBgwSolTxResponse) SetTimestamp(timestamp *int64)
SetTimestamp sets the Timestamp field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SignBgwSolTxResponse) SetTitle ¶
func (s *SignBgwSolTxResponse) SetTitle(title *string)
SetTitle sets the Title field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SignBgwSolTxResponse) SetTrace ¶
func (s *SignBgwSolTxResponse) SetTrace(trace *string)
SetTrace sets the Trace field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SignBgwSolTxResponse) String ¶
func (s *SignBgwSolTxResponse) String() string
func (*SignBgwSolTxResponse) UnmarshalJSON ¶
func (s *SignBgwSolTxResponse) UnmarshalJSON(data []byte) error
type SignBgwSolTxResponseData ¶
type SignBgwSolTxResponseData struct {
// Serialized Solana transaction after co-signature
Transaction *string `json:"transaction,omitempty" url:"transaction,omitempty"`
// contains filtered or unexported fields
}
func (*SignBgwSolTxResponseData) GetExtraProperties ¶
func (s *SignBgwSolTxResponseData) GetExtraProperties() map[string]interface{}
func (*SignBgwSolTxResponseData) GetTransaction ¶
func (s *SignBgwSolTxResponseData) GetTransaction() *string
func (*SignBgwSolTxResponseData) MarshalJSON ¶
func (s *SignBgwSolTxResponseData) MarshalJSON() ([]byte, error)
func (*SignBgwSolTxResponseData) SetTransaction ¶
func (s *SignBgwSolTxResponseData) SetTransaction(transaction *string)
SetTransaction sets the Transaction field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*SignBgwSolTxResponseData) String ¶
func (s *SignBgwSolTxResponseData) String() string
func (*SignBgwSolTxResponseData) UnmarshalJSON ¶
func (s *SignBgwSolTxResponseData) UnmarshalJSON(data []byte) error
type SigningHTTPClient ¶
type SigningHTTPClient struct {
// contains filtered or unexported fields
}
SigningHTTPClient wraps an http.Client (or any core.HTTPClient) and signs every outgoing request before delegating to the underlying transport.
func NewSigningHTTPClient ¶
func NewSigningHTTPClient(apiKey, apiSecret string, delegate httpDoer) *SigningHTTPClient
NewSigningHTTPClient returns a signing client. If delegate is nil, a default *http.Client is used.
type TokenBaseInfo ¶
type TokenBaseInfo struct {
Chain *string `json:"chain,omitempty" url:"chain,omitempty"`
Contract *string `json:"contract,omitempty" url:"contract,omitempty"`
Symbol *string `json:"symbol,omitempty" url:"symbol,omitempty"`
Name *string `json:"name,omitempty" url:"name,omitempty"`
Decimals *float64 `json:"decimals,omitempty" url:"decimals,omitempty"`
Price *float64 `json:"price,omitempty" url:"price,omitempty"`
TotalSupply *float64 `json:"total_supply,omitempty" url:"total_supply,omitempty"`
CirculatingSupply *float64 `json:"circulating_supply,omitempty" url:"circulating_supply,omitempty"`
Icon *string `json:"icon,omitempty" url:"icon,omitempty"`
Twitter *string `json:"twitter,omitempty" url:"twitter,omitempty"`
Website *string `json:"website,omitempty" url:"website,omitempty"`
Telegram *string `json:"telegram,omitempty" url:"telegram,omitempty"`
Whitepaper *string `json:"whitepaper,omitempty" url:"whitepaper,omitempty"`
About *string `json:"about,omitempty" url:"about,omitempty"`
Holders *float64 `json:"holders,omitempty" url:"holders,omitempty"`
Liquidity *float64 `json:"liquidity,omitempty" url:"liquidity,omitempty"`
Top10HolderPercent *float64 `json:"top10_holder_percent,omitempty" url:"top10_holder_percent,omitempty"`
InsiderHolderPercent *float64 `json:"insider_holder_percent,omitempty" url:"insider_holder_percent,omitempty"`
SniperHolderPercent *float64 `json:"sniper_holder_percent,omitempty" url:"sniper_holder_percent,omitempty"`
DevHolderPercent *float64 `json:"dev_holder_percent,omitempty" url:"dev_holder_percent,omitempty"`
// contains filtered or unexported fields
}
func (*TokenBaseInfo) GetAbout ¶
func (t *TokenBaseInfo) GetAbout() *string
func (*TokenBaseInfo) GetChain ¶
func (t *TokenBaseInfo) GetChain() *string
func (*TokenBaseInfo) GetCirculatingSupply ¶
func (t *TokenBaseInfo) GetCirculatingSupply() *float64
func (*TokenBaseInfo) GetContract ¶
func (t *TokenBaseInfo) GetContract() *string
func (*TokenBaseInfo) GetDecimals ¶
func (t *TokenBaseInfo) GetDecimals() *float64
func (*TokenBaseInfo) GetDevHolderPercent ¶
func (t *TokenBaseInfo) GetDevHolderPercent() *float64
func (*TokenBaseInfo) GetExtraProperties ¶
func (t *TokenBaseInfo) GetExtraProperties() map[string]interface{}
func (*TokenBaseInfo) GetHolders ¶
func (t *TokenBaseInfo) GetHolders() *float64
func (*TokenBaseInfo) GetIcon ¶
func (t *TokenBaseInfo) GetIcon() *string
func (*TokenBaseInfo) GetInsiderHolderPercent ¶
func (t *TokenBaseInfo) GetInsiderHolderPercent() *float64
func (*TokenBaseInfo) GetLiquidity ¶
func (t *TokenBaseInfo) GetLiquidity() *float64
func (*TokenBaseInfo) GetName ¶
func (t *TokenBaseInfo) GetName() *string
func (*TokenBaseInfo) GetPrice ¶
func (t *TokenBaseInfo) GetPrice() *float64
func (*TokenBaseInfo) GetSniperHolderPercent ¶
func (t *TokenBaseInfo) GetSniperHolderPercent() *float64
func (*TokenBaseInfo) GetSymbol ¶
func (t *TokenBaseInfo) GetSymbol() *string
func (*TokenBaseInfo) GetTelegram ¶
func (t *TokenBaseInfo) GetTelegram() *string
func (*TokenBaseInfo) GetTop10HolderPercent ¶
func (t *TokenBaseInfo) GetTop10HolderPercent() *float64
func (*TokenBaseInfo) GetTotalSupply ¶
func (t *TokenBaseInfo) GetTotalSupply() *float64
func (*TokenBaseInfo) GetTwitter ¶
func (t *TokenBaseInfo) GetTwitter() *string
func (*TokenBaseInfo) GetWebsite ¶
func (t *TokenBaseInfo) GetWebsite() *string
func (*TokenBaseInfo) GetWhitepaper ¶
func (t *TokenBaseInfo) GetWhitepaper() *string
func (*TokenBaseInfo) MarshalJSON ¶
func (t *TokenBaseInfo) MarshalJSON() ([]byte, error)
func (*TokenBaseInfo) SetAbout ¶
func (t *TokenBaseInfo) SetAbout(about *string)
SetAbout sets the About field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*TokenBaseInfo) SetChain ¶
func (t *TokenBaseInfo) SetChain(chain *string)
SetChain sets the Chain field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*TokenBaseInfo) SetCirculatingSupply ¶
func (t *TokenBaseInfo) SetCirculatingSupply(circulatingSupply *float64)
SetCirculatingSupply sets the CirculatingSupply field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*TokenBaseInfo) SetContract ¶
func (t *TokenBaseInfo) SetContract(contract *string)
SetContract sets the Contract field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*TokenBaseInfo) SetDecimals ¶
func (t *TokenBaseInfo) SetDecimals(decimals *float64)
SetDecimals sets the Decimals field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*TokenBaseInfo) SetDevHolderPercent ¶
func (t *TokenBaseInfo) SetDevHolderPercent(devHolderPercent *float64)
SetDevHolderPercent sets the DevHolderPercent field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*TokenBaseInfo) SetHolders ¶
func (t *TokenBaseInfo) SetHolders(holders *float64)
SetHolders sets the Holders field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*TokenBaseInfo) SetIcon ¶
func (t *TokenBaseInfo) SetIcon(icon *string)
SetIcon sets the Icon field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*TokenBaseInfo) SetInsiderHolderPercent ¶
func (t *TokenBaseInfo) SetInsiderHolderPercent(insiderHolderPercent *float64)
SetInsiderHolderPercent sets the InsiderHolderPercent field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*TokenBaseInfo) SetLiquidity ¶
func (t *TokenBaseInfo) SetLiquidity(liquidity *float64)
SetLiquidity sets the Liquidity field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*TokenBaseInfo) SetName ¶
func (t *TokenBaseInfo) SetName(name *string)
SetName sets the Name field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*TokenBaseInfo) SetPrice ¶
func (t *TokenBaseInfo) SetPrice(price *float64)
SetPrice sets the Price field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*TokenBaseInfo) SetSniperHolderPercent ¶
func (t *TokenBaseInfo) SetSniperHolderPercent(sniperHolderPercent *float64)
SetSniperHolderPercent sets the SniperHolderPercent field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*TokenBaseInfo) SetSymbol ¶
func (t *TokenBaseInfo) SetSymbol(symbol *string)
SetSymbol sets the Symbol field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*TokenBaseInfo) SetTelegram ¶
func (t *TokenBaseInfo) SetTelegram(telegram *string)
SetTelegram sets the Telegram field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*TokenBaseInfo) SetTop10HolderPercent ¶
func (t *TokenBaseInfo) SetTop10HolderPercent(top10HolderPercent *float64)
SetTop10HolderPercent sets the Top10HolderPercent field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*TokenBaseInfo) SetTotalSupply ¶
func (t *TokenBaseInfo) SetTotalSupply(totalSupply *float64)
SetTotalSupply sets the TotalSupply field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*TokenBaseInfo) SetTwitter ¶
func (t *TokenBaseInfo) SetTwitter(twitter *string)
SetTwitter sets the Twitter field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*TokenBaseInfo) SetWebsite ¶
func (t *TokenBaseInfo) SetWebsite(website *string)
SetWebsite sets the Website field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*TokenBaseInfo) SetWhitepaper ¶
func (t *TokenBaseInfo) SetWhitepaper(whitepaper *string)
SetWhitepaper sets the Whitepaper field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*TokenBaseInfo) String ¶
func (t *TokenBaseInfo) String() string
func (*TokenBaseInfo) UnmarshalJSON ¶
func (t *TokenBaseInfo) UnmarshalJSON(data []byte) error
type TokenInfo ¶
type TokenInfo struct {
Symbol *string `json:"symbol,omitempty" url:"symbol,omitempty"`
Address *string `json:"address,omitempty" url:"address,omitempty"`
Decimals *int `json:"decimals,omitempty" url:"decimals,omitempty"`
Price *string `json:"price,omitempty" url:"price,omitempty"`
Icon *string `json:"icon,omitempty" url:"icon,omitempty"`
// contains filtered or unexported fields
}
func (*TokenInfo) GetAddress ¶
func (*TokenInfo) GetDecimals ¶
func (*TokenInfo) GetExtraProperties ¶
func (*TokenInfo) MarshalJSON ¶
func (*TokenInfo) SetAddress ¶
SetAddress sets the Address field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*TokenInfo) SetDecimals ¶
SetDecimals sets the Decimals field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*TokenInfo) SetIcon ¶
SetIcon sets the Icon field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*TokenInfo) SetPrice ¶
SetPrice sets the Price field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*TokenInfo) SetSymbol ¶
SetSymbol sets the Symbol field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*TokenInfo) UnmarshalJSON ¶
type TooManyRequestsError ¶
type TooManyRequestsError struct {
*core.APIError
Body *BaseResponse
}
Too Many Requests (rate limited)
func (*TooManyRequestsError) MarshalJSON ¶
func (t *TooManyRequestsError) MarshalJSON() ([]byte, error)
func (*TooManyRequestsError) UnmarshalJSON ¶
func (t *TooManyRequestsError) UnmarshalJSON(data []byte) error
func (*TooManyRequestsError) Unwrap ¶
func (t *TooManyRequestsError) Unwrap() error
type TopRankRequest ¶
type TopRankRequest struct {
// Ranking list name
Name TopRankRequestName `json:"name" url:"-"`
// contains filtered or unexported fields
}
func (*TopRankRequest) MarshalJSON ¶
func (t *TopRankRequest) MarshalJSON() ([]byte, error)
func (*TopRankRequest) SetName ¶
func (t *TopRankRequest) SetName(name TopRankRequestName)
SetName sets the Name field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*TopRankRequest) UnmarshalJSON ¶
func (t *TopRankRequest) UnmarshalJSON(data []byte) error
type TopRankRequestName ¶
type TopRankRequestName string
Ranking list name
const ( TopRankRequestNameTopLosers TopRankRequestName = "topLosers" TopRankRequestNameTopGainers TopRankRequestName = "topGainers" TopRankRequestNameHotpicks TopRankRequestName = "hotpicks" )
func NewTopRankRequestNameFromString ¶
func NewTopRankRequestNameFromString(s string) (TopRankRequestName, error)
func (TopRankRequestName) Ptr ¶
func (t TopRankRequestName) Ptr() *TopRankRequestName
type TopRankResponse ¶
type TopRankResponse struct {
// Business data
Data *TopRankResponseData `json:"data,omitempty" url:"data,omitempty"`
// 0 indicates success
Status *int `json:"status,omitempty" url:"status,omitempty"`
TraceID *string `json:"traceId,omitempty" url:"traceId,omitempty"`
// contains filtered or unexported fields
}
func (*TopRankResponse) GetData ¶
func (t *TopRankResponse) GetData() *TopRankResponseData
func (*TopRankResponse) GetExtraProperties ¶
func (t *TopRankResponse) GetExtraProperties() map[string]interface{}
func (*TopRankResponse) GetStatus ¶
func (t *TopRankResponse) GetStatus() *int
func (*TopRankResponse) GetTraceID ¶
func (t *TopRankResponse) GetTraceID() *string
func (*TopRankResponse) MarshalJSON ¶
func (t *TopRankResponse) MarshalJSON() ([]byte, error)
func (*TopRankResponse) SetData ¶
func (t *TopRankResponse) SetData(data *TopRankResponseData)
SetData sets the Data field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*TopRankResponse) SetStatus ¶
func (t *TopRankResponse) SetStatus(status *int)
SetStatus sets the Status field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*TopRankResponse) SetTraceID ¶
func (t *TopRankResponse) SetTraceID(traceID *string)
SetTraceID sets the TraceID field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*TopRankResponse) String ¶
func (t *TopRankResponse) String() string
func (*TopRankResponse) UnmarshalJSON ¶
func (t *TopRankResponse) UnmarshalJSON(data []byte) error
type TopRankResponseData ¶
type TopRankResponseData struct {
List []*TopRankResponseDataListItem `json:"list,omitempty" url:"list,omitempty"`
// contains filtered or unexported fields
}
func (*TopRankResponseData) GetExtraProperties ¶
func (t *TopRankResponseData) GetExtraProperties() map[string]interface{}
func (*TopRankResponseData) GetList ¶
func (t *TopRankResponseData) GetList() []*TopRankResponseDataListItem
func (*TopRankResponseData) MarshalJSON ¶
func (t *TopRankResponseData) MarshalJSON() ([]byte, error)
func (*TopRankResponseData) SetList ¶
func (t *TopRankResponseData) SetList(list []*TopRankResponseDataListItem)
SetList sets the List field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*TopRankResponseData) String ¶
func (t *TopRankResponseData) String() string
func (*TopRankResponseData) UnmarshalJSON ¶
func (t *TopRankResponseData) UnmarshalJSON(data []byte) error
type TopRankResponseDataListItem ¶
type TopRankResponseDataListItem struct {
Symbol *string `json:"symbol,omitempty" url:"symbol,omitempty"`
Name *string `json:"name,omitempty" url:"name,omitempty"`
Chain *string `json:"chain,omitempty" url:"chain,omitempty"`
Contract *string `json:"contract,omitempty" url:"contract,omitempty"`
RiskLevel *TopRankResponseDataListItemRiskLevel `json:"risk_level,omitempty" url:"risk_level,omitempty"`
Icon *string `json:"icon,omitempty" url:"icon,omitempty"`
Price *float64 `json:"price,omitempty" url:"price,omitempty"`
Change24H *float64 `json:"change_24h,omitempty" url:"change_24h,omitempty"`
Volume24H *float64 `json:"volume_24h,omitempty" url:"volume_24h,omitempty"`
Turnover24H *float64 `json:"turnover_24h,omitempty" url:"turnover_24h,omitempty"`
MarketCap *float64 `json:"market_cap,omitempty" url:"market_cap,omitempty"`
IssueDate *float64 `json:"issue_date,omitempty" url:"issue_date,omitempty"`
// contains filtered or unexported fields
}
func (*TopRankResponseDataListItem) GetChain ¶
func (t *TopRankResponseDataListItem) GetChain() *string
func (*TopRankResponseDataListItem) GetChange24H ¶
func (t *TopRankResponseDataListItem) GetChange24H() *float64
func (*TopRankResponseDataListItem) GetContract ¶
func (t *TopRankResponseDataListItem) GetContract() *string
func (*TopRankResponseDataListItem) GetExtraProperties ¶
func (t *TopRankResponseDataListItem) GetExtraProperties() map[string]interface{}
func (*TopRankResponseDataListItem) GetIcon ¶
func (t *TopRankResponseDataListItem) GetIcon() *string
func (*TopRankResponseDataListItem) GetIssueDate ¶
func (t *TopRankResponseDataListItem) GetIssueDate() *float64
func (*TopRankResponseDataListItem) GetMarketCap ¶
func (t *TopRankResponseDataListItem) GetMarketCap() *float64
func (*TopRankResponseDataListItem) GetName ¶
func (t *TopRankResponseDataListItem) GetName() *string
func (*TopRankResponseDataListItem) GetPrice ¶
func (t *TopRankResponseDataListItem) GetPrice() *float64
func (*TopRankResponseDataListItem) GetRiskLevel ¶
func (t *TopRankResponseDataListItem) GetRiskLevel() *TopRankResponseDataListItemRiskLevel
func (*TopRankResponseDataListItem) GetSymbol ¶
func (t *TopRankResponseDataListItem) GetSymbol() *string
func (*TopRankResponseDataListItem) GetTurnover24H ¶
func (t *TopRankResponseDataListItem) GetTurnover24H() *float64
func (*TopRankResponseDataListItem) GetVolume24H ¶
func (t *TopRankResponseDataListItem) GetVolume24H() *float64
func (*TopRankResponseDataListItem) MarshalJSON ¶
func (t *TopRankResponseDataListItem) MarshalJSON() ([]byte, error)
func (*TopRankResponseDataListItem) SetChain ¶
func (t *TopRankResponseDataListItem) SetChain(chain *string)
SetChain sets the Chain field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*TopRankResponseDataListItem) SetChange24H ¶
func (t *TopRankResponseDataListItem) SetChange24H(change24H *float64)
SetChange24H sets the Change24H field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*TopRankResponseDataListItem) SetContract ¶
func (t *TopRankResponseDataListItem) SetContract(contract *string)
SetContract sets the Contract field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*TopRankResponseDataListItem) SetIcon ¶
func (t *TopRankResponseDataListItem) SetIcon(icon *string)
SetIcon sets the Icon field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*TopRankResponseDataListItem) SetIssueDate ¶
func (t *TopRankResponseDataListItem) SetIssueDate(issueDate *float64)
SetIssueDate sets the IssueDate field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*TopRankResponseDataListItem) SetMarketCap ¶
func (t *TopRankResponseDataListItem) SetMarketCap(marketCap *float64)
SetMarketCap sets the MarketCap field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*TopRankResponseDataListItem) SetName ¶
func (t *TopRankResponseDataListItem) SetName(name *string)
SetName sets the Name field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*TopRankResponseDataListItem) SetPrice ¶
func (t *TopRankResponseDataListItem) SetPrice(price *float64)
SetPrice sets the Price field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*TopRankResponseDataListItem) SetRiskLevel ¶
func (t *TopRankResponseDataListItem) SetRiskLevel(riskLevel *TopRankResponseDataListItemRiskLevel)
SetRiskLevel sets the RiskLevel field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*TopRankResponseDataListItem) SetSymbol ¶
func (t *TopRankResponseDataListItem) SetSymbol(symbol *string)
SetSymbol sets the Symbol field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*TopRankResponseDataListItem) SetTurnover24H ¶
func (t *TopRankResponseDataListItem) SetTurnover24H(turnover24H *float64)
SetTurnover24H sets the Turnover24H field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*TopRankResponseDataListItem) SetVolume24H ¶
func (t *TopRankResponseDataListItem) SetVolume24H(volume24H *float64)
SetVolume24H sets the Volume24H field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*TopRankResponseDataListItem) String ¶
func (t *TopRankResponseDataListItem) String() string
func (*TopRankResponseDataListItem) UnmarshalJSON ¶
func (t *TopRankResponseDataListItem) UnmarshalJSON(data []byte) error
type TopRankResponseDataListItemRiskLevel ¶
type TopRankResponseDataListItemRiskLevel string
const ( TopRankResponseDataListItemRiskLevelHigh TopRankResponseDataListItemRiskLevel = "high" TopRankResponseDataListItemRiskLevelMedium TopRankResponseDataListItemRiskLevel = "medium" TopRankResponseDataListItemRiskLevelLow TopRankResponseDataListItemRiskLevel = "low" )
func NewTopRankResponseDataListItemRiskLevelFromString ¶
func NewTopRankResponseDataListItemRiskLevelFromString(s string) (TopRankResponseDataListItemRiskLevel, error)
type TxnInfoInterval ¶
type TxnInfoInterval struct {
High *float64 `json:"high,omitempty" url:"high,omitempty"`
Low *float64 `json:"low,omitempty" url:"low,omitempty"`
Open *float64 `json:"open,omitempty" url:"open,omitempty"`
Turnover *float64 `json:"turnover,omitempty" url:"turnover,omitempty"`
BuyTurnover *float64 `json:"buy_turnover,omitempty" url:"buy_turnover,omitempty"`
SellTurnover *float64 `json:"sell_turnover,omitempty" url:"sell_turnover,omitempty"`
// Number of traders
Makers *float64 `json:"makers,omitempty" url:"makers,omitempty"`
Buyers *float64 `json:"buyers,omitempty" url:"buyers,omitempty"`
Sellers *float64 `json:"sellers,omitempty" url:"sellers,omitempty"`
Txns *float64 `json:"txns,omitempty" url:"txns,omitempty"`
Buys *float64 `json:"buys,omitempty" url:"buys,omitempty"`
Sells *float64 `json:"sells,omitempty" url:"sells,omitempty"`
// contains filtered or unexported fields
}
func (*TxnInfoInterval) GetBuyTurnover ¶
func (t *TxnInfoInterval) GetBuyTurnover() *float64
func (*TxnInfoInterval) GetBuyers ¶
func (t *TxnInfoInterval) GetBuyers() *float64
func (*TxnInfoInterval) GetBuys ¶
func (t *TxnInfoInterval) GetBuys() *float64
func (*TxnInfoInterval) GetExtraProperties ¶
func (t *TxnInfoInterval) GetExtraProperties() map[string]interface{}
func (*TxnInfoInterval) GetHigh ¶
func (t *TxnInfoInterval) GetHigh() *float64
func (*TxnInfoInterval) GetLow ¶
func (t *TxnInfoInterval) GetLow() *float64
func (*TxnInfoInterval) GetMakers ¶
func (t *TxnInfoInterval) GetMakers() *float64
func (*TxnInfoInterval) GetOpen ¶
func (t *TxnInfoInterval) GetOpen() *float64
func (*TxnInfoInterval) GetSellTurnover ¶
func (t *TxnInfoInterval) GetSellTurnover() *float64
func (*TxnInfoInterval) GetSellers ¶
func (t *TxnInfoInterval) GetSellers() *float64
func (*TxnInfoInterval) GetSells ¶
func (t *TxnInfoInterval) GetSells() *float64
func (*TxnInfoInterval) GetTurnover ¶
func (t *TxnInfoInterval) GetTurnover() *float64
func (*TxnInfoInterval) GetTxns ¶
func (t *TxnInfoInterval) GetTxns() *float64
func (*TxnInfoInterval) MarshalJSON ¶
func (t *TxnInfoInterval) MarshalJSON() ([]byte, error)
func (*TxnInfoInterval) SetBuyTurnover ¶
func (t *TxnInfoInterval) SetBuyTurnover(buyTurnover *float64)
SetBuyTurnover sets the BuyTurnover field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*TxnInfoInterval) SetBuyers ¶
func (t *TxnInfoInterval) SetBuyers(buyers *float64)
SetBuyers sets the Buyers field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*TxnInfoInterval) SetBuys ¶
func (t *TxnInfoInterval) SetBuys(buys *float64)
SetBuys sets the Buys field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*TxnInfoInterval) SetHigh ¶
func (t *TxnInfoInterval) SetHigh(high *float64)
SetHigh sets the High field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*TxnInfoInterval) SetLow ¶
func (t *TxnInfoInterval) SetLow(low *float64)
SetLow sets the Low field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*TxnInfoInterval) SetMakers ¶
func (t *TxnInfoInterval) SetMakers(makers *float64)
SetMakers sets the Makers field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*TxnInfoInterval) SetOpen ¶
func (t *TxnInfoInterval) SetOpen(open *float64)
SetOpen sets the Open field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*TxnInfoInterval) SetSellTurnover ¶
func (t *TxnInfoInterval) SetSellTurnover(sellTurnover *float64)
SetSellTurnover sets the SellTurnover field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*TxnInfoInterval) SetSellers ¶
func (t *TxnInfoInterval) SetSellers(sellers *float64)
SetSellers sets the Sellers field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*TxnInfoInterval) SetSells ¶
func (t *TxnInfoInterval) SetSells(sells *float64)
SetSells sets the Sells field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*TxnInfoInterval) SetTurnover ¶
func (t *TxnInfoInterval) SetTurnover(turnover *float64)
SetTurnover sets the Turnover field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*TxnInfoInterval) SetTxns ¶
func (t *TxnInfoInterval) SetTxns(txns *float64)
SetTxns sets the Txns field and marks it as non-optional; this prevents an empty or null value for this field from being omitted during serialization.
func (*TxnInfoInterval) String ¶
func (t *TxnInfoInterval) String() string
func (*TxnInfoInterval) UnmarshalJSON ¶
func (t *TxnInfoInterval) UnmarshalJSON(data []byte) error
Source Files
¶
Directories
¶
| Path | Synopsis |
|---|---|
|
On-chain queries and broadcasting
|
On-chain queries and broadcasting |
|
Instruction-mode trading endpoints (/swapx/pro)
|
Instruction-mode trading endpoints (/swapx/pro) |
|
Market data and prices (K-line, transaction info)
|
Market data and prices (K-line, transaction info) |
|
Order-mode trading endpoints (/swapx/order)
|
Order-mode trading endpoints (/swapx/order) |
|
RWA (Real World Asset) market data
|
RWA (Real World Asset) market data |
|
Token info, rankings, liquidity, and security audits
|
Token info, rankings, liquidity, and security audits |