bitflyer

package
v0.0.0-...-2bbf4a6 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ChannelExecutionsBTCJPY   = "lightning_executions_BTC_JPY"
	ChannelExecutionsFXBTCJPY = "lightning_executions_FX_BTC_JPY"
	ChannelExecutionsETHJPY   = "lightning_executions_ETH_JPY"
)

Variables

This section is empty.

Functions

func NewChannel

func NewChannel(name string) json.RawMessage

func NewURL

func NewURL() url.URL

func Subscribe

func Subscribe(channelName string) (chan json.RawMessage, chan error, error)

Types

type Channel

type Channel struct {
	Channel string `json:"channel"`
}

type Execution

type Execution struct {
	ID                         int     `json:"id"`
	Side                       string  `json:"side"`
	Size                       float64 `json:"size"`
	Price                      float64 `json:"price"`
	ExecDate                   string  `json:"exec_date"`
	BuyChildOrderAcceptanceID  string  `json:"buy_child_order_acceptance_id"`
	SellChildOrderAcceptanceID string  `json:"sell_child_order_acceptance_id"`
}

func (Execution) Generalize

func (e Execution) Generalize() *gabtms.Execution

type ExecutionsParam

type ExecutionsParam struct {
	Channel string      `json:"channel"`
	Message []Execution `json:"message"`
}

type ResponseExecutions

type ResponseExecutions struct {
	Version string          `json:"jsonrpc"`
	Method  string          `json:"method"`
	Params  ExecutionsParam `json:"params"`
	Result  interface{}     `json:"result"`
	ID      *int            `json:"id"`
}

Jump to

Keyboard shortcuts

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