balancehistory

package
v0.0.0-...-81d47fe Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BalanceHistory

type BalanceHistory struct {
	ID           int               `json:"id"`
	TradeDate    time.BitFlyerTime `json:"trade_date"`
	ProductCode  types.ProductCode `json:"product_code"`
	CurrencyCode string            `json:"currency_code"`
	TradeType    TradeType         `json:"trade_type"`
	Price        float64           `json:"price"`
	Amount       float64           `json:"amount"`
	Quantity     float64           `json:"quantity"`
	Commission   int               `json:"commission"`
	Balance      float64           `json:"balance"`
	OrderID      string            `json:"order_id"`
}

type Request

type Request struct {
	CurrencyCode types.CurrencyCode `url:"currency_code"`
	Count        int                `url:"count,omitempty"`
	Before       int                `url:"before,omitempty"`
	After        int                `url:"after,omitempty"`
}

func (*Request) Endpoint

func (req *Request) Endpoint() string

func (*Request) Method

func (req *Request) Method() string

func (*Request) Payload

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

func (*Request) Query

func (req *Request) Query() string

type Response

type Response []BalanceHistory

type TradeType

type TradeType string
const (
	Buy        TradeType = "BUY"         // 買い
	Sell       TradeType = "SELL"        // 売り
	Deposit    TradeType = "DEPOSIT"     // 入金・仮想通貨の預入
	Withdraw   TradeType = "WITHDRAW"    // 出金・仮想通貨の外部送付
	Fee        TradeType = "FEE"         // 手数料
	PostColl   TradeType = "POST_COL"    // 証拠金の預入
	CancelColl TradeType = "CANCEL_COLL" // 証拠金の引出
	Payment    TradeType = "PAYMENT"     //  ビットコイン決済による仮想通貨の移転
	Transfer   TradeType = "TRANSFER"    // その他の一般的な資金移動
)

Jump to

Keyboard shortcuts

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