Create a new BitkubClient
Your API Key
Your API Secret
Environment to call API
Base API URL
Request timeout in milliseconds
Private _apiPrivate _apiPrivate _axiosPrivate _basePrivate _environmentPrivate _requestPrivate _requestChange the api secret in axios configuration
Change the api secret
Change the base url in axios configuration
Change the request timeout in axios configuration
Build request header based on Bitkub signature algorithm Ref: https://github.com/bitkub/bitkub-official-api-docs/blob/master/restful-api.md#payload-post
Optional payload: Record<string, undefined | string | number>A request payload including ts and sig field which are required for any POST APIs.
Cancel order
: Order Id
Result of cancelling order
Private createCreate axios headers
Private createGet ask list from Bitkub
Trading Symbol (THB_BNB, THB_BTC)
Response Limit Size
A list of ask
Get current balances
A list of current balances
Get bid list from Bitkub
Trading Symbol (BNB_THB, BTC_THB)
Response Limit Size
A list of bid
Get market symbols
A list of symbols in Bitkub market.
Place ask
Trading Symbol (THB_BNB, THB_BTC)
Sell amount
Price rate
Order type (LIMIT, MARKET)
Result of placing ask
Place bid
Trading Symbol (THB_BNB, THB_BTC)
Buy amount
Price rate
Order type (LIMIT, MARKET)
Result of placing bid
Change environment to call API It will affect to call place-bid and place-ask api.
BitkubClient is a class that provides methods to interact with the Bitkub API. It allows users to perform various operations such as getting server time, retrieving market symbols, checking balances, placing bids and asks, and canceling orders.
BitkubClient
Example
Param: apiKey
Your API Key
Param: apiSecret
Your API Secret
Param: environment
Environment to call API
Param: baseApiUrl
Base API URL
Param: requestTimeout
Request timeout in milliseconds