bitkub

package module
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: May 11, 2023 License: MIT Imports: 16 Imported by: 0

README

go-bitkub-sdk

A Golang sdk for bitkub api

Installation

go get github.com/Maszz/go-bitkub-sdk

updating a package

go get -u github.com/Maszz/go-bitkub-sdk
Importing
import (
    "github.com/Maszz/go-bitkub-sdk"
)

API List

Name Status
GET /api/status Implemented(Tested)
GET /api/servertime Implemented(Tested)
GET /api/market/symbols Implemented(Tested)
GET /api/market/ticker Implemented(Tested)
GET /api/market/trades Implemented(Tested)
GET /api/market/bids Implemented(Tested)
GET /api/market/asks Implemented(Tested)
GET /api/market/books Implemented(Tested)
GET /api/market/depth Implemented(Tested)
GET /tradingview/history Implemented(Tested)
POST /api/market/wallet Implemented(Tested)
POST /api/market/balances Implemented(Tested)
POST /api/market/place-bid Not implemented(Depecated)
POST /api/market/place-ask Not implemented(Depecated)
POST /api/market/place-ask-by-fiat Not implemented(Depecated)
POST /api/market/cancel-order Not implemented(Depecated)
POST /api/market/my-open-orders Implemented(Tested)
POST /api/market/my-orders-history Implemented(Tested)
POST /api/market/order-info Implemented(Tested)
POST /api/crypto/addresses Implemented(Tested)
POST /api/crypto/withdraw Implemented(Tested)
POST /api/crypto/deposit-history Implemented(Tested)
POST /api/crypto/withdraw-history Implemented(Tested)
POST /api/crypto/generate-address Can't be implemented(Lack of document).
POST /api/fiat/accounts Implemented(Tested)
POST /api/fiat/withdraw Implemented(Tested)
POST /api/fiat/deposit-history Implemented(Tested)
POST /api/fiat/withdraw-history Implemented(Tested)
POST /api/market/wstoken Implemented(Tested)
POST /api/user/limits Implemented(Tested)
POST /api/user/trading-credits Implemented (Tested)
POST /api/market/v2/place-bid Implemented (Tested)
POST /api/market/v2/place-ask Implemented (Tested)
POST /api/market/v2/cancel-order Implemented (Tested)

Get started

Setup

Init client for API services.

client := bitkub.NewClient("api_key", "api_secret")

Simply call API in chain style. Call Do() in the end to send HTTP request. All responses return in go struct.

For more information about This library read the documentation

Create Sell Order

res, err := client.NewPlaceAskTx().Symbol(symbols.THB_BTC).Amount(0.001).OrderType(types.OrderTypeMarket).Do()
if err != nil {
		fmt.Println(err)
		return
	}
jsonEnc, _ := json.Marshal(res)
fmt.Println(string(jsonEnc))

Dependencies

Instead of using net/http, this library uses fasthttp as its HTTP client and utilizes sonic for JSON serialization and deserialization. However, if you prefer not to use these libraries or if your application is affected by any edge cases, future versions of this library may include an adapter to support external libraries for serializing, deserializing, and making HTTP requests.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRequest

func NewRequest() *request

Types

type CancelOrderTx

type CancelOrderTx struct {
	// contains filtered or unexported fields
}

func (*CancelOrderTx) Do

func (*CancelOrderTx) OrderHash

func (s *CancelOrderTx) OrderHash(orderHash types.OrderHash) *CancelOrderTx

func (*CancelOrderTx) OrderID

func (s *CancelOrderTx) OrderID(orderID types.OrderID) *CancelOrderTx

func (*CancelOrderTx) OrderSide

func (s *CancelOrderTx) OrderSide(orderSide types.OrderSide) *CancelOrderTx

func (*CancelOrderTx) Symbol

func (s *CancelOrderTx) Symbol(symbol types.Symbol) *CancelOrderTx

type Client

type Client struct {
	APIKey     string
	SecretKey  string
	BaseURL    string
	UserAgent  string
	HTTPClient *httpclient.HTTPClient
	Debug      bool
	Logger     *log.Logger
	TimeOffset int64
}

func NewClient

func NewClient(apiKey, secretKey string) *Client

func (*Client) NewCancelOrderTx

func (c *Client) NewCancelOrderTx() *CancelOrderTx

Function to Cancel Orders

Parameters Description:

  • Symbol(types.Symbol) : Page of result
  • OrderID(types.OrderID) : Order ID
  • OrderSide(types.OrderSide) : Order side
  • OrderHash(Optional[types.OrderHash]) : Order hash

Parameters Should be set before call Do() function:

func (*CancelOrderTx) Symbol(symbol types.Symbol)
func (*CancelOrderTx) OrderID(orderID types.OrderID)
func (*CancelOrderTx) OrderSide(orderSide types.OrderSide)
func (*CancelOrderTx) OrderHash(orderHash types.OrderHash)

When OrderHash is set, Symbol, OrderID and OrderSide will be ignored.

Example of usage:

client := bitkub.NewClient()
res, err := client.NewCancelOrderTx().OrderHash("OrderHash").Do()

func (*Client) NewCryptoWithdrawTx

func (c *Client) NewCryptoWithdrawTx() *CryptoWithdrawTx

Function to Withdraw Crypto to specific address

Parameters Description:

  • Address(string) : Address of receiver
  • Amount(float64) : Amount of crypto to withdraw
  • Currency(string) : Currency of crypto to withdraw
  • Memo(Optional[string]) : Memo of crypto to withdraw
  • Network(types.BlockChainNetwork) : Network of crypto to withdraw

Parameters Should be set before call Do() function:

func (*CryptoWithdrawTx) Address(address string)
func (*CryptoWithdrawTx) Amount(amount float64)
func (*CryptoWithdrawTx) Currency(cur string)
func (*CryptoWithdrawTx) Memo(memo string)
func (*CryptoWithdrawTx) Network(network types.BlockChainNetwork)

Example of usage:

client := bitkub.NewClient()
res, err := client.NewCryptoWithdrawTx().Network(chains.BTC)
.Address("address").Amount(0.01).Currency("BTC").Do()

func (*Client) NewFiatWithdrawTx

func (c *Client) NewFiatWithdrawTx() *FiatWithdrawTx

Function to Get Fiat Withdraw Transaction

Parameters Description:

  • ID(string) : Fiat Account ID
  • Amount(float64) : Amount of fiat to withdraw

Parameters Should be set before call Do() function:

func (*FiatWithdrawTx) Amount(amount float64)
func (*FiatWithdrawTx) ID(id string) *FiatWithdrawTx

Example of usage:

client := bitkub.NewClient()
res, err := client.NewFiatWithdrawTx().Amount(1000).ID("Fiat Account ID").Do()

func (*Client) NewGetAsksTx

func (c *Client) NewGetAsksTx() *GetAsksTx

Function to List open sell orders

Parameters Description:

  • Symbol(types.Symbol) : Symbol of coin
  • Limit(Optional[int]) : Limit of result

Parameters Should be set before call Do() function:

func (*GetAsksTx) Symbol(symbol types.Symbol)
func (*GetAsksTx) Limit(limit int)

Example of usage:

client := bitkub.NewClient()
res, err := client.NewGetAsksTx().Symbol(symbols.THB_BTC).Do()

func (*Client) NewGetBalancesTx

func (c *Client) NewGetBalancesTx() *GetBalancesTx

Function to Get Balances

Excute Function:

func (*GetBalancesTx) Do() (*types.BalancesResponse, error)
func (*GetBalancesTx) DoAny() (*types.BalancesResponseAny, error)

DoAny() function will return map[string]BalancesProps instead of Hardcode Currency Keys in result keys of `BalancesResponse` struct.

Example of usage:

client := bitkub.NewClient()
res, err := client.NewGetBalancesTx().Do()

func (*Client) NewGetBidsTx

func (c *Client) NewGetBidsTx() *GetBidsTx

Function to List open buy orders

Parameters Description:

  • Symbol(types.Symbol) : Symbol of coin
  • Limit(Optional[int]) : Limit of result

Parameters Should be set before call Do() function:

func (*GetBidsTx) Symbol(symbol types.Symbol)
func (*GetBidsTx) Limit(limit int)

Example of usage:

client := bitkub.NewClient()
res, err := client.NewGetBidsTx().Symbol(symbols.THB_BTC).Do()

func (*Client) NewGetBooksTx

func (c *Client) NewGetBooksTx() *GetOpenBooksTx

Function to List all open orders

Parameters Description:

  • Symbol(types.Symbol) : Symbol of coin
  • Limit(Optional[int]) : Limit of result

Parameters Should be set before call Do() function:

func (*GetBooksTx) Symbol(symbol types.Symbol)
func (*GetBooksTx) Limit(limit int)

Example of usage:

client := bitkub.NewClient()
res, err := client.NewGetBooksTx().Symbol(symbols.THB_BTC).Do()

func (*Client) NewGetCryptoAddressesTx

func (c *Client) NewGetCryptoAddressesTx() *GetCryptoAddressesTx

Function to Get Crypto Wallet Address

Parameters Description:

  • Page(Optional[int]) : Page of result
  • Limit(Optional[int]) : Limit of result

Parameters Should be set before call Do() function:

func (*GetCryptoAddressesTx) Page(page int)
func (*GetCryptoAddressesTx) Limit(limit int)

Example of usage:

client := bitkub.NewClient()
res, err := client.NewGetCryptoAddressesTx().Page(1).Limit(5).Do()

func (*Client) NewGetCryptoDepositTx

func (c *Client) NewGetCryptoDepositTx() *GetCryptoDepositTx

Function to Get History Crypto Deposit Transaction

Parameters Description:

  • Page(Optional[int]) : Page of result
  • Limit(Optional[int]) : Limit of result

Parameters Should be set before call Do() function:

func (*GetCryptoDepositTx) Page(page int)
func (*GetCryptoDepositTx) Limit(limit int)

Example of usage:

client := bitkub.NewClient()
res, err := client.NewGetCryptoDepositTx().Page(1).Limit(5).Do()

func (*Client) NewGetCryptoWithdrawTx

func (c *Client) NewGetCryptoWithdrawTx() *GetCryptoWithdrawTx

Function to Get History Crypto Withdraw Transaction

Parameters Description:

  • Page(Optional[int]) : Page of result
  • Limit(Optional[int]) : Limit of result

Parameters Should be set before call Do() function:

func (*GetCryptoWithdrawTx) Page(page int)
func (*GetCryptoWithdrawTx) Limit(limit int)

Example of usage:

client := bitkub.NewClient()
res, err := client.NewGetCryptoWithdrawTx().Page(1).Limit(5).Do()

func (*Client) NewGetFiatAccountsTx

func (c *Client) NewGetFiatAccountsTx() *GetFiatAccountsTx

Function to Get Fiat Accounts Transaction

Parameters Description:

  • Page(Optional[int]) : Page of result
  • Limit(Optional[int]) : Limit of result

Parameters Should be set before call Do() function:

func (*GetFiatAccountsTx) Page(page int)
func (*GetFiatAccountsTx) Limit(limit int)

Example of usage:

client := bitkub.NewClient()
res, err := client.NewGetFiatAccountsTx().Page(1).Limit(5).Do()

func (*Client) NewGetFiatDepositsTx

func (c *Client) NewGetFiatDepositsTx() *GetFiatDepositsTx

Function to Get Fiat Deposit History Transaction

Parameters Description:

  • Page(Optional[int]) : Page of result
  • Limit(Optional[int]) : Limit of result

Parameters Should be set before call Do() function:

func (*GetFiatDepositsTx) Page(page int)
func (*GetFiatDepositsTx) Limit(limit int)

Example of usage:

client := bitkub.NewClient()
res, err := client.NewGetFiatDepositsTx().Page(1).Limit(5).Do()

func (*Client) NewGetFiatWithdralsTx

func (c *Client) NewGetFiatWithdralsTx() *GetFiatWithdrawsTx

Function to Get Fiat Withdraw History Transaction

Parameters Description:

  • Page(Optional[int]) : Page of result
  • Limit(Optional[int]) : Limit of result

Parameters Should be set before call Do() function:

func (*GetFiatWithdrawsTx) Page(page int)
func (*GetFiatWithdrawsTx) Limit(limit int)

Example of usage:

client := bitkub.NewClient()
res, err := client.NewGetFiatWithdralsTx().Page(1).Limit(5).Do()

func (*Client) NewGetMarketDepthTx

func (c *Client) NewGetMarketDepthTx() *GetMarketDepthTx

Function to Get Market Depth

Parameters Description:

  • Symbol(types.Symbol) : Symbol of coin
  • Limit(Optional[int]) : Limit of result

Parameters Should be set before call Do() function:

func (*GetMarketDepthTx) Symbol(symbol types.Symbol)
func (*GetMarketDepthTx) Limit(limit int)

Example of usage:

client := bitkub.NewClient()
res, err := client.NewGetMarketDepthTx().Symbol(symbols.THB_BTC).Do()

func (*Client) NewGetOpenOrdersTx

func (c *Client) NewGetOpenOrdersTx() *GetOpenOrdersTx

Function to Get Open Orders

Parameters Description:

  • Symbol(types.Symbol) : Symbol of order

Parameters Should be set before call Do() function:

func (*GetOpenOrdersTx) Symbol(symbol types.Symbol)

Example of usage:

client := bitkub.NewClient()
res, err := client.NewGetOpenOrdersTx().Symbol(symbols.THB_BTC).Do()

func (*Client) NewGetOrderHistoryTx

func (c *Client) NewGetOrderHistoryTx() *GetOrderHistoryTx

Function to Get Order History

Parameters Description:

  • Symbol(types.Symbol) : Symbol of order
  • Page(Optional[int]) : Page of result
  • Limit(Optional[int]) : Limit of result
  • Start(Optional[types.Timestamp]) : Start Time
  • End(Optional[types.Timestamp]) : End time

Parameters Should be set before call Do() function:

func (*GetOrderHistoryTx) Symbol(symbol types.Symbol)
func (*GetOrderHistoryTx) Page(page int)
func (*GetOrderHistoryTx) Limit(limit int)
func (*GetOrderHistoryTx) Start(start types.Timestamp)
func (*GetOrderHistoryTx) End(end types.Timestamp)

Example of usage:

client := bitkub.NewClient()
res, err := client.NewGetOrderHistoryTx().Symbol(symbols.THB_BTC).Do()

func (*Client) NewGetOrderInfoTx

func (c *Client) NewGetOrderInfoTx() *GetOrderInfoTx

Function to Get Order Information

Parameters Description:

  • Symbol(types.Symbol) : Page of result
  • OrderID(types.OrderID) : Order ID
  • OrderSide(types.OrderSide) : Order side
  • OrderHash(Optional[types.OrderHash]) : Order hash

Parameters Should be set before call Do() function:

func (*GetOrderInfoTx) Symbol(symbol types.Symbol)
func (*GetOrderInfoTx) OrderID(orderID types.OrderID)
func (*GetOrderInfoTx) OrderSide(orderSide types.OrderSide)
func (*GetOrderInfoTx) OrderHash(orderHash types.OrderHash)

When OrderHash is set, Symbol, OrderID and OrderSide will be ignored.

Example of usage:

client := bitkub.NewClient()
res, err := client.NewGetOrderInfoTx().OrderHash("OrderHash").Do()

func (*Client) NewGetServerTimeTx

func (c *Client) NewGetServerTimeTx() *GetServerTimeTx

Function Get Server time

Example of usage:

client := bitkub.NewClient()
res, err := client.NewGetServerTimeTx().Do()

func (*Client) NewGetStatusTx

func (c *Client) NewGetStatusTx() *GetStatusTx

Function Get API Endpoint Status

Example of usage:

client := bitkub.NewClient()
res, err := client.NewGetStatusTx().Do()

func (*Client) NewGetSymbolsTx

func (c *Client) NewGetSymbolsTx() *GetSymbolsTx

Function Get avarable Symbols

Example of usage:

client := bitkub.NewClient()
res, err := client.NewGetSymbolsTx().Do()

func (*Client) NewGetTickerTx

func (c *Client) NewGetTickerTx() *GetTickerTx

Function Get ticker information

Example of usage:

client := bitkub.NewClient()
res, err := client.NewGetTickerTx().Do()

func (*Client) NewGetTradesTx

func (c *Client) NewGetTradesTx() *GetTradesTx

Function toList recent trades

Parameters Description:

  • Symbol(types.Symbol) : Symbol of coin
  • Limit(Optional[int]) : Limit of result

Parameters Should be set before call Do() function:

func (*GetTradesTx) Symbol(symbol types.Symbol)
func (*GetTradesTx) Limit(limit int)

Example of usage:

client := bitkub.NewClient()
res, err := client.NewGGetTradesTx().Symbol(symbols.THB_BTC).Do()

func (*Client) NewGetTradingCreditsTx

func (c *Client) NewGetTradingCreditsTx() *GetTradingCreditsTx

Function to Get Trading credits Transaction

Example of usage:

client := bitkub.NewClient()
res, err := client.NewGetTradingCreditsTx().Do()

func (*Client) NewGetTradingviewHistoryTx

func (c *Client) NewGetTradingviewHistoryTx() *GetTradingViewHistoryTx

func (*Client) NewGetUserLimitsTx

func (c *Client) NewGetUserLimitsTx() *GetUserLimitsTx

Function to Get User limit Transaction

Example of usage:

client := bitkub.NewClient()
res, err := client.NewGetUserLimitsTx().Do()

func (*Client) NewGetWalletsTx

func (c *Client) NewGetWalletsTx() *GetWalletsTx

Function to Get Wallets

Excute Function:

func (*GetWalletsTx) Do() (*types.WalletResponse, error)
func (*GetWalletsTx) DoAny() (*types.WalletResponseAny, error)

DoAny() function will return map[string]float64 instead of Hardcode Currency Keys.

Example of usage:

client := bitkub.NewClient()
res, err := client.NewGetWalletsTx().Do()

func (*Client) NewGetWsTokenTx

func (c *Client) NewGetWsTokenTx() *GetWsTokenTx

Function to Get Websocket Token Transaction

Example of usage:

client := bitkub.NewClient()
res, err := client.NewGetWsTokenTx().Do()

func (*Client) NewPlaceAskTx

func (c *Client) NewPlaceAskTx() *PlaceAskTx

Function to Create Sell Order

Parameters Description:

  • Symbol(types.Symbol) : symbol of pair
  • Amount(float64) : Amount of order
  • Rate(float64) : Rate of order
  • OrderType(types.OrderType) : Order type

Parameters Should be set before call Do() function:

func (*PlaceAskTx) Symbol(symbol types.Symbol)
func (*PlaceAskTx) Amount(amount float64)
func (*PlaceAskTx) Rate(rate float64)
func (*PlaceAskTx) OrderType(orderType types.OrderType)

Example of usage:

client := bitkub.NewClient()
res, err := client.NewPlaceAskTx().Symbol(symbols.THB_BTC)
.Amount(0.001).OrderType(types.OrderTypeMarket).Do()

func (*Client) NewPlaceBidTx

func (c *Client) NewPlaceBidTx() *PlaceBidTx

Function to Create Buy Order

Parameters Description:

  • Symbol(types.Symbol) : symbol of pair
  • Amount(float64) : Amount of order
  • Rate(float64) : Rate of order
  • OrderType(types.OrderType) : Order type

Parameters Should be set before call Do() function:

func (*PlaceBidTx) Symbol(symbol types.Symbol)
func (*PlaceBidTx) Amount(amount float64)
func (*PlaceBidTx) Rate(rate float64)
func (*PlaceBidTx) OrderType(orderType types.OrderType)

Example of usage:

client := bitkub.NewClient()
res, err := client.NewPlaceBidTx().Symbol(symbols.THB_BTC)
.Amount(1000).OrderType(types.OrderTypeMarket).Do()

type CryptoWithdrawTx

type CryptoWithdrawTx struct {
	// contains filtered or unexported fields
}

func (*CryptoWithdrawTx) Address

func (s *CryptoWithdrawTx) Address(address string) *CryptoWithdrawTx

func (*CryptoWithdrawTx) Amount

func (s *CryptoWithdrawTx) Amount(amount float64) *CryptoWithdrawTx

func (*CryptoWithdrawTx) Currency

func (s *CryptoWithdrawTx) Currency(cur string) *CryptoWithdrawTx

func (*CryptoWithdrawTx) Do

func (*CryptoWithdrawTx) Memo

func (s *CryptoWithdrawTx) Memo(memo string) *CryptoWithdrawTx

func (*CryptoWithdrawTx) Network

type FiatWithdrawTx

type FiatWithdrawTx struct {
	// contains filtered or unexported fields
}

func (*FiatWithdrawTx) Amount

func (s *FiatWithdrawTx) Amount(amount float64) *FiatWithdrawTx

func (*FiatWithdrawTx) Do

func (*FiatWithdrawTx) ID

type GetAsksTx

type GetAsksTx struct {
	// contains filtered or unexported fields
}

func (*GetAsksTx) Do

func (s *GetAsksTx) Do() (*types.BidsAsksResponse, error)

func (*GetAsksTx) Limit

func (s *GetAsksTx) Limit(limit int) *GetAsksTx

func (*GetAsksTx) Symbol

func (s *GetAsksTx) Symbol(symbol types.Symbol) *GetAsksTx

type GetBalancesTx

type GetBalancesTx struct {
	// contains filtered or unexported fields
}

func (*GetBalancesTx) Do

func (*GetBalancesTx) DoAny

type GetBidsTx

type GetBidsTx struct {
	// contains filtered or unexported fields
}

func (*GetBidsTx) Do

func (s *GetBidsTx) Do() (*types.BidsAsksResponse, error)

func (*GetBidsTx) Limit

func (s *GetBidsTx) Limit(limit int) *GetBidsTx

func (*GetBidsTx) Symbol

func (s *GetBidsTx) Symbol(symbol types.Symbol) *GetBidsTx

type GetCryptoAddressesTx

type GetCryptoAddressesTx struct {
	// contains filtered or unexported fields
}

func (*GetCryptoAddressesTx) Do

func (*GetCryptoAddressesTx) Limit

func (*GetCryptoAddressesTx) Page

type GetCryptoDepositTx

type GetCryptoDepositTx struct {
	// contains filtered or unexported fields
}

func (*GetCryptoDepositTx) Do

func (*GetCryptoDepositTx) Limit

func (s *GetCryptoDepositTx) Limit(limit int) *GetCryptoDepositTx

func (*GetCryptoDepositTx) Page

func (s *GetCryptoDepositTx) Page(page int) *GetCryptoDepositTx

type GetCryptoWithdrawTx

type GetCryptoWithdrawTx struct {
	// contains filtered or unexported fields
}

func (*GetCryptoWithdrawTx) Do

func (*GetCryptoWithdrawTx) Limit

func (s *GetCryptoWithdrawTx) Limit(limit int) *GetCryptoWithdrawTx

func (*GetCryptoWithdrawTx) Page

type GetFiatAccountsTx

type GetFiatAccountsTx struct {
	// contains filtered or unexported fields
}

func (*GetFiatAccountsTx) Do

func (*GetFiatAccountsTx) Limit

func (s *GetFiatAccountsTx) Limit(limit int) *GetFiatAccountsTx

func (*GetFiatAccountsTx) Page

func (s *GetFiatAccountsTx) Page(page int) *GetFiatAccountsTx

type GetFiatDepositsTx

type GetFiatDepositsTx struct {
	// contains filtered or unexported fields
}

func (*GetFiatDepositsTx) Do

func (*GetFiatDepositsTx) Limit

func (s *GetFiatDepositsTx) Limit(limit int) *GetFiatDepositsTx

func (*GetFiatDepositsTx) Page

func (s *GetFiatDepositsTx) Page(page int) *GetFiatDepositsTx

type GetFiatWithdrawsTx

type GetFiatWithdrawsTx struct {
	// contains filtered or unexported fields
}

func (*GetFiatWithdrawsTx) Do

func (*GetFiatWithdrawsTx) Limit

func (s *GetFiatWithdrawsTx) Limit(limit int) *GetFiatWithdrawsTx

func (*GetFiatWithdrawsTx) Page

func (s *GetFiatWithdrawsTx) Page(page int) *GetFiatWithdrawsTx

type GetMarketDepthTx

type GetMarketDepthTx struct {
	// contains filtered or unexported fields
}

func (*GetMarketDepthTx) Do

func (*GetMarketDepthTx) Limit

func (s *GetMarketDepthTx) Limit(limit int) *GetMarketDepthTx

func (*GetMarketDepthTx) Symbol

func (s *GetMarketDepthTx) Symbol(symbol types.Symbol) *GetMarketDepthTx

type GetOpenBooksTx

type GetOpenBooksTx struct {
	// contains filtered or unexported fields
}

func (*GetOpenBooksTx) Do

func (*GetOpenBooksTx) Limit

func (s *GetOpenBooksTx) Limit(limit int) *GetOpenBooksTx

func (*GetOpenBooksTx) Symbol

func (s *GetOpenBooksTx) Symbol(symbol types.Symbol) *GetOpenBooksTx

type GetOpenOrdersTx

type GetOpenOrdersTx struct {
	// contains filtered or unexported fields
}

func (*GetOpenOrdersTx) Do

func (*GetOpenOrdersTx) Symbol

func (s *GetOpenOrdersTx) Symbol(symbol types.Symbol) *GetOpenOrdersTx

type GetOrderHistoryTx

type GetOrderHistoryTx struct {
	// contains filtered or unexported fields
}

func (*GetOrderHistoryTx) Do

func (*GetOrderHistoryTx) End

func (*GetOrderHistoryTx) Limit

func (s *GetOrderHistoryTx) Limit(limit int) *GetOrderHistoryTx

func (*GetOrderHistoryTx) Page

func (s *GetOrderHistoryTx) Page(page int) *GetOrderHistoryTx

func (*GetOrderHistoryTx) Start

func (*GetOrderHistoryTx) Symbol

func (s *GetOrderHistoryTx) Symbol(symbol types.Symbol) *GetOrderHistoryTx

type GetOrderInfoTx

type GetOrderInfoTx struct {
	// contains filtered or unexported fields
}

func (*GetOrderInfoTx) Do

func (*GetOrderInfoTx) OrderHash

func (s *GetOrderInfoTx) OrderHash(orderHash types.OrderHash) *GetOrderInfoTx

func (*GetOrderInfoTx) OrderID

func (s *GetOrderInfoTx) OrderID(orderID types.OrderID) *GetOrderInfoTx

func (*GetOrderInfoTx) OrderSide

func (s *GetOrderInfoTx) OrderSide(orderSide types.OrderSide) *GetOrderInfoTx

func (*GetOrderInfoTx) Symbol

func (s *GetOrderInfoTx) Symbol(symbol types.Symbol) *GetOrderInfoTx

type GetServerTimeTx

type GetServerTimeTx struct {
	// contains filtered or unexported fields
}

func (*GetServerTimeTx) Do

func (s *GetServerTimeTx) Do() (*uint64, error)

type GetStatusTx

type GetStatusTx struct {
	// contains filtered or unexported fields
}

func (*GetStatusTx) Do

type GetSymbolsTx

type GetSymbolsTx struct {
	// contains filtered or unexported fields
}

func (*GetSymbolsTx) Do

type GetTickerTx

type GetTickerTx struct {
	// contains filtered or unexported fields
}

func (*GetTickerTx) Do

func (s *GetTickerTx) Do() (*types.TickerResponse, error)

func (*GetTickerTx) DoAny

func (s *GetTickerTx) DoAny() (*types.TickerResponseAny, error)

type GetTradesTx

type GetTradesTx struct {
	// contains filtered or unexported fields
}

func (*GetTradesTx) Do

func (s *GetTradesTx) Do() (*types.TradesResponse, error)

func (*GetTradesTx) Limit

func (s *GetTradesTx) Limit(limit int) *GetTradesTx

func (*GetTradesTx) Symbol

func (s *GetTradesTx) Symbol(symbol types.Symbol) *GetTradesTx

type GetTradingCreditsTx

type GetTradingCreditsTx struct {
	// contains filtered or unexported fields
}

func (*GetTradingCreditsTx) Do

type GetTradingViewHistoryTx

type GetTradingViewHistoryTx struct {
	// contains filtered or unexported fields
}

func (*GetTradingViewHistoryTx) Do

func (*GetTradingViewHistoryTx) FromTimestamp

func (s *GetTradingViewHistoryTx) FromTimestamp(from int64) *GetTradingViewHistoryTx

func (*GetTradingViewHistoryTx) Resolution

func (*GetTradingViewHistoryTx) Symbol

func (*GetTradingViewHistoryTx) ToCurrent

func (*GetTradingViewHistoryTx) ToTimestamp

type GetUserLimitsTx

type GetUserLimitsTx struct {
	// contains filtered or unexported fields
}

func (*GetUserLimitsTx) Do

type GetWalletsTx

type GetWalletsTx struct {
	// contains filtered or unexported fields
}

func (*GetWalletsTx) Do

func (s *GetWalletsTx) Do() (*types.WalletResponse, error)

func (*GetWalletsTx) DoAny

func (s *GetWalletsTx) DoAny() (*types.WalletResponseAny, error)

type GetWsTokenTx

type GetWsTokenTx struct {
	// contains filtered or unexported fields
}

func (*GetWsTokenTx) Do

type PlaceAskTx

type PlaceAskTx struct {
	// contains filtered or unexported fields
}

func (*PlaceAskTx) Amount

func (s *PlaceAskTx) Amount(amount float64) *PlaceAskTx

func (*PlaceAskTx) ClientID

func (s *PlaceAskTx) ClientID(clientID string) *PlaceAskTx

func (*PlaceAskTx) Do

func (*PlaceAskTx) OrderType

func (s *PlaceAskTx) OrderType(orderType types.OrderType) *PlaceAskTx

func (*PlaceAskTx) Rate

func (s *PlaceAskTx) Rate(rate float64) *PlaceAskTx

func (*PlaceAskTx) Symbol

func (s *PlaceAskTx) Symbol(symbol types.Symbol) *PlaceAskTx

type PlaceBidTx

type PlaceBidTx struct {
	// contains filtered or unexported fields
}

func (*PlaceBidTx) Amount

func (s *PlaceBidTx) Amount(amount float64) *PlaceBidTx

func (*PlaceBidTx) ClientID

func (s *PlaceBidTx) ClientID(clientID string) *PlaceBidTx

func (*PlaceBidTx) Do

func (*PlaceBidTx) OrderType

func (s *PlaceBidTx) OrderType(orderType types.OrderType) *PlaceBidTx

func (*PlaceBidTx) Rate

func (s *PlaceBidTx) Rate(rate float64) *PlaceBidTx

func (*PlaceBidTx) Symbol

func (s *PlaceBidTx) Symbol(symbol types.Symbol) *PlaceBidTx

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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