depth

package
v0.0.0-...-e85216b Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2020 License: MIT Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Depth

type Depth struct {
	Client *client.Client
}

Depth is a depth

func (*Depth) Get

func (d *Depth) Get(pair types.TypePair) (*DepthResponse, error)

Get gets depth infomation.

type DepthResponse

type DepthResponse struct {
	Success int `json:"success"`
	Data    struct {
		Code int        `json:"code"`
		Asks [][]string `json:"asks"`
		Bids [][]string `json:"bids"`
	} `json:"data"`
}

DepthResponse is a response for Depth.

Jump to

Keyboard shortcuts

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