atmapi

package module
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Endpoint = "https://box-atm-api.fox.one"
)

Variables

This section is empty.

Functions

func GenerateJWTToken

func GenerateJWTToken(uid string, key *ecdsa.PrivateKey, exp time.Duration) (string, error)

func UseEndpoint

func UseEndpoint(endpoint string)

Types

type UserTradeReport

type UserTradeReport struct {
	Date             string          `json:"date"`
	UserID           string          `json:"user_id"`
	PaidAssetID      string          `json:"paid_asset_id"`
	PaidAmount       decimal.Decimal `json:"paid_amount"`
	BOXAmount        decimal.Decimal `json:"box_amount"`
	BTCAmount        decimal.Decimal `json:"btc_amount"`
	XINAmount        decimal.Decimal `json:"xin_amount"`
	EOSAmount        decimal.Decimal `json:"eos_amount"`
	USDTAmount       decimal.Decimal `json:"usdt_amount"`
	ConversionAmount decimal.Decimal `json:"conversion_amount"`
	Count            int64           `json:"count"`
	CreatedAt        int64           `json:"created_at"`
}

func ListAllUserTradeReports

func ListAllUserTradeReports(ctx context.Context, token, date string) ([]*UserTradeReport, error)

func ListUserTradeReport

func ListUserTradeReport(ctx context.Context, token, date, cursor string, limit int) ([]*UserTradeReport, *pagination.Pagination, error)

Jump to

Keyboard shortcuts

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