collateral

package
v0.0.0-...-30c84b1 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const PATH = "/v1/me/getcollateral"

Variables

This section is empty.

Functions

This section is empty.

Types

type Request

type Request struct{}

func New

func New() *Request

func (*Request) Method

func (p *Request) Method() string

func (*Request) Path

func (p *Request) Path() string

func (*Request) Payload

func (p *Request) Payload() []byte

func (*Request) Query

func (p *Request) Query() string

type Response

type Response struct {
	Collateral        float64 `json:"collateral"`         // This is the amount of deposited in Japanese Yen.
	OpenPositionPNL   float64 `json:"open_position_pnl"`  // This is the profit or loss from valuation.
	RequireCollateral float64 `json:"require_collateral"` // This is the current required margin.
	KeepRate          float64 `json:"keep_rate"`          // This is the current maintenance margin.
}

Jump to

Keyboard shortcuts

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