ws

package
v0.0.0-...-ff23268 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// 現在btc_jpyのみ
	WsBTCJPY = "btc_jpy"

	WsExecution = "trades"
	WsOrderbook = "orderbook"
)
View Source
const (
	WSENDPOINT = "wss://ws-api.coincheck.com/"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type JsonRPC2

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

type Realtime

type Realtime struct {
	Result chan []byte
	// contains filtered or unexported fields
}

func NewRealtime

func NewRealtime() *Realtime

WebSocket APIはHTTP通信では実装が難しかった、リアルタイムでのやり取りが容易になり、取引所で公開されている取引の履歴、板情報を取得することができます。

WebSocket APIはβ版であるため、仕様に変更があったり、動作が不安定になる可能性があります。また、利用可能な通貨ペアは"btc_jpy"のみになります。(2017/03/03時点)

func (*Realtime) Close

func (p *Realtime) Close()

func (*Realtime) Connect

func (p *Realtime) Connect()

func (*Realtime) Subscribe

func (p *Realtime) Subscribe(products, channels []string)

type WsTrade

type WsTrade []interface{}

Jump to

Keyboard shortcuts

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