private

package
v0.0.0-...-65b99db Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2020 License: MIT Imports: 26 Imported by: 0

Documentation

Overview

Code generated by mockery v1.0.0

Index

Constants

View Source
const ACCOUNT_URI = "account?"
View Source
const (
	BINANCE_BASE_URL = "https://api.binance.com"
)
View Source
const (
	BITFLYER_BASE_URL = "https://api.bitflyer.jp"
)
View Source
const (
	HITBTC_BASE_URL = "https://api.hitbtc.com"
)
View Source
const (
	HUOBI_BASE_URL = "https://api.huobi.pro"
)
View Source
const (
	KUCOIN_BASE_URL = "https://api.kucoin.com"
)
View Source
const (
	LBANK_BASE_URL = "https://api.lbkex.com"
)
View Source
const (
	OKEX_BASE_URL = "https://www.okex.com"
)
View Source
const (
	P2PB2B_BASE_URL = "https://api.p2pb2b.io/api/v1"
)
View Source
const (
	POLONIEX_BASE_URL = "https://poloniex.com"
)
View Source
const SERVER_TIME_URL = "time"

Variables

This section is empty.

Functions

func FloorFloat64ToStr

func FloorFloat64ToStr(num float64, dig int) string

func GetMd5HashSign

func GetMd5HashSign(query string) (string, error)

func GetParamHmacSHA256Base64Sign

func GetParamHmacSHA256Base64Sign(secret, params string) (string, error)

func NewHttpRequest

func NewHttpRequest(client *http.Client, reqType string, reqUrl string, postData string, requstHeaders map[string]string) ([]byte, error)

Types

type BinanceActiveOrderResponse

type BinanceActiveOrderResponse struct {
	Trading    string
	Settlement string
	// contains filtered or unexported fields
}

type BinanceApi

type BinanceApi struct {
	ApiKeyFunc        func() (string, error)
	SecretKeyFunc     func() (string, error)
	BaseURL           string
	RateCacheDuration time.Duration
	HttpClient        http.Client
	// contains filtered or unexported fields
}

func NewBinanceApi

func NewBinanceApi(apikey func() (string, error), apisecret func() (string, error)) (*BinanceApi, error)

func (*BinanceApi) ActiveOrders

func (h *BinanceApi) ActiveOrders() ([]*models.Order, error)

func (*BinanceApi) Address

func (h *BinanceApi) Address(c string) (string, error)

func (*BinanceApi) Balances

func (h *BinanceApi) Balances() (map[string]float64, error)

func (*BinanceApi) CancelOrder

func (h *BinanceApi) CancelOrder(trading string, settlement string,
	ordertype models.OrderType, orderNumber string) error

func (*BinanceApi) CompleteBalance

func (h *BinanceApi) CompleteBalance(coin string) (*models.Balance, error)

func (*BinanceApi) CompleteBalances

func (h *BinanceApi) CompleteBalances() (map[string]*models.Balance, error)

func (*BinanceApi) CurrencyPairs

func (h *BinanceApi) CurrencyPairs() ([]models.CurrencyPair, error)

func (*BinanceApi) IsOrderFilled

func (h *BinanceApi) IsOrderFilled(trading string, settlement string, orderNumber string) (bool, error)

func (*BinanceApi) Order

func (h *BinanceApi) Order(trading string, settlement string, ordertype models.OrderType, price float64, amount float64) (string, error)

func (*BinanceApi) TradeFeeRate

func (b *BinanceApi) TradeFeeRate(trading string, settlement string) (TradeFee, error)

func (*BinanceApi) TradeFeeRates

func (h *BinanceApi) TradeFeeRates() (map[string]map[string]TradeFee, error)

func (*BinanceApi) Transfer

func (h *BinanceApi) Transfer(typ string, addr string, amount float64, additionalFee float64) error

func (*BinanceApi) TransferFee

func (h *BinanceApi) TransferFee() (map[string]float64, error)

type BinanceBalance

type BinanceBalance struct {
	T       string
	Balance float64
}

type BinanceTransferFeeResponse

type BinanceTransferFeeResponse struct {
	Currency string
	// contains filtered or unexported fields
}

type BitflyerApi

type BitflyerApi struct {
	ApikeyFunc        func() (string, error)
	ApiSecretFunc     func() (string, error)
	BaseURL           string
	RateCacheDuration time.Duration
	HttpClient        http.Client
	Mode              ClientMode
	// contains filtered or unexported fields
}

func NewBitflyerPrivateApi

func NewBitflyerPrivateApi(apikey func() (string, error), apisecret func() (string, error)) (*BitflyerApi, error)

func (*BitflyerApi) ActiveOrders

func (b *BitflyerApi) ActiveOrders() ([]*models.Order, error)

func (*BitflyerApi) Address

func (b *BitflyerApi) Address(c string) (string, error)

func (*BitflyerApi) Balances

func (b *BitflyerApi) Balances() (map[string]float64, error)

func (*BitflyerApi) CancelOrder

func (b *BitflyerApi) CancelOrder(trading string, settlement string,
	ordertype models.OrderType, orderNumber string) error

func (*BitflyerApi) CompleteBalance

func (b *BitflyerApi) CompleteBalance(coin string) (*models.Balance, error)

func (*BitflyerApi) CompleteBalances

func (b *BitflyerApi) CompleteBalances() (map[string]*models.Balance, error)

func (*BitflyerApi) IsOrderFilled

func (b *BitflyerApi) IsOrderFilled(trading string, settlement string, orderNumber string) (bool, error)

func (*BitflyerApi) Order

func (b *BitflyerApi) Order(trading string, settlement string, ordertype models.OrderType, price float64, amount float64) (string, error)

func (*BitflyerApi) PurchaseFeeRate

func (b *BitflyerApi) PurchaseFeeRate() (float64, error)

func (*BitflyerApi) TradeFeeRate

func (b *BitflyerApi) TradeFeeRate(trading string, settlement string) (TradeFee, error)

func (*BitflyerApi) TradeFeeRates

func (b *BitflyerApi) TradeFeeRates() (map[string]map[string]TradeFee, error)

func (*BitflyerApi) Transfer

func (b *BitflyerApi) Transfer(typ string, addr string,
	amount float64, additionalFee float64) error

func (*BitflyerApi) TransferFee

func (b *BitflyerApi) TransferFee() (map[string]float64, error)

type BitflyerApiConfig

type BitflyerApiConfig struct {
}

type ClientMode

type ClientMode int
const (
	TEST ClientMode = iota
	PROJECT
)

type Currency

type Currency struct {
	ID             int     `json:"id"`
	Name           string  `json:"name"`
	TxFee          float64 `json:"txFee,string"`
	MinConf        int     `json:"minConf"`
	DepositAddress string  `json:"depositAddress"`
	Disabled       int     `json:"disabled"`
	Delisted       int     `json:"delisted"`
	Frozen         int     `json:"frozen"`
}

type HitbtcApi

type HitbtcApi struct {
	ApiKeyFunc        func() (string, error)
	SecretKeyFunc     func() (string, error)
	BaseURL           string
	RateCacheDuration time.Duration
	HttpClient        http.Client
	// contains filtered or unexported fields
}

func NewHitbtcApi

func NewHitbtcApi(apikey func() (string, error), apisecret func() (string, error)) (*HitbtcApi, error)

func (*HitbtcApi) ActiveOrders

func (h *HitbtcApi) ActiveOrders() ([]*models.Order, error)

func (*HitbtcApi) Address

func (h *HitbtcApi) Address(c string) (string, error)

func (*HitbtcApi) Balances

func (h *HitbtcApi) Balances() (map[string]float64, error)

func (*HitbtcApi) CancelOrder

func (h *HitbtcApi) CancelOrder(trading string, settlement string,
	ordertype models.OrderType, orderNumber string) error

func (*HitbtcApi) CompleteBalance

func (h *HitbtcApi) CompleteBalance(coin string) (*models.Balance, error)

func (*HitbtcApi) CompleteBalances

func (h *HitbtcApi) CompleteBalances() (map[string]*models.Balance, error)

func (*HitbtcApi) IsOrderFilled

func (h *HitbtcApi) IsOrderFilled(trading string, settlement string, orderNumber string) (bool, error)

func (*HitbtcApi) Order

func (h *HitbtcApi) Order(trading string, settlement string, ordertype models.OrderType, price float64, amount float64) (string, error)

func (*HitbtcApi) TradeFeeRate

func (b *HitbtcApi) TradeFeeRate(trading string, settlement string) (TradeFee, error)

func (*HitbtcApi) TradeFeeRates

func (h *HitbtcApi) TradeFeeRates() (map[string]map[string]TradeFee, error)

func (*HitbtcApi) Transfer

func (h *HitbtcApi) Transfer(typ string, addr string, amount float64, additionalFee float64) error

func (*HitbtcApi) TransferFee

func (h *HitbtcApi) TransferFee() (map[string]float64, error)

type HuobiActiveOrderResponse

type HuobiActiveOrderResponse struct {
	Trading    string
	Settlement string
	// contains filtered or unexported fields
}

type HuobiApi

type HuobiApi struct {
	ApiKeyFunc        func() (string, error)
	SecretKeyFunc     func() (string, error)
	BaseURL           string
	RateCacheDuration time.Duration
	HttpClient        http.Client
	// contains filtered or unexported fields
}

func NewHuobiApi

func NewHuobiApi(apikey func() (string, error), apisecret func() (string, error)) (*HuobiApi, error)

func (*HuobiApi) ActiveOrders

func (h *HuobiApi) ActiveOrders() ([]*models.Order, error)

func (*HuobiApi) Address

func (h *HuobiApi) Address(c string) (string, error)

func (*HuobiApi) Balances

func (h *HuobiApi) Balances() (map[string]float64, error)

func (*HuobiApi) CancelOrder

func (h *HuobiApi) CancelOrder(trading string, settlement string,
	ordertype models.OrderType, orderNumber string) error

func (*HuobiApi) CompleteBalance

func (h *HuobiApi) CompleteBalance(coin string) (*models.Balance, error)

func (*HuobiApi) CompleteBalances

func (h *HuobiApi) CompleteBalances() (map[string]*models.Balance, error)

func (*HuobiApi) IsOrderFilled

func (h *HuobiApi) IsOrderFilled(trading string, settlement string, orderNumber string) (bool, error)

func (*HuobiApi) Order

func (h *HuobiApi) Order(trading string, settlement string, ordertype models.OrderType, price float64, amount float64) (string, error)

func (*HuobiApi) TradeFeeRate

func (b *HuobiApi) TradeFeeRate(trading string, settlement string) (TradeFee, error)

func (*HuobiApi) TradeFeeRates

func (h *HuobiApi) TradeFeeRates() (map[string]map[string]TradeFee, error)

func (*HuobiApi) Transfer

func (h *HuobiApi) Transfer(typ string, addr string, amount float64, additionalFee float64) error

func (*HuobiApi) TransferFee

func (h *HuobiApi) TransferFee() (map[string]float64, error)

type HuobiBalance

type HuobiBalance struct {
	T       string
	Balance float64
}

type HuobiTransferFeeResponse

type HuobiTransferFeeResponse struct {
	Currency string
	// contains filtered or unexported fields
}

type KucoinActiveOrderResponse

type KucoinActiveOrderResponse struct {
	Trading    string
	Settlement string
	// contains filtered or unexported fields
}

type KucoinApi

type KucoinApi struct {
	ApiKeyFunc        func() (string, error)
	SecretKeyFunc     func() (string, error)
	BaseURL           string
	RateCacheDuration time.Duration
	HttpClient        http.Client
	// contains filtered or unexported fields
}

func NewKucoinApi

func NewKucoinApi(apikey func() (string, error), apisecret func() (string, error)) (*KucoinApi, error)

func (*KucoinApi) ActiveOrders

func (h *KucoinApi) ActiveOrders() ([]*models.Order, error)

func (*KucoinApi) Address

func (h *KucoinApi) Address(c string) (string, error)

func (*KucoinApi) Balances

func (h *KucoinApi) Balances() (map[string]float64, error)

func (*KucoinApi) CancelOrder

func (h *KucoinApi) CancelOrder(trading string, settlement string,
	ordertype models.OrderType, orderNumber string) error

func (*KucoinApi) CompleteBalance

func (h *KucoinApi) CompleteBalance(coin string) (*models.Balance, error)

func (*KucoinApi) CompleteBalances

func (h *KucoinApi) CompleteBalances() (map[string]*models.Balance, error)

func (*KucoinApi) IsOrderFilled

func (h *KucoinApi) IsOrderFilled(trading string, settlement string, orderNumber string) (bool, error)

func (*KucoinApi) Order

func (h *KucoinApi) Order(trading string, settlement string, ordertype models.OrderType, price float64, amount float64) (string, error)

func (*KucoinApi) TradeFeeRate

func (b *KucoinApi) TradeFeeRate(trading string, settlement string) (TradeFee, error)

func (*KucoinApi) TradeFeeRates

func (h *KucoinApi) TradeFeeRates() (map[string]map[string]TradeFee, error)

func (*KucoinApi) Transfer

func (h *KucoinApi) Transfer(typ string, addr string, amount float64, additionalFee float64) error

func (*KucoinApi) TransferFee

func (h *KucoinApi) TransferFee() (map[string]float64, error)

type KucoinBalance

type KucoinBalance struct {
	T       string
	Balance float64
}

type KucoinTransferFeeResponse

type KucoinTransferFeeResponse struct {
	Currency string
	// contains filtered or unexported fields
}

type LbankActiveOrderResponse

type LbankActiveOrderResponse struct {
	Trading    string
	Settlement string
	// contains filtered or unexported fields
}

type LbankApi

type LbankApi struct {
	ApiKeyFunc        func() (string, error)
	SecretKeyFunc     func() (string, error)
	BaseURL           string
	RateCacheDuration time.Duration
	HttpClient        http.Client
	// contains filtered or unexported fields
}

func NewLbankApi

func NewLbankApi(apikey func() (string, error), apisecret func() (string, error)) (*LbankApi, error)

func (*LbankApi) ActiveOrders

func (h *LbankApi) ActiveOrders() ([]*models.Order, error)

func (*LbankApi) Address

func (h *LbankApi) Address(c string) (string, error)

func (*LbankApi) Balances

func (h *LbankApi) Balances() (map[string]float64, error)

func (*LbankApi) CancelOrder

func (h *LbankApi) CancelOrder(trading string, settlement string,
	ordertype models.OrderType, orderNumber string) error

func (*LbankApi) CompleteBalance

func (h *LbankApi) CompleteBalance(coin string) (*models.Balance, error)

func (*LbankApi) CompleteBalances

func (h *LbankApi) CompleteBalances() (map[string]*models.Balance, error)

func (*LbankApi) IsOrderFilled

func (h *LbankApi) IsOrderFilled(trading string, settlement string, orderNumber string) (bool, error)

func (*LbankApi) Order

func (h *LbankApi) Order(trading string, settlement string, ordertype models.OrderType, price float64, amount float64) (string, error)

func (*LbankApi) TradeFeeRate

func (b *LbankApi) TradeFeeRate(trading string, settlement string) (TradeFee, error)

func (*LbankApi) TradeFeeRates

func (h *LbankApi) TradeFeeRates() (map[string]map[string]TradeFee, error)

func (*LbankApi) Transfer

func (h *LbankApi) Transfer(typ string, addr string, amount float64, additionalFee float64) error

func (*LbankApi) TransferFee

func (h *LbankApi) TransferFee() (map[string]float64, error)

type LbankBalance

type LbankBalance struct {
	T       string
	Balance float64
}

type LbankTransferFeeResponse

type LbankTransferFeeResponse struct {
	Currency string
	// contains filtered or unexported fields
}

type MockPrivateClient

type MockPrivateClient struct {
	mock.Mock
}

MockPrivateClient is an autogenerated mock type for the PrivateClient type

func (*MockPrivateClient) ActiveOrders

func (_m *MockPrivateClient) ActiveOrders() ([]*models.Order, error)

ActiveOrders provides a mock function with given fields:

func (*MockPrivateClient) Address

func (_m *MockPrivateClient) Address(c string) (string, error)

Address provides a mock function with given fields: c

func (*MockPrivateClient) Balances

func (_m *MockPrivateClient) Balances() (map[string]float64, error)

Balances provides a mock function with given fields:

func (*MockPrivateClient) CancelOrder

func (_m *MockPrivateClient) CancelOrder(trading string, settlement string, ordertype models.OrderType, orderNumber string) error

CancelOrder provides a mock function with given fields: trading, settlement, ordertype, orderNumber

func (*MockPrivateClient) CompleteBalance

func (_m *MockPrivateClient) CompleteBalance(coin string) (*models.Balance, error)

CompleteBalance provides a mock function with given fields: coin

func (*MockPrivateClient) CompleteBalances

func (_m *MockPrivateClient) CompleteBalances() (map[string]*models.Balance, error)

CompleteBalances provides a mock function with given fields:

func (*MockPrivateClient) IsOrderFilled

func (_m *MockPrivateClient) IsOrderFilled(trading string, settlement string, orderNumber string) (bool, error)

IsOrderFilled provides a mock function with given fields: trading, settlement, orderNumber

func (*MockPrivateClient) Order

func (_m *MockPrivateClient) Order(trading string, settlement string, ordertype models.OrderType, price float64, amount float64) (string, error)

Order provides a mock function with given fields: trading, settlement, ordertype, price, amount

func (*MockPrivateClient) TradeFeeRate

func (_m *MockPrivateClient) TradeFeeRate(_a0 string, _a1 string) (TradeFee, error)

TradeFeeRate provides a mock function with given fields: _a0, _a1

func (*MockPrivateClient) TradeFeeRates

func (_m *MockPrivateClient) TradeFeeRates() (map[string]map[string]TradeFee, error)

TradeFeeRates provides a mock function with given fields:

func (*MockPrivateClient) Transfer

func (_m *MockPrivateClient) Transfer(typ string, addr string, amount float64, additionalFee float64) error

Transfer provides a mock function with given fields: typ, addr, amount, additionalFee

func (*MockPrivateClient) TransferFee

func (_m *MockPrivateClient) TransferFee() (map[string]float64, error)

TransferFee provides a mock function with given fields:

type OkexActiveOrderResponse

type OkexActiveOrderResponse struct {
	Trading    string
	Settlement string
	// contains filtered or unexported fields
}

type OkexApi

type OkexApi struct {
	ApiKeyFunc        func() (string, error)
	SecretKeyFunc     func() (string, error)
	BaseURL           string
	RateCacheDuration time.Duration
	HttpClient        http.Client
	// contains filtered or unexported fields
}

func NewOkexApi

func NewOkexApi(apikey func() (string, error), apisecret func() (string, error)) (*OkexApi, error)

func (*OkexApi) ActiveOrders

func (o *OkexApi) ActiveOrders() ([]*models.Order, error)

func (*OkexApi) Address

func (o *OkexApi) Address(c string) (string, error)

func (*OkexApi) Balances

func (o *OkexApi) Balances() (map[string]float64, error)

func (*OkexApi) CancelOrder

func (o *OkexApi) CancelOrder(trading string, settlement string,
	ordertype models.OrderType, orderNumber string) error

func (*OkexApi) CompleteBalance

func (o *OkexApi) CompleteBalance(coin string) (*models.Balance, error)

func (*OkexApi) CompleteBalances

func (o *OkexApi) CompleteBalances() (map[string]*models.Balance, error)

func (*OkexApi) IsOrderFilled

func (o *OkexApi) IsOrderFilled(trading string, settlement string, orderNumber string) (bool, error)

func (*OkexApi) Order

func (o *OkexApi) Order(trading string, settlement string, ordertype models.OrderType, price float64, amount float64) (string, error)

func (*OkexApi) TradeFeeRate

func (o *OkexApi) TradeFeeRate(trading string, settlement string) (TradeFee, error)

func (*OkexApi) TradeFeeRates

func (o *OkexApi) TradeFeeRates() (map[string]map[string]TradeFee, error)

func (*OkexApi) Transfer

func (o *OkexApi) Transfer(typ string, addr string, amount float64, additionalFee float64) error

func (*OkexApi) TransferFee

func (o *OkexApi) TransferFee() (map[string]float64, error)

type OkexBalance

type OkexBalance struct {
	T       string
	Balance float64
}

type OkexTransferFeeResponse

type OkexTransferFeeResponse struct {
	Currency string
	// contains filtered or unexported fields
}

type P2pb2bActiveOrderResponse

type P2pb2bActiveOrderResponse struct {
	Trading    string
	Settlement string
	// contains filtered or unexported fields
}

type P2pb2bApi

type P2pb2bApi struct {
	ApiKeyFunc        func() (string, error)
	SecretKeyFunc     func() (string, error)
	BaseURL           string
	RateCacheDuration time.Duration
	HttpClient        http.Client
	// contains filtered or unexported fields
}

func NewP2pb2bApi

func NewP2pb2bApi(apikey func() (string, error), apisecret func() (string, error)) (*P2pb2bApi, error)

func (*P2pb2bApi) ActiveOrders

func (h *P2pb2bApi) ActiveOrders() ([]*models.Order, error)

func (*P2pb2bApi) Address

func (h *P2pb2bApi) Address(c string) (string, error)

func (*P2pb2bApi) Balances

func (h *P2pb2bApi) Balances() (map[string]float64, error)

func (*P2pb2bApi) CancelOrder

func (h *P2pb2bApi) CancelOrder(trading string, settlement string,
	ordertype models.OrderType, orderNumber string) error

func (*P2pb2bApi) CompleteBalance

func (h *P2pb2bApi) CompleteBalance(coin string) (*models.Balance, error)

func (*P2pb2bApi) CompleteBalances

func (h *P2pb2bApi) CompleteBalances() (map[string]*models.Balance, error)

func (*P2pb2bApi) IsOrderFilled

func (h *P2pb2bApi) IsOrderFilled(trading string, settlement string, orderNumber string) (bool, error)

func (*P2pb2bApi) Order

func (h *P2pb2bApi) Order(trading string, settlement string, ordertype models.OrderType, price float64, amount float64) (string, error)

func (*P2pb2bApi) TradeFeeRate

func (b *P2pb2bApi) TradeFeeRate(trading string, settlement string) (TradeFee, error)

func (*P2pb2bApi) TradeFeeRates

func (h *P2pb2bApi) TradeFeeRates() (map[string]map[string]TradeFee, error)

func (*P2pb2bApi) Transfer

func (h *P2pb2bApi) Transfer(typ string, addr string, amount float64, additionalFee float64) error

func (*P2pb2bApi) TransferFee

func (h *P2pb2bApi) TransferFee() (map[string]float64, error)

type P2pb2bBalance

type P2pb2bBalance struct {
	T       string
	Balance float64
}

type P2pb2bTransferFeeResponse

type P2pb2bTransferFeeResponse struct {
	Currency string
	// contains filtered or unexported fields
}

type PoloniexApi

type PoloniexApi struct {
	ApiKeyFunc        func() (string, error)
	SecretKeyFunc     func() (string, error)
	BaseURL           string
	RateCacheDuration time.Duration
	HttpClient        http.Client
	// contains filtered or unexported fields
}

func NewPoloniexApi

func NewPoloniexApi(apikey func() (string, error), apisecret func() (string, error)) (*PoloniexApi, error)

func (*PoloniexApi) ActiveOrders

func (p *PoloniexApi) ActiveOrders() ([]*models.Order, error)

func (*PoloniexApi) Address

func (p *PoloniexApi) Address(c string) (string, error)

func (*PoloniexApi) Balances

func (p *PoloniexApi) Balances() (map[string]float64, error)

func (*PoloniexApi) CancelOrder

func (p *PoloniexApi) CancelOrder(trading string, settlement string,
	ordertype models.OrderType, orderNumber string) error

func (*PoloniexApi) CompleteBalance

func (p *PoloniexApi) CompleteBalance(coin string) (*models.Balance, error)

func (*PoloniexApi) CompleteBalances

func (p *PoloniexApi) CompleteBalances() (map[string]*models.Balance, error)

func (*PoloniexApi) IsOrderFilled

func (p *PoloniexApi) IsOrderFilled(trading string, settlement string, orderNumber string) (bool, error)

func (*PoloniexApi) Order

func (p *PoloniexApi) Order(trading string, settlement string, ordertype models.OrderType, price float64, amount float64) (string, error)

func (*PoloniexApi) TradeFeeRate

func (b *PoloniexApi) TradeFeeRate(trading string, settlement string) (TradeFee, error)

func (*PoloniexApi) TradeFeeRates

func (p *PoloniexApi) TradeFeeRates() (map[string]map[string]TradeFee, error)

func (*PoloniexApi) Transfer

func (p *PoloniexApi) Transfer(typ string, addr string, amount float64, additionalFee float64) error

func (*PoloniexApi) TransferFee

func (p *PoloniexApi) TransferFee() (map[string]float64, error)

type PrivateClient

type PrivateClient interface {
	TransferFee() (map[string]float64, error)
	TradeFeeRates() (map[string]map[string]TradeFee, error)
	TradeFeeRate(string, string) (TradeFee, error)
	Balances() (map[string]float64, error)
	CompleteBalances() (map[string]*models.Balance, error)
	CompleteBalance(coin string) (*models.Balance, error)
	ActiveOrders() ([]*models.Order, error)
	IsOrderFilled(trading string, settlement string, orderNumber string) (bool, error)
	Order(trading string, settlement string,
		ordertype models.OrderType, price float64, amount float64) (string, error)
	CancelOrder(trading string, settlement string,
		ordertype models.OrderType, orderNumber string) error
	//FilledOrderInfo(orderNumber string) (models.FilledOrderInfo,error)
	Transfer(typ string, addr string,
		amount float64, additionalFee float64) error
	Address(c string) (string, error)
}

func NewClient

func NewClient(mode ClientMode, exchangeName string, apikey func() (string, error), seckey func() (string, error)) (PrivateClient, error)

type TradeFee

type TradeFee struct {
	MakerFee float64
	TakerFee float64
}

Jump to

Keyboard shortcuts

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