model

package
v2.9.1 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KLinesRes

type KLinesRes struct {
	Data []struct {
		OpenTime value.TimeInMillis `json:"openTime"`
		Open     decimal.Decimal    `json:"open"`
		High     decimal.Decimal    `json:"high"`
		Low      decimal.Decimal    `json:"low"`
		Close    decimal.Decimal    `json:"close"`
		Volume   decimal.Decimal    `json:"volume"`
	}
	model.ResponseCommon
}

type OrderBooksRes

type OrderBooksRes struct {
	model.ResponseCommon
	Data struct {
		Asks []struct {
			Price decimal.Decimal `json:"price"`
			Size  decimal.Decimal `json:"size"`
		} `json:"asks"`
		Bids []struct {
			Price decimal.Decimal `json:"price"`
			Size  decimal.Decimal `json:"size"`
		} `json:"bids"`
		Symbol consts.Symbol `json:"symbol"`
	} `json:"data"`
}

OrderBooksRes ...

type StatusRes

type StatusRes struct {
	model.ResponseCommon
	Data struct {
		Status consts.ExchangeStatus `json:"status"`
	}
}

StatusRes ...

type SymbolsRes

type SymbolsRes struct {
	Data []struct {
		Symbol       consts.Symbol   `json:"symbol"`
		MinOrderSize decimal.Decimal `json:"minOrderSize"`
		MaxOrderSize decimal.Decimal `json:"maxOrderSize"`
		SizeStep     decimal.Decimal `json:"sizeStep"`
		TickSize     decimal.Decimal `json:"tickSize"`
		TakerFee     decimal.Decimal `json:"takerFee"`
		MakerFee     decimal.Decimal `json:"makerFee"`
	}
	model.ResponseCommon
}

type TickerRes

type TickerRes struct {
	model.ResponseCommon
	Data []struct {
		Ask       decimal.Decimal `json:"ask"`
		Bid       decimal.Decimal `json:"bid"`
		High      decimal.Decimal `json:"high"`
		Low       decimal.Decimal `json:"low"`
		Last      decimal.Decimal `json:"last"`
		Symbol    consts.Symbol   `json:"symbol"`
		Timestamp time.Time       `json:"timestamp"`
		Volume    decimal.Decimal `json:"volume"`
	}
}

TickerRes ...

type TradesRes

type TradesRes struct {
	Data struct {
		List []struct {
			Price     decimal.Decimal `json:"price"`
			Side      consts.Side     `json:"side"`
			Size      decimal.Decimal `json:"size"`
			Timestamp time.Time       `json:"timestamp"`
		} `json:"list"`
		model.Pagination `json:"pagination"`
	}
	model.ResponseCommon
}

TradesRes ...

Jump to

Keyboard shortcuts

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