api

package
v1.0.1-0...-597d5de Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const RestURL string = "https://demo-futures.kraken.com"
View Source
const WsURL string = "wss://demo-futures.kraken.com/ws/v1"

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API struct {
	// contains filtered or unexported fields
}

func New

func New(auth Auth, sig string) API

func (*API) CancelOrder

func (api *API) CancelOrder(orderID string, clientID string) (bool, error)

func (*API) GetOpenPos

func (api *API) GetOpenPos() (float64, error)

func (*API) SendOrder

func (api *API) SendOrder(order book.Order) (orderID string, clientID string, err error)

type Auth

type Auth struct {
	APIKey    string
	APISecret string
}

func (*Auth) Authentication

func (auth *Auth) Authentication(endPoint string, postData string) (nonce string, authent string)

Jump to

Keyboard shortcuts

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