coincheck

package module
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: 8 Imported by: 0

README

go-coincheck

Coincheck API

Description

go-coincheck is a go client library for Coincheck API.

Connecting websocket, read data[trads, orderbook]. as of 2019/06.

Installation

$ go get -u github.com/go-numb/go-coincheck

Usage

package main

import (
 "fmt"
 "github.com/go-numb/go-coincheck/ws"
)


func main() {
	c := ws.NewRealtime()
	defer c.Close()

	products := []string{ws.WsBTCJPY}
	channels := []string{ws.WsExecution, ws.WsOrderbook}

	c.Subscribe(products, channels)

	go c.Connect()

	for {
		select {
		case v := <-c.Result:
			fmt.Printf("%+v\n", string(v))
		}
	}
}

Author

@_numbP

License

MIT

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeHeader

func MakeHeader(token, secret string, body interface{}, req *http.Request)

MakeHeader , option body allow []byte or string

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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