types

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2023 License: Apache-2.0 Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GetInterestHistoryParam

type GetInterestHistoryParam struct {
	Asset          string `url:"asset,omitempty" validate:"omitempty"`
	IsolatedSymbol string `url:"isolatedSymbol,omitempty" validate:"omitempty"`
	StartTime      int64  `url:"startTime,omitempty" validate:"omitempty"`
	EndTime        int64  `url:"endTime,omitempty" validate:"omitempty"`
	Current        int64  `url:"current,omitempty" validate:"omitempty"`
	Size           int64  `url:"size,omitempty" validate:"omitempty"`
	Archived       string `url:"archived,omitempty" validate:"omitempty"`
}

type GetInterestHistoryParams

type GetInterestHistoryParams struct {
	GetInterestHistoryParam
	bnutils.DefaultParam
}

type GetInterestHistoryResp

type GetInterestHistoryResp struct {
	Http *utils.ApiResponse
	Body *InterestHistory
}

type Interest

type Interest struct {
	TxId                int64  `json:"txId,omitempty"`
	InterestAccuredTime int64  `json:"interestAccuredTime,omitempty"`
	Asset               string `json:"asset,omitempty"`
	RawAsset            string `json:"rawAsset,omitempty"`
	Principal           string `json:"principal,omitempty"`
	Interest            string `json:"interest,omitempty"`
	InterestRate        string `json:"interestRate,omitempty"`
	Type                string `json:"type,omitempty"`
	IsolatedSymbol      string `json:"isolatedSymbol,omitempty"`
}

type InterestHistory

type InterestHistory struct {
	Rows  []Interest `json:"rows"`
	Total int64      `json:"total"`
}

Jump to

Keyboard shortcuts

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