market

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GetInstrumentPath = "/_api/market-guide/{instrument}/{id}"
	SearchPath        = "/_mobile/market/search/{instrument}"
	GetMarketDataPath = "/_cqbe/trading/marketdata/{orderbookID}"
	GetChartDataPath  = "/_api/price-chart/stock/{orderbookID}?timePeriod={timePeriod}&resolution={resolution}"
)
View Source
const (
	ChartDataTimePeriodOneToday    = "today"
	ChartDataTimePeriodOneWeek     = "one_week"
	ChartDataTimePeriodOneMonth    = "one_month"
	ChartDataTimePeriodThreeMonths = "three_months"
	ChartDataTimePeriodSixMonths   = "six_months"
	ChartDataTimePeriodThisYear    = "this_year"
	ChartDataTimePeriodOneYear     = "one_year"
	ChartDataTimePeriodThreeYears  = "three_years"
	ChartDataTimePeriodFiveYears   = "five_years"
	ChartDataTimePeriodInfinity    = "infinity"
)
View Source
const (
	ChartDataResolutionMinute    = "minute"
	ChartDataResolutionTwoMin    = "two_minutes"
	ChartDataResolutionTenMin    = "ten_minutes"
	ChartDataResolutionThirtyMin = "thirty_minutes"
	ChartDataResolutionHour      = "hour"
	ChartDataResolutionDay       = "day"
	ChartDataResolutionWeek      = "week"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type MarketClient

type MarketClient struct {
	*client.Client
}

func (*MarketClient) GetChartData added in v1.3.0

func (*MarketClient) GetInstrument

GetInstrument gets metadata information about a specific instrument

func (*MarketClient) GetMarketData

GetMarketData gets the latest market for specific order-book

func (*MarketClient) Search

Search for metadata information about tickers, fund or other instruments

Jump to

Keyboard shortcuts

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