bitbank

package
v0.0.0-...-dc0a48c Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PUBLIC_URL  = "https://public.bitbank.cc/"
	PRIVATE_URL = "https://private.bitbank.cc/"
	// API 公式ドキュメントに記載ないため,エラーで判別
	// 1mでリミットを設けておく(参考: BitflyerAPI limit)
	API_PRIVATE_LIMIT = 200
	API_PUBLIC_LIMIT  = 500
)

Variables

This section is empty.

Functions

This section is empty.

Types

type APILimit

type APILimit struct {
	sync.Mutex

	Public  int
	Private int
}

func (*APILimit) Reset

func (p *APILimit) Reset()

func (*APILimit) Sub

func (p *APILimit) Sub(isPrivate bool)

type Client

type Client struct {
	PublicURL  string
	PrivateURL string

	Transactions *transaction.Request
	Depth        *depth.Request
	Tickers      *ticker.Request
	OHLCV        *ohlcv.Request

	Auth *private.Auth

	Limit *APILimit
}

func New

func New(token, secret string) *Client

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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