models

package
v0.0.0-...-2604013 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PlaceRequestParams

type PlaceRequestParams struct {
	Volume string `json:"volume"` // quote volume (base currency)
	Price  string `json:"price"`  // quote price (quote currency)
	Pair   string `json:"pair"`   // BTC/USDT, ETH/USDT ...
}

type PlaceReturn

type PlaceReturn struct {
	Code int    `json:"code"`
	Err  string `json:"err"`
	Data struct {
		ID           string          `json:"id"`
		Pair         string          `json:"pair"`
		Email        string          `json:"email"` // User who own the order.
		QuotePrice   decimal.Decimal `json:"price"`
		QuoteVolume  decimal.Decimal `json:"volume"`       // base currency
		QuoteAmount  decimal.Decimal `json:"quote_amount"` // quote currency
		DealVolume   decimal.Decimal `json:"deal_volume"`
		RemainVolume decimal.Decimal `json:"remain_volume"`
		DealAmount   decimal.Decimal `json:"deal_amount"`
		DealFee      decimal.Decimal `json:"deal_fee"`
		CreatedAt    int64           `json:"created_at"`
		UsedUpAt     int64           `json:"used_up_at"`
		IsCanceled   bool            `json:"is_canceled"`
		CanceledAt   int64           `json:"canceled_at"`
		UpdatedAt    int64           `json:"updated_at"`
		Kind         int             `json:"kind"`
	} `json:"data"`
}

type Response

type Response struct {
	Code int         `json:"code"`
	Err  string      `json:"err"`
	Data interface{} `json:"data"`
}

Jump to

Keyboard shortcuts

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