idmap

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Data

type Data struct {
	ID                  int    `json:"id"`
	Name                string `json:"name"`
	Symbol              string `json:"symbol"`
	Platform            string `json:"platform"`
	FirstHistoricalData string `json:"first_historical_data"`
	LastHistoricalData  string `json:"last_historical_data"`
	IsActive            int    `json:"is_active"`
	Status              string `json:"status"`
}

type Map

type Map struct {
	*client.Client
}

func New

func New(c *client.Client) *Map

func (*Map) GetID

func (m *Map) GetID(params *Params) ([]Data, error)

type Params

type Params struct {
	ListingStatus string
	Start         int
	Limit         int
	Sort          string
	Symbol        string
	Aux           string
}

type Response

type Response struct {
	Data   []Data `json:"data"`
	Status struct {
		Timestamp    string `json:"timestamp"`
		ErrorCode    int    `json:"error_code"`
		ErrorMessage string `json:"error_message"`
	} `json:"status"`
}

Jump to

Keyboard shortcuts

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