bgw

package module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 12, 2026 License: MIT Imports: 14 Imported by: 0

README

BitgetWallet Go Library

fern shield

The BitgetWallet Go library provides convenient access to the BitgetWallet APIs from Go.

Table of Contents

Reference

A full reference for this library is available here.

Usage

Instantiate and use the client with the following:

package example

import (
    context "context"

    bgw "github.com/bitgetwallet/tob-api-sdk"
    client "github.com/bitgetwallet/tob-api-sdk/client"
    option "github.com/bitgetwallet/tob-api-sdk/option"
)

func do() {
    client := client.NewClient(
        option.WithAPIKey(
            "<value>",
        ),
        option.WithAPITimestamp(
            "<x-api-timestamp>",
        ),
        option.WithAPISignature(
            "<x-api-signature>",
        ),
    )
    request := &bgw.InstructionQuoteRequest{
        FromContract: "fromContract",
        FromAmount: "fromAmount",
        FromChain: "fromChain",
        ToContract: "toContract",
        ToChain: "toChain",
    }
    client.InstructionMode.InstructionQuote(
        context.TODO(),
        request,
    )
}

Environments

You can choose between different environments by using the option.WithBaseURL option. You can configure any arbitrary base URL, which is particularly useful in test environments.

client := client.NewClient(
    option.WithBaseURL(bgw.Environments.Default),
)

Errors

Structured error types are returned from API calls that return non-success status codes. These errors are compatible with the errors.Is and errors.As APIs, so you can access the error like so:

response, err := client.InstructionMode.InstructionQuote(...)
if err != nil {
    var apiError *core.APIError
    if errors.As(err, apiError) {
        // Do something with the API error ...
    }
    return err
}

Request Options

A variety of request options are included to adapt the behavior of the library, which includes configuring authorization tokens, or providing your own instrumented *http.Client.

These request options can either be specified on the client so that they're applied on every request, or for an individual request, like so:

Providing your own *http.Client is recommended. Otherwise, the http.DefaultClient will be used, and your client will wait indefinitely for a response (unless the per-request, context-based timeout is used).

// Specify default options applied on every request.
client := client.NewClient(
    option.WithToken("<YOUR_API_KEY>"),
    option.WithHTTPClient(
        &http.Client{
            Timeout: 5 * time.Second,
        },
    ),
)

// Specify options for an individual request.
response, err := client.InstructionMode.InstructionQuote(
    ...,
    option.WithToken("<YOUR_API_KEY>"),
)

Advanced

Response Headers

You can access the raw HTTP response data by using the WithRawResponse field on the client. This is useful when you need to examine the response headers received from the API call. (When the endpoint is paginated, the raw HTTP response data will be included automatically in the Page response object.)

response, err := client.InstructionMode.WithRawResponse.InstructionQuote(...)
if err != nil {
    return err
}
fmt.Printf("Got response headers: %v", response.Header)
fmt.Printf("Got status code: %d", response.StatusCode)
Retries

The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2).

Which status codes are retried depends on the retryStatusCodes generator configuration:

legacy (current default): retries on

  • 408 (Timeout)
  • 429 (Too Many Requests)
  • 5XX (All server errors, including 500)

recommended: retries on

  • 408 (Timeout)
  • 429 (Too Many Requests)
  • 502 (Bad Gateway)
  • 503 (Service Unavailable)
  • 504 (Gateway Timeout)

If the Retry-After header is present in the response, the SDK will prioritize respecting its value exactly over the default exponential backoff.

Use the option.WithMaxAttempts option to configure this behavior for the entire client or an individual request:

client := client.NewClient(
    option.WithMaxAttempts(1),
)

response, err := client.InstructionMode.InstructionQuote(
    ...,
    option.WithMaxAttempts(1),
)
Timeouts

Setting a timeout for each individual request is as simple as using the standard context library. Setting a one second timeout for an individual API call looks like the following:

ctx, cancel := context.WithTimeout(ctx, time.Second)
defer cancel()

response, err := client.InstructionMode.InstructionQuote(ctx, ...)
Explicit Null

If you want to send the explicit null JSON value through an optional parameter, you can use the setters
that come with every object. Calling a setter method for a property will flip a bit in the explicitFields bitfield for that setter's object; during serialization, any property with a flipped bit will have its omittable status stripped, so zero or nil values will be sent explicitly rather than omitted altogether:

type ExampleRequest struct {
    // An optional string parameter.
    Name *string `json:"name,omitempty" url:"-"`

    // Private bitmask of fields set to an explicit value and therefore not to be omitted
    explicitFields *big.Int `json:"-" url:"-"`
}

request := &ExampleRequest{}
request.SetName(nil)

response, err := client.InstructionMode.InstructionQuote(ctx, request, ...)

Contributing

While we value open-source contributions to this SDK, this library is generated programmatically. Additions made directly to this library would have to be moved over to our generation code, otherwise they would be overwritten upon the next generated release. Feel free to open a PR as a proof of concept, but know that we will not be able to merge it as-is. We suggest opening an issue first to discuss with us!

On the other hand, contributions to the README are always very welcome!

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

Constants

This section is empty.

Variables

View Source
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.

View Source
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 Bool

func Bool(b bool) *bool

Bool returns a pointer to the given bool value.

func Byte

func Byte(b byte) *byte

Byte returns a pointer to the given byte value.

func Bytes

func Bytes(b []byte) *[]byte

Bytes returns a pointer to the given []byte value.

func Complex64

func Complex64(c complex64) *complex64

Complex64 returns a pointer to the given complex64 value.

func Complex128

func Complex128(c complex128) *complex128

Complex128 returns a pointer to the given complex128 value.

func Float32

func Float32(f float32) *float32

Float32 returns a pointer to the given float32 value.

func Float64

func Float64(f float64) *float64

Float64 returns a pointer to the given float64 value.

func Int

func Int(i int) *int

Int returns a pointer to the given int value.

func Int8

func Int8(i int8) *int8

Int8 returns a pointer to the given int8 value.

func Int16

func Int16(i int16) *int16

Int16 returns a pointer to the given int16 value.

func Int32

func Int32(i int32) *int32

Int32 returns a pointer to the given int32 value.

func Int64

func Int64(i int64) *int64

Int64 returns a pointer to the given int64 value.

func MustParseDate

func MustParseDate(date string) time.Time

MustParseDate attempts to parse the given string as a date time.Time, and panics upon failure.

func MustParseDateTime

func MustParseDateTime(datetime string) time.Time

MustParseDateTime attempts to parse the given string as a datetime time.Time, and panics upon failure.

func Rune

func Rune(r rune) *rune

Rune returns a pointer to the given rune value.

func String

func String(s string) *string

String returns a pointer to the given string value.

func Time

func Time(t time.Time) *time.Time

Time returns a pointer to the given time.Time value.

func UUID

func UUID(u uuid.UUID) *uuid.UUID

UUID returns a pointer to the given uuid.UUID value.

func Uint

func Uint(u uint) *uint

Uint returns a pointer to the given uint value.

func Uint8

func Uint8(u uint8) *uint8

Uint8 returns a pointer to the given uint8 value.

func Uint16

func Uint16(u uint16) *uint16

Uint16 returns a pointer to the given uint16 value.

func Uint32

func Uint32(u uint32) *uint32

Uint32 returns a pointer to the given uint32 value.

func Uint64

func Uint64(u uint64) *uint64

Uint64 returns a pointer to the given uint64 value.

func Uintptr

func Uintptr(u uintptr) *uintptr

Uintptr returns a pointer to the given uintptr value.

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 (*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

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

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 (*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 (*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 (*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

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 (*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 (*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

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 (*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 (*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 (*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

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 (*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 (*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

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 (*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 (*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

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 (*BatchGetTxInfoResponseData) MarshalJSON

func (b *BatchGetTxInfoResponseData) MarshalJSON() ([]byte, error)

func (*BatchGetTxInfoResponseData) SetList

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 (*BatchGetTxInfoResponseDataListItem) GetContract

func (b *BatchGetTxInfoResponseDataListItem) GetContract() *string

func (*BatchGetTxInfoResponseDataListItem) GetExtraProperties

func (b *BatchGetTxInfoResponseDataListItem) GetExtraProperties() map[string]interface{}

func (*BatchGetTxInfoResponseDataListItem) GetPrice

func (*BatchGetTxInfoResponseDataListItem) GetTxnInfo

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 (*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) GetChain

func (c *ChainInfo) GetChain() *string

func (*ChainInfo) GetExtraProperties

func (c *ChainInfo) GetExtraProperties() map[string]interface{}

func (*ChainInfo) GetIcon

func (c *ChainInfo) GetIcon() *string

func (*ChainInfo) GetName

func (c *ChainInfo) GetName() *string

func (*ChainInfo) MarshalJSON

func (c *ChainInfo) MarshalJSON() ([]byte, error)

func (*ChainInfo) SetChain

func (c *ChainInfo) 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 (*ChainInfo) SetIcon

func (c *ChainInfo) 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 (*ChainInfo) SetName

func (c *ChainInfo) 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 (*ChainInfo) String

func (c *ChainInfo) String() string

func (*ChainInfo) UnmarshalJSON

func (c *ChainInfo) UnmarshalJSON(data []byte) error

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 (*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) GetAppFee

func (f *Fee) GetAppFee() *FeeBucket

func (*Fee) GetExtraProperties

func (f *Fee) GetExtraProperties() map[string]interface{}

func (*Fee) GetGasFee

func (f *Fee) GetGasFee() *FeeBucket

func (*Fee) GetLpFee

func (f *Fee) GetLpFee() *FeeBucket

func (*Fee) GetPlatformFee

func (f *Fee) GetPlatformFee() *FeeBucket

func (*Fee) GetSwapFee

func (f *Fee) GetSwapFee() *FeeBucket

func (*Fee) GetTotalAmountInUsd

func (f *Fee) GetTotalAmountInUsd() *string

func (*Fee) MarshalJSON

func (f *Fee) MarshalJSON() ([]byte, error)

func (*Fee) SetAppFee

func (f *Fee) SetAppFee(appFee *FeeBucket)

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

func (f *Fee) SetGasFee(gasFee *FeeBucket)

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

func (f *Fee) SetLpFee(lpFee *FeeBucket)

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

func (f *Fee) SetPlatformFee(platformFee *FeeBucket)

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

func (f *Fee) SetSwapFee(swapFee *FeeBucket)

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

func (f *Fee) 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 (*Fee) String

func (f *Fee) String() string

func (*Fee) UnmarshalJSON

func (f *Fee) UnmarshalJSON(data []byte) error

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 (f *FeeBucket) GetAmountInUsd() *string

func (*FeeBucket) GetExtraProperties

func (f *FeeBucket) GetExtraProperties() map[string]interface{}

func (*FeeBucket) GetItems

func (f *FeeBucket) GetItems() []*FeeBucketItemsItem

func (*FeeBucket) MarshalJSON

func (f *FeeBucket) MarshalJSON() ([]byte, error)

func (*FeeBucket) SetAmountInUsd

func (f *FeeBucket) 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 (*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) String

func (f *FeeBucket) String() string

func (*FeeBucket) UnmarshalJSON

func (f *FeeBucket) UnmarshalJSON(data []byte) error

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 (*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

type FileParam

type FileParam struct {
	io.Reader
	// contains filtered or unexported fields
}

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

func (f *FileParam) ContentType() string

func (*FileParam) Name

func (f *FileParam) Name() string

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 (*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 (*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 (*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 (*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

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 (*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 (*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 (*GetGasPriceResponseDataEip1559MaxPriorityFeePerGasTiered) GetMedium

func (*GetGasPriceResponseDataEip1559MaxPriorityFeePerGasTiered) GetNormal

func (*GetGasPriceResponseDataEip1559MaxPriorityFeePerGasTiered) MarshalJSON

func (*GetGasPriceResponseDataEip1559MaxPriorityFeePerGasTiered) SetFast

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

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

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 (*GetGasPriceResponseDataEip1559MaxPriorityFeePerGasTiered) UnmarshalJSON

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

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 (*GetKlineResponseData) MarshalJSON

func (g *GetKlineResponseData) MarshalJSON() ([]byte, error)

func (*GetKlineResponseData) SetList

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 (*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 (*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 (*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 (*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 (*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

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 (*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

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 (*HistoricalCoinsResponseDataTokenListItem) GetContract

func (*HistoricalCoinsResponseDataTokenListItem) GetCreateTime

func (*HistoricalCoinsResponseDataTokenListItem) GetDecimals

func (*HistoricalCoinsResponseDataTokenListItem) GetExtraProperties

func (h *HistoricalCoinsResponseDataTokenListItem) GetExtraProperties() map[string]interface{}

func (*HistoricalCoinsResponseDataTokenListItem) GetIcon

func (*HistoricalCoinsResponseDataTokenListItem) GetName

func (*HistoricalCoinsResponseDataTokenListItem) GetSymbol

func (*HistoricalCoinsResponseDataTokenListItem) MarshalJSON

func (h *HistoricalCoinsResponseDataTokenListItem) MarshalJSON() ([]byte, error)

func (*HistoricalCoinsResponseDataTokenListItem) 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 (*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

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

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 (*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 (*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

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 (*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

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 (*InstructionSendRequestTxsItem) GetID

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

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 (*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 (*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

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 (*InstructionSendResponseDataItem) GetExtraProperties

func (i *InstructionSendResponseDataItem) GetExtraProperties() map[string]interface{}

func (*InstructionSendResponseDataItem) GetID

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

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 (*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

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 (*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

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

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 (*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

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 (*InstructionSwaprResponseData) GetID

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 (*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

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

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 (*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 (*InstructionSwaprResponseDataFee) GetTotalAmountInUsd

func (i *InstructionSwaprResponseDataFee) GetTotalAmountInUsd() *string

func (*InstructionSwaprResponseDataFee) MarshalJSON

func (i *InstructionSwaprResponseDataFee) MarshalJSON() ([]byte, error)

func (*InstructionSwaprResponseDataFee) 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 (*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 (*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 (*InstructionSwaprResponseDataFeePlatformFee) GetExtraProperties

func (i *InstructionSwaprResponseDataFeePlatformFee) GetExtraProperties() map[string]interface{}

func (*InstructionSwaprResponseDataFeePlatformFee) GetItems

func (*InstructionSwaprResponseDataFeePlatformFee) MarshalJSON

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 (*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 (*InstructionSwaprResponseDataTxsItem) GetChainID

func (*InstructionSwaprResponseDataTxsItem) GetExtraProperties

func (i *InstructionSwaprResponseDataTxsItem) GetExtraProperties() map[string]interface{}

func (*InstructionSwaprResponseDataTxsItem) GetFunction

func (*InstructionSwaprResponseDataTxsItem) GetGasLimit

func (*InstructionSwaprResponseDataTxsItem) GetGasPrice

func (*InstructionSwaprResponseDataTxsItem) GetNonce

func (*InstructionSwaprResponseDataTxsItem) GetTo

func (*InstructionSwaprResponseDataTxsItem) GetValue

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

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 (*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 (*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

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 (*OrderCheckOrdersFeeResponseData) MarshalJSON

func (o *OrderCheckOrdersFeeResponseData) MarshalJSON() ([]byte, error)

func (*OrderCheckOrdersFeeResponseData) SetItems

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 (*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 (*OrderCheckOrdersFeeResponseDataItemsItem) GetOrderID

func (*OrderCheckOrdersFeeResponseDataItemsItem) MarshalJSON

func (o *OrderCheckOrdersFeeResponseDataItemsItem) MarshalJSON() ([]byte, error)

func (*OrderCheckOrdersFeeResponseDataItemsItem) SetFee

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 (*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 (*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

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 (*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 (*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 (*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

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

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

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 (*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 (*OrderGetSwapOrderResponseDataGasFee) GetGasLimit

func (o *OrderGetSwapOrderResponseDataGasFee) GetGasLimit() *string

func (*OrderGetSwapOrderResponseDataGasFee) GetGasPrice

func (o *OrderGetSwapOrderResponseDataGasFee) GetGasPrice() *string

func (*OrderGetSwapOrderResponseDataGasFee) GetGasUsed

func (*OrderGetSwapOrderResponseDataGasFee) GetNetUsed

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

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 (*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)

func (OrderGetSwapOrderResponseDataStatus) Ptr

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 (*OrderGetSwapOrderResponseDataTxsItem) GetExtraProperties

func (o *OrderGetSwapOrderResponseDataTxsItem) GetExtraProperties() map[string]interface{}

func (*OrderGetSwapOrderResponseDataTxsItem) GetStage

func (*OrderGetSwapOrderResponseDataTxsItem) GetTokens

func (*OrderGetSwapOrderResponseDataTxsItem) GetTxID

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

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 (*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)

func (OrderGetSwapOrderResponseDataTxsItemStage) Ptr

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 (*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

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 (*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 (*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

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 (*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

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 (*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 (*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

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 (*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 (*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 (*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

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 (*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 (*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

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 (*PoolListResponseDataActivitiesItem) GetTime

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 (*PoolListResponseDataActivitiesItem) GetTxURL

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

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 (*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)

func (PoolListResponseDataActivitiesItemSide) Ptr

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 (*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

type RwaChainAssetMarketStatus

type RwaChainAssetMarketStatus string
const (
	RwaChainAssetMarketStatusOpen  RwaChainAssetMarketStatus = "open"
	RwaChainAssetMarketStatusClose RwaChainAssetMarketStatus = "close"
)

func NewRwaChainAssetMarketStatusFromString

func NewRwaChainAssetMarketStatusFromString(s string) (RwaChainAssetMarketStatus, error)

func (RwaChainAssetMarketStatus) Ptr

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

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 (*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

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 (*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

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 (*RwaKlineResponseData) MarshalJSON

func (r *RwaKlineResponseData) MarshalJSON() ([]byte, error)

func (*RwaKlineResponseData) SetList

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 (*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 (*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 (*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

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 (*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

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 (*RwaStockListResponseData) MarshalJSON

func (r *RwaStockListResponseData) MarshalJSON() ([]byte, error)

func (*RwaStockListResponseData) SetList

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 (*RwaStockListResponseDataListItem) GetExtraProperties

func (r *RwaStockListResponseDataListItem) GetExtraProperties() map[string]interface{}

func (*RwaStockListResponseDataListItem) GetIcon

func (*RwaStockListResponseDataListItem) GetName

func (*RwaStockListResponseDataListItem) GetStatus

func (*RwaStockListResponseDataListItem) GetTicker

func (r *RwaStockListResponseDataListItem) GetTicker() *string

func (*RwaStockListResponseDataListItem) MarshalJSON

func (r *RwaStockListResponseDataListItem) MarshalJSON() ([]byte, error)

func (*RwaStockListResponseDataListItem) SetContracts

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

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 (*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 (*RwaStockListResponseDataListItemContractsItem) GetContract

func (*RwaStockListResponseDataListItemContractsItem) GetDataSource

func (*RwaStockListResponseDataListItemContractsItem) GetExtraProperties

func (r *RwaStockListResponseDataListItemContractsItem) GetExtraProperties() map[string]interface{}

func (*RwaStockListResponseDataListItemContractsItem) GetStatus

func (*RwaStockListResponseDataListItemContractsItem) GetSymbol

func (*RwaStockListResponseDataListItemContractsItem) MarshalJSON

func (*RwaStockListResponseDataListItemContractsItem) 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 (*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

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

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 (*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)

func (RwaStockListResponseDataListItemContractsItemStatus) Ptr

type RwaStockListResponseDataListItemStatus

type RwaStockListResponseDataListItemStatus string
const (
	RwaStockListResponseDataListItemStatusOnline  RwaStockListResponseDataListItemStatus = "online"
	RwaStockListResponseDataListItemStatusOffline RwaStockListResponseDataListItemStatus = "offline"
)

func NewRwaStockListResponseDataListItemStatusFromString

func NewRwaStockListResponseDataListItemStatusFromString(s string) (RwaStockListResponseDataListItemStatus, error)

func (RwaStockListResponseDataListItemStatus) Ptr

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

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

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 (*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

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 (*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

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 (*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 (*RwaTransactionListResponseDataListItem) GetExtraProperties

func (r *RwaTransactionListResponseDataListItem) GetExtraProperties() map[string]interface{}

func (*RwaTransactionListResponseDataListItem) GetPrice

func (*RwaTransactionListResponseDataListItem) GetSide

func (*RwaTransactionListResponseDataListItem) GetTs

func (*RwaTransactionListResponseDataListItem) GetTxFrom

func (*RwaTransactionListResponseDataListItem) GetTxHash

func (*RwaTransactionListResponseDataListItem) GetValue

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

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

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 (*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

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 (*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 (*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

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 (*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 (*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 (*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

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.

func (*SigningHTTPClient) Do

func (s *SigningHTTPClient) Do(req *http.Request) (*http.Response, error)

Do signs the request and forwards it to the delegate.

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 (t *TokenInfo) GetAddress() *string

func (*TokenInfo) GetDecimals

func (t *TokenInfo) GetDecimals() *int

func (*TokenInfo) GetExtraProperties

func (t *TokenInfo) GetExtraProperties() map[string]interface{}

func (*TokenInfo) GetIcon

func (t *TokenInfo) GetIcon() *string

func (*TokenInfo) GetPrice

func (t *TokenInfo) GetPrice() *string

func (*TokenInfo) GetSymbol

func (t *TokenInfo) GetSymbol() *string

func (*TokenInfo) MarshalJSON

func (t *TokenInfo) MarshalJSON() ([]byte, error)

func (*TokenInfo) SetAddress

func (t *TokenInfo) 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 (*TokenInfo) SetDecimals

func (t *TokenInfo) 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 (*TokenInfo) SetIcon

func (t *TokenInfo) 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 (*TokenInfo) SetPrice

func (t *TokenInfo) SetPrice(price *string)

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

func (t *TokenInfo) 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 (*TokenInfo) String

func (t *TokenInfo) String() string

func (*TokenInfo) UnmarshalJSON

func (t *TokenInfo) UnmarshalJSON(data []byte) error

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

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 (*TopRankResponseData) MarshalJSON

func (t *TopRankResponseData) MarshalJSON() ([]byte, error)

func (*TopRankResponseData) SetList

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 (*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

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)

func (TopRankResponseDataListItemRiskLevel) Ptr

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

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL