bq

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: May 31, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BigQueryWriter

type BigQueryWriter struct {
	Client *bigquery.Client
	Ctx    context.Context
}

func NewBigQueryWriter

func NewBigQueryWriter(project string) *BigQueryWriter

type BqBoard

type BqBoard struct {
	Time         time.Time
	MidPrice     int
	BestAskPrice int
	BestAskSize  float64
	BestBidPrice int
	BestBidSize  float64
	Spread       int
}

func (*BqBoard) Save

func (b *BqBoard) Save() (row map[string]bigquery.Value, insertID string, err error)

type BqExecution

type BqExecution struct {
	Id                         int64     // ID
	ExecDate                   time.Time // 日時
	Price                      int       // 価格
	Size                       float64   // サイズ
	Side                       string    // 売買種別
	BuyChildOrderAcceptanceId  string    // 買い注文ID
	SellChildOrderAcceptanceId string    // 売り注文ID
	Delay                      float64   // 受信遅延時間
	ReceivedTime               time.Time
}

func (*BqExecution) Save

func (e *BqExecution) Save() (row map[string]bigquery.Value, insertID string, err error)

Jump to

Keyboard shortcuts

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