response

package
v0.0.0-...-33ad2ad Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2022 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TransactionTypeDeposit            = 0
	TransactionTypeWithdrawal         = 1
	TransactionTypeMarketTrade        = 2
	TransactionTypeSubAccountTransfer = 14
)

Transaction types

View Source
const (
	OrderTypeBuy  = 0
	OrderTypeSell = 1
)

Order types

View Source
const (
	WithdrawalTypeSEPA = 0
	WithdrawalTypeBTC  = 1
	WithdrawalTypeWIRE = 2
	WithdrawalTypeXRP  = 14
	WithdrawalTypeLTC  = 15
	WithdrawalTypeETH  = 15
)

Withdrawal types

Variables

This section is empty.

Functions

This section is empty.

Types

type Balance

type Balance struct {
	BtcAvailable float64 `json:"btc_available,string"`
	BtcBalance   float64 `json:"btc_balance,string"`
	BtcReserved  float64 `json:"btc_reserved,string"`
	BtceurFee    float64 `json:"btceur_fee,string"`
	BtcusdFee    float64 `json:"btcusd_fee,string"`
	EthAvailable float64 `json:"eth_available,string"`
	EthBalance   float64 `json:"eth_balance,string"`
	EthReserved  float64 `json:"eth_reserved,string"`
	EthbtcFee    float64 `json:"ethbtc_fee,string"`
	EtheurFee    float64 `json:"etheur_fee,string"`
	EthusdFee    float64 `json:"ethusd_fee,string"`
	EurAvailable float64 `json:"eur_available,string"`
	EurBalance   float64 `json:"eur_balance,string"`
	EurReserved  float64 `json:"eur_reserved,string"`
	EurusdFee    float64 `json:"eurusd_fee,string"`
	LtcAvailable float64 `json:"ltc_available,string"`
	LtcBalance   float64 `json:"ltc_balance,string"`
	LtcReserved  float64 `json:"ltc_reserved,string"`
	LtcbtcFee    float64 `json:"ltcbtc_fee,string"`
	LtceurFee    float64 `json:"ltceur_fee,string"`
	LtcusdFee    float64 `json:"ltcusd_fee,string"`
	UsdAvailable float64 `json:"usd_available,string"`
	UsdBalance   float64 `json:"usd_balance,string"`
	UsdReserved  float64 `json:"usd_reserved,string"`
	XrpAvailable float64 `json:"xrp_available,string"`
	XrpBalance   float64 `json:"xrp_balance,string"`
	XrpReserved  float64 `json:"xrp_reserved,string"`
	XrpbtcFee    float64 `json:"xrpbtc_fee,string"`
	XrpeurFee    float64 `json:"xrpeur_fee,string"`
	XrpusdFee    float64 `json:"xrpusd_fee,string"`
}

type BuyLimitOrder

type BuyLimitOrder struct {
	Price    float64  `json:"price,string"`
	Amount   float64  `json:"amount,string"`
	Type     int      `json:"type,string"`
	ID       int64    `json:"id,string"`
	DateTime dateTime `json:"datetime"`
}

type BuyMarketOrder

type BuyMarketOrder struct {
	Price    float64  `json:"price,string"`
	Amount   float64  `json:"amount,string"`
	Type     int      `json:"type,string"`
	ID       int64    `json:"id,string"`
	DateTime dateTime `json:"datetime"`
}

type CancelOrder

type CancelOrder struct {
	Price  float64 `json:"price"`
	Amount float64 `json:"amount"`
	Type   int     `json:"type"`
	ID     int64   `json:"id"`
}

type Error

type Error struct {
	Code   string `json:"code"`
	Reason string `json:"reason"`
	Status string `json:"status"`
}

type OpenOrder

type OpenOrder struct {
	Price        float64  `json:"price,string"`
	CurrencyPair string   `json:"currency_pair"`
	DateTime     dateTime `json:"datetime"`
	Amount       float64  `json:"amount,string"`
	Type         int      `json:"type,string"`
	ID           int64    `json:"id,string"`
}

type Order

type Order struct {
	Price  float64
	Amount float64
}

func (*Order) UnmarshalJSON

func (o *Order) UnmarshalJSON(data []byte) error

type OrderBook

type OrderBook struct {
	Timestamp string  `json:"timestamp"`
	Bids      []Order `json:"bids"`
	Asks      []Order `json:"asks"`
}

type OrderStatus

type OrderStatus struct {
	Status       string        `json:"status"`
	Transactions []Transaction `json:"transactions"`
}

type SellLimitOrder

type SellLimitOrder struct {
	Price    float64  `json:"price,string"`
	Amount   float64  `json:"amount,string"`
	Type     int      `json:"type,string"`
	ID       int64    `json:"id,string"`
	DateTime dateTime `json:"datetime"`
}

type SellMarketOrder

type SellMarketOrder struct {
	Price    float64  `json:"price,string"`
	Amount   float64  `json:"amount,string"`
	Type     int      `json:"type,string"`
	ID       int64    `json:"id,string"`
	DateTime dateTime `json:"datetime"`
}

type Ticker

type Ticker struct {
	Open      float64 `json:"open,string"`
	High      float64 `json:"high,string"`
	Last      float64 `json:"last,string"`
	Timestamp int64   `json:"timestamp,string"`
	Bid       float64 `json:"bid,string"`
	Vwap      float64 `json:"vwap,string"`
	Volume    float64 `json:"volume,string"`
	Low       float64 `json:"low,string"`
	Ask       float64 `json:"ask,string"`
}

type TradingPairInfo

type TradingPairInfo struct {
	Description     string `json:"description"`
	URLSymbol       string `json:"url_symbol"`
	Trading         string `json:"trading"`
	CounterDecimals int    `json:"counter_decimals"`
	Name            string `json:"name"`
	MinimumOrder    string `json:"minimum_order"`
	BaseDecimals    int    `json:"base_decimals"`
}

type Transaction

type Transaction struct {
	Amount float64 `json:"amount,string"`
	Type   int     `json:"type,string"`
	Price  float64 `json:"price,string"`
	Tid    int64   `json:"tid,string"`
	Date   date    `json:"date"`
}

type UserTransaction

type UserTransaction struct {
	Fee      float64  `json:"fee,string"`
	OrderID  int64    `json:"order_id"`
	ID       int64    `json:"id"`
	Usd      float64  `json:"usd"`
	XrpEur   float64  `json:"xrp_eur"`
	Btc      float64  `json:"btc"`
	DateTime dateTime `json:"datetime"`
	Type     int      `json:"type,string"`
	Xrp      float64  `json:"xrp,string"`
	Eur      float64  `json:"eur,string"`
}

type WithdrawalRequest

type WithdrawalRequest struct {
}

Jump to

Keyboard shortcuts

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