wiki/exchanges/bithumb.md
<a name="bithumb" id="bithumb"></a>
Kind: global class
Extends: <code>Exchange</code>
<a name="fetchMarkets" id="fetchmarkets"></a>
retrieves data on all markets for bithumb
Kind: instance method of <code>bithumb</code>
Returns: <code>Array<object></code> - an array of objects representing market data
See
| Param | Type | Required | Description |
|---|---|---|---|
| params | <code>object</code> | No | extra parameters specific to the exchange API endpoint |
| params.generation | <code>int</code> | No | if you want to use the API generation 1 or 2, default is 2 |
bithumb.fetchMarkets (params?)
<a name="fetchBalance" id="fetchbalance"></a>
query for balance and get the amount of funds available for trading or funds locked in orders
Kind: instance method of <code>bithumb</code>
Returns: <code>object</code> - a balance structure
See
| Param | Type | Required | Description |
|---|---|---|---|
| params | <code>object</code> | No | extra parameters specific to the exchange API endpoint |
| params.generation | <code>int</code> | No | if you want to use the API generation 1 or 2, default is 2 |
bithumb.fetchBalance (params?)
<a name="fetchOrderBook" id="fetchorderbook"></a>
fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
Kind: instance method of <code>bithumb</code>
Returns: <code>object</code> - an order book structure
See
| Param | Type | Required | Description |
|---|---|---|---|
| symbol | <code>string</code> | Yes | unified symbol of the market to fetch the order book for |
| limit | <code>int</code> | No | the maximum amount of order book entries to return |
| params | <code>object</code> | No | extra parameters specific to the exchange API endpoint |
| params.generation | <code>int</code> | No | if you want to use the API generation 1 or 2, default is 2 |
bithumb.fetchOrderBook (symbol, limit?, params?)
<a name="fetchTickers" id="fetchtickers"></a>
fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
Kind: instance method of <code>bithumb</code>
Returns: <code>object</code> - a dictionary of ticker structures
See
| Param | Type | Required | Description |
|---|---|---|---|
| symbols | <code>Array<string></code>, <code>undefined</code> | Yes | unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned |
| params | <code>object</code> | No | extra parameters specific to the exchange API endpoint |
| params.generation | <code>int</code> | No | if you want to use the API generation 1 or 2, default is 2 |
bithumb.fetchTickers (symbols, params?)
<a name="fetchTicker" id="fetchticker"></a>
fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
Kind: instance method of <code>bithumb</code>
Returns: <code>object</code> - a ticker structure
See
| Param | Type | Required | Description |
|---|---|---|---|
| symbol | <code>string</code> | Yes | unified symbol of the market to fetch the ticker for |
| params | <code>object</code> | No | extra parameters specific to the exchange API endpoint |
| params.generation | <code>int</code> | No | if you want to use the API generation 1 or 2, default is 2 |
bithumb.fetchTicker (symbol, params?)
<a name="fetchOHLCV" id="fetchohlcv"></a>
fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
Kind: instance method of <code>bithumb</code>
Returns: <code>Array<Array<int>></code> - A list of candles ordered as timestamp, open, high, low, close, volume
See
| Param | Type | Required | Description |
|---|---|---|---|
| symbol | <code>string</code> | Yes | unified symbol of the market to fetch OHLCV data for |
| timeframe | <code>string</code> | Yes | the length of time each candle represents |
| since | <code>int</code> | No | timestamp in ms of the earliest candle to fetch |
| limit | <code>int</code> | No | the maximum amount of candles to fetch |
| params | <code>object</code> | No | extra parameters specific to the exchange API endpoint |
| params.generation | <code>int</code> | No | if you want to use the API generation 1 or 2, default is 2 |
bithumb.fetchOHLCV (symbol, timeframe, since?, limit?, params?)
<a name="fetchTrades" id="fetchtrades"></a>
get the list of most recent trades for a particular symbol
Kind: instance method of <code>bithumb</code>
Returns: <code>Array<Trade></code> - a list of trade structures
See
| Param | Type | Required | Description |
|---|---|---|---|
| symbol | <code>string</code> | Yes | unified symbol of the market to fetch trades for |
| since | <code>int</code> | No | timestamp in ms of the earliest trade to fetch |
| limit | <code>int</code> | No | the maximum amount of trades to fetch |
| params | <code>object</code> | No | extra parameters specific to the exchange API endpoint |
| params.generation | <code>int</code> | No | if you want to use the API generation 1 or 2, default is 2 |
bithumb.fetchTrades (symbol, since?, limit?, params?)
<a name="createOrders" id="createorders"></a>
create a list of trade orders, only available for the generation 2 API
Kind: instance method of <code>bithumb</code>
Returns: <code>Array<object></code> - a list of order structures
See: https://apidocs.bithumb.com/reference/%EB%8B%A4%EA%B1%B4-%EC%A3%BC%EB%AC%B8-%EC%9A%94%EC%B2%AD
| Param | Type | Required | Description |
|---|---|---|---|
| orders | <code>Array</code> | Yes | list of orders to create, each object should contain the parameters required by createOrder, namely symbol, type, side, amount, price and params |
| params | <code>object</code> | No | extra parameters specific to the exchange API endpoint |
| params.timeInForce | <code>string</code> | No | supports 'IOC', 'FOK', and 'PO' |
| params.postOnly | <code>bool</code> | No | true or false |
| params.clientOrderId | <code>string</code> | No | the clientOrderId of the order |
| params.generation | <code>int</code> | No | only generation 2 is supported if you want to use the API generation 1 or 2, default is 2 |
bithumb.createOrders (orders, params?)
<a name="createOrder" id="createorder"></a>
create a trade order
Kind: instance method of <code>bithumb</code>
Returns: <code>object</code> - an order structure
See
| Param | Type | Required | Description |
|---|---|---|---|
| symbol | <code>string</code> | Yes | unified symbol of the market to create an order in |
| type | <code>string</code> | Yes | 'market' or 'limit' |
| side | <code>string</code> | Yes | 'buy' or 'sell' |
| amount | <code>float</code> | Yes | how much of currency you want to trade in units of base currency |
| price | <code>float</code> | No | the price at which the order is to be fulfilled, in units of the quote currency |
| params | <code>object</code> | No | extra parameters specific to the exchange API endpoint |
| params.timeInForce | <code>string</code> | No | supports 'IOC', 'FOK', and 'PO' |
| params.postOnly | <code>bool</code> | No | true or false |
| params.clientOrderId | <code>string</code> | No | the clientOrderId of the order |
| params.cost | <code>string</code> | No | generation 2 only optional cost parameter for market buy orders instead of setting the price, must also set createMarketBuyOrderRequiresPrice to false |
| params.createMarketBuyOrderRequiresPrice | <code>bool</code> | No | generation 2 only set to false if passing a cost param or using cost in the amount argument, defaults to true |
| params.generation | <code>int</code> | No | if you want to use the API generation 1 or 2, default is 2 |
bithumb.createOrder (symbol, type, side, amount, price?, params?)
<a name="createMarketBuyOrderWithCost" id="createmarketbuyorderwithcost"></a>
create a market buy order by providing the symbol and cost
Kind: instance method of <code>bithumb</code>
Returns: <code>object</code> - an order structure
See: https://apidocs.bithumb.com/reference/%EC%A3%BC%EB%AC%B8-%EC%9A%94%EC%B2%AD
| Param | Type | Required | Description |
|---|---|---|---|
| symbol | <code>string</code> | Yes | unified symbol of the market to create an order in |
| cost | <code>float</code> | Yes | how much you want to trade in units of the quote currency |
| params | <code>object</code> | No | extra parameters specific to the exchange API endpoint |
| params.generation | <code>int</code> | No | only generation 2 is supported if you want to use the API generation 1 or 2, default is 2 |
bithumb.createMarketBuyOrderWithCost (symbol, cost, params?)
<a name="createTwapOrder" id="createtwaporder"></a>
create a trade order that is executed as a TWAP order over a specified duration.
Kind: instance method of <code>bithumb</code>
Returns: <code>object</code> - an order structure
See: https://apidocs.bithumb.com/reference/twap-%EC%A3%BC%EB%AC%B8-%EC%9A%94%EC%B2%AD
| Param | Type | Required | Description |
|---|---|---|---|
| symbol | <code>string</code> | Yes | unified symbol of the market to create an order in |
| side | <code>string</code> | Yes | 'buy' or 'sell' |
| amount | <code>float</code> | Yes | how much of currency you want to trade in units of base currency, only required for sale |
| duration | <code>int</code> | Yes | the duration of the TWAP order in milliseconds |
| params | <code>object</code> | No | extra parameters specific to the exchange API endpoint |
| params.frequency | <code>string</code> | Yes | required order interval in seconds, 15, 20, 30, 60 or 120 |
| params.price | <code>string</code> | No | order price, required for purchase |
| params.generation | <code>int</code> | No | only generation 2 is supported if you want to use the API generation 1 or 2, default is 2 |
bithumb.createTwapOrder (symbol, side, amount, duration, params?)
<a name="fetchOrder" id="fetchorder"></a>
fetches information on an order made by the user
Kind: instance method of <code>bithumb</code>
Returns: <code>object</code> - An order structure
See
| Param | Type | Required | Description |
|---|---|---|---|
| id | <code>string</code> | Yes | order id |
| symbol | <code>string</code> | No | unified symbol of the market the order was made in |
| params | <code>object</code> | No | extra parameters specific to the exchange API endpoint |
| params.clientOrderId | <code>string</code> | No | the clientOrderId of the order, alternative to using the order id |
| params.generation | <code>int</code> | No | if you want to use the API generation 1 or 2, default is 2 |
| params.twap | <code>bool</code> | No | generation 2 only if you want to fetch a generation 2 twap order |
| params.state | <code>string</code> | No | generation 2 only the order state, either wait, watch, done, or cancel. For twap either progress (default), done, or cancel |
bithumb.fetchOrder (id, symbol?, params?)
<a name="fetchOpenOrders" id="fetchopenorders"></a>
fetch all unfilled currently open orders
Kind: instance method of <code>bithumb</code>
Returns: <code>Array<Order></code> - a list of order structures
See
| Param | Type | Required | Description |
|---|---|---|---|
| symbol | <code>string</code> | No | unified market symbol |
| since | <code>int</code> | No | the earliest time in ms to fetch open orders for |
| limit | <code>int</code> | No | the maximum number of open order structures to retrieve |
| params | <code>object</code> | No | extra parameters specific to the exchange API endpoint |
| params.generation | <code>int</code> | No | if you want to use the API generation 1 or 2, default is 2 |
| params.twap | <code>bool</code> | No | generation 2 only if you want to fetch generation 2 twap orders |
| params.state | <code>string</code> | No | generation 2 only the order state, either wait, watch, done, or cancel. For twap either progress (default), done, or cancel |
bithumb.fetchOpenOrders (symbol?, since?, limit?, params?)
<a name="fetchOrders" id="fetchorders"></a>
fetches information on multiple orders made by the user
Kind: instance method of <code>bithumb</code>
Returns: <code>Array<Order></code> - a list of order structures
See
| Param | Type | Required | Description |
|---|---|---|---|
| symbol | <code>string</code> | Yes | unified market symbol of the market orders were made in |
| since | <code>int</code> | No | the earliest time in ms to fetch orders for |
| limit | <code>int</code> | No | the maximum number of order structures to retrieve |
| params | <code>object</code> | No | extra parameters specific to the exchange API endpoint |
| params.clientOrderIds | <code>Array<string></code> | No | an array of client order ids |
| params.generation | <code>int</code> | No | only generation 2 is supported if you want to use the API generation 1 or 2, default is 2 |
| params.twap | <code>bool</code> | No | generation 2 only if you want to fetch generation 2 twap orders |
| params.state | <code>string</code> | No | generation 2 only the order state, either wait, watch, done, or cancel. For twap either progress (default), done, or cancel |
bithumb.fetchOrders (symbol, since?, limit?, params?)
<a name="fetchClosedOrders" id="fetchclosedorders"></a>
fetches information on multiple closed orders made by the user
Kind: instance method of <code>bithumb</code>
Returns: <code>Array<Order></code> - a list of order structures
See
| Param | Type | Required | Description |
|---|---|---|---|
| symbol | <code>string</code> | Yes | unified market symbol of the market orders were made in |
| since | <code>int</code> | No | the earliest time in ms to fetch orders for |
| limit | <code>int</code> | No | the maximum number of order structures to retrieve |
| params | <code>object</code> | No | extra parameters specific to the exchange API endpoint |
| params.clientOrderIds | <code>Array<string></code> | No | an array of client order ids |
| params.generation | <code>int</code> | No | only generation 2 is supported if you want to use the API generation 1 or 2, default is 2 |
| params.twap | <code>bool</code> | No | if you want to fetch generation 2 twap orders |
bithumb.fetchClosedOrders (symbol, since?, limit?, params?)
<a name="fetchCanceledOrders" id="fetchcanceledorders"></a>
fetches information on multiple canceled orders made by the user
Kind: instance method of <code>bithumb</code>
Returns: <code>Array<object></code> - a list of order structures
See
| Param | Type | Required | Description |
|---|---|---|---|
| symbol | <code>string</code> | Yes | unified market symbol of the market the orders were made in |
| since | <code>int</code> | No | the earliest time in ms to fetch orders for |
| limit | <code>int</code> | No | the maximum number of order structures to retrieve |
| params | <code>object</code> | No | extra parameters specific to the exchange API endpoint |
| params.clientOrderIds | <code>Array<string></code> | No | an array of client order ids |
| params.generation | <code>int</code> | No | only generation 2 is supported if you want to use the API generation 1 or 2, default is 2 |
| params.twap | <code>bool</code> | No | if you want to fetch generation 2 twap orders |
bithumb.fetchCanceledOrders (symbol, since?, limit?, params?)
<a name="cancelOrder" id="cancelorder"></a>
cancels an open order
Kind: instance method of <code>bithumb</code>
Returns: <code>object</code> - An order structure
See
| Param | Type | Required | Description |
|---|---|---|---|
| id | <code>string</code> | Yes | order id |
| symbol | <code>string</code> | No | unified symbol of the market the order was made in |
| params | <code>object</code> | No | extra parameters specific to the exchange API endpoint |
| params.clientOrderId | <code>string</code> | No | the clientOrderId of the order, alternative to using the order id |
| params.generation | <code>int</code> | No | if you want to use the API generation 1 or 2, default is 2 |
| params.twap | <code>bool</code> | No | if you want to cancel a generation 2 twap order |
bithumb.cancelOrder (id, symbol?, params?)
<a name="cancelOrders" id="cancelorders"></a>
cancel multiple orders
Kind: instance method of <code>bithumb</code>
Returns: <code>Array<object></code> - a list of order structures
| Param | Type | Required | Description |
|---|---|---|---|
| ids | <code>Array<string></code> | Yes | order ids |
| symbol | <code>string</code> | No | unified market symbol |
| params | <code>object</code> | No | extra parameters specific to the exchange API endpoint |
| params.clientOrderIds | <code>Array<string></code> | No | alternative to ids, array of client order ids |
| params.generation | <code>int</code> | No | only generation 2 is supported if you want to use the API generation 1 or 2, default is 2 |
bithumb.cancelOrders (ids, symbol?, params?)
<a name="withdraw" id="withdraw"></a>
make a withdrawal
Kind: instance method of <code>bithumb</code>
Returns: <code>object</code> - a transaction structure
See
| Param | Type | Required | Description |
|---|---|---|---|
| code | <code>string</code> | Yes | unified currency code |
| amount | <code>float</code> | Yes | the amount to withdraw |
| address | <code>string</code> | Yes | the address to withdraw to |
| tag | <code>string</code> | Yes | the secondary withdrawal destination address |
| params | <code>object</code> | No | extra parameters specific to the exchange API endpoint |
| params.generation | <code>int</code> | No | if you want to use the API generation 1 or 2, default is 2 |
| params.network | <code>string</code> | No | the blockchain network to withdraw on, for example BTC or DASH |
| params.destination | <code>string</code> | No | secondary address destination for specific currencies, can alternatively use the tag argument |
| params.exchange_name | <code>string</code> | No | withdrawal exchange name |
| params.receiver_type | <code>string</code> | No | either personal or corporation |
| params.ko_name | <code>string</code> | No | generation 1 only the receiver name in korean |
| params.en_name | <code>string</code> | No | generation 1 only the receiver name in english |
| params.receiver_ko_name | <code>string</code> | No | generation 2 only the personal receiver name in korean |
| params.receiver_en_name | <code>string</code> | No | generation 2 only the personal receiver name in english |
| params.receiver_corp_ko_name | <code>string</code> | No | generation 2 only the corporation receiver name in korean |
| params.receiver_corp_en_name | <code>string</code> | No | generation 2 only the corporation receiver name in english |
| params.two_factor_type | <code>string</code> | No | generation 2 KRW withdraw only the two factor type, for example kakao |
bithumb.withdraw (code, amount, address, tag, params?)
<a name="fetchWithdrawalWhitelist" id="fetchwithdrawalwhitelist"></a>
fetch a list of allowed withdrawal addresses
Kind: instance method of <code>bithumb</code>
Returns: <code>Array<object></code> - a list response from the exchange
| Param | Type | Required | Description |
|---|---|---|---|
| params | <code>object</code> | No | extra parameters specific to the exchange API endpoint |
| params.generation | <code>int</code> | No | only generation 2 is supported if you want to use the API generation 1 or 2, default is 2 |
bithumb.fetchWithdrawalWhitelist (params?)
<a name="fetchWithdrawal" id="fetchwithdrawal"></a>
fetch data on a currency withdrawal via the withdrawal id
Kind: instance method of <code>bithumb</code>
Returns: <code>object</code> - a transaction structure
See: https://apidocs.bithumb.com/reference/%EA%B0%9C%EB%B3%84-%EC%B6%9C%EA%B8%88-%EC%A1%B0%ED%9A%8C
| Param | Type | Required | Description |
|---|---|---|---|
| id | <code>string</code> | Yes | withdrawal id |
| code | <code>string</code> | No | the currency code |
| params | <code>object</code> | No | extra parameters specific to the exchange API endpoint |
| params.txid | <code>string</code> | No | the transaction id for the withdrawal |
| params.generation | <code>int</code> | No | only generation 2 is supported if you want to use the API generation 1 or 2, default is 2 |
bithumb.fetchWithdrawal (id, code?, params?)
<a name="fetchWithdrawals" id="fetchwithdrawals"></a>
fetch all withdrawals made from an account
Kind: instance method of <code>bithumb</code>
Returns: <code>Array<object></code> - a list of transaction structures
See
| Param | Type | Required | Description |
|---|---|---|---|
| code | <code>string</code> | No | unified currency code |
| since | <code>int</code> | No | the earliest time in ms to fetch withdrawals for |
| limit | <code>int</code> | No | the maximum number of withdrawals to retrieve |
| params | <code>object</code> | No | extra parameters specific to the exchange API endpoint |
| params.generation | <code>int</code> | No | only generation 2 is supported if you want to use the API generation 1 or 2, default is 2 |
| params.page | <code>int</code> | No | the number of pages to return, default is 1 |
| params.state | <code>string</code> | No | the withdrawal state, either PROCESSING, DONE or CANCELLED |
| params.order_by | <code>string</code> | No | either asc or desc, desc is the default |
| params.uuids | <code>Array<string></code> | No | an array of uuid strings |
| params.txids | <code>Array<string></code> | No | an array of txid strings |
bithumb.fetchWithdrawals (code?, since?, limit?, params?)
<a name="fetchDeposit" id="fetchdeposit"></a>
fetch information on a deposit
Kind: instance method of <code>bithumb</code>
Returns: <code>object</code> - a transaction structure
See: https://apidocs.bithumb.com/reference/%EA%B0%9C%EB%B3%84-%EC%9E%85%EA%B8%88-%EC%A1%B0%ED%9A%8C
| Param | Type | Required | Description |
|---|---|---|---|
| id | <code>string</code> | Yes | deposit id |
| code | <code>string</code> | Yes | unified currency code |
| params | <code>object</code> | No | extra parameters specific to the exchange API endpoint |
| params.txid | <code>string</code> | No | the transaction id for the deposit |
| params.generation | <code>int</code> | No | only generation 2 is supported if you want to use the API generation 1 or 2, default is 2 |
bithumb.fetchDeposit (id, code, params?)
<a name="fetchDeposits" id="fetchdeposits"></a>
fetch all deposits made to an account
Kind: instance method of <code>bithumb</code>
Returns: <code>Array<object></code> - a list of transaction structures
See
| Param | Type | Required | Description |
|---|---|---|---|
| code | <code>string</code> | Yes | unified currency code |
| since | <code>int</code> | No | the earliest time in ms to fetch deposits for |
| limit | <code>int</code> | No | the maximum number of deposits to retrieve |
| params | <code>object</code> | No | extra parameters specific to the exchange API endpoint |
| params.generation | <code>int</code> | No | only generation 2 is supported if you want to use the API generation 1 or 2, default is 2 |
| params.page | <code>int</code> | No | the number of pages to return, default is 1 |
| params.state | <code>string</code> | No | the deposit state, for KRW, PROCESSING, ACCEPTED or CANCELLED, for others, DEPOSIT_PROCESSING, DEPOSIT_ACCEPTED, DEPOSIT_CANCELLED |
| params.order_by | <code>string</code> | No | either asc or desc, desc is the default |
| params.uuids | <code>Array<string></code> | No | an array of uuid strings |
| params.txids | <code>Array<string></code> | No | an array of txid strings |
bithumb.fetchDeposits (code, since?, limit?, params?)
<a name="createDepositAddress" id="createdepositaddress"></a>
create a currency deposit address
Kind: instance method of <code>bithumb</code>
Returns: <code>object</code> - an address structure
| Param | Type | Required | Description |
|---|---|---|---|
| code | <code>string</code> | Yes | unified currency code of the currency for the deposit address |
| params | <code>object</code> | No | extra parameters specific to the exchange API endpoint |
| params.generation | <code>int</code> | No | only generation 2 is supported if you want to use the API generation 1 or 2, default is 2 |
| params.network | <code>string</code> | No | the blockchain network to create a deposit address on |
bithumb.createDepositAddress (code, params?)
<a name="fetchDepositAddress" id="fetchdepositaddress"></a>
fetch the deposit address for a currency associated with this account
Kind: instance method of <code>bithumb</code>
Returns: <code>object</code> - an address structure
| Param | Type | Required | Description |
|---|---|---|---|
| code | <code>string</code> | Yes | unified currency code |
| params | <code>object</code> | No | extra parameters specific to the exchange API endpoint |
| params.generation | <code>int</code> | No | only generation 2 is supported if you want to use the API generation 1 or 2, default is 2 |
| params.network | <code>string</code> | No | network for fetch deposit address |
bithumb.fetchDepositAddress (code, params?)
<a name="fetchDepositAddresses" id="fetchdepositaddresses"></a>
fetch deposit addresses for multiple currencies (when available)
Kind: instance method of <code>bithumb</code>
Returns: <code>object</code> - a dictionary of address structures indexed by currency code
| Param | Type | Required | Description |
|---|---|---|---|
| codes | <code>Array<string></code> | No | list of unified currency codes, default is undefined (all currencies) |
| params | <code>object</code> | No | extra parameters specific to the exchange API endpoint |
| params.generation | <code>int</code> | No | only generation 2 is supported if you want to use the API generation 1 or 2, default is 2 |
bithumb.fetchDepositAddresses (codes?, params?)
<a name="watchTicker" id="watchticker"></a>
watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
Kind: instance method of <code>bithumb</code>
Returns: <code>object</code> - a ticker structure
See
| Param | Type | Required | Description |
|---|---|---|---|
| symbol | <code>string</code> | Yes | unified symbol of the market to fetch the ticker for |
| params | <code>object</code> | No | extra parameters specific to the exchange API endpoint |
| params.tickTypes | <code>string</code> | No | generation 1 only, the tick type to subscribe to, '24H' by default (30M, 1H, 12H, 24H, MID) |
| params.generation | <code>int</code> | No | if you want to use the API generation 1 or 2, default is 2 |
bithumb.watchTicker (symbol, params?)
<a name="watchTickers" id="watchtickers"></a>
watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for all markets of a specific list
Kind: instance method of <code>bithumb</code>
Returns: <code>object</code> - a dictionary of ticker structures indexed by market symbols
See
| Param | Type | Required | Description |
|---|---|---|---|
| symbols | <code>Array<string></code> | Yes | unified symbols of the markets to fetch tickers for |
| params | <code>object</code> | No | extra parameters specific to the exchange API endpoint |
| params.tickTypes | <code>string</code> | No | generation 1 only, the tick type to subscribe to, '24H' by default (30M, 1H, 12H, 24H, MID) |
| params.generation | <code>int</code> | No | if you want to use the API generation 1 or 2, default is 2 |
bithumb.watchTickers (symbols, params?)
<a name="watchOrderBook" id="watchorderbook"></a>
watches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
Kind: instance method of <code>bithumb</code>
Returns: <code>object</code> - an order book structure
See
| Param | Type | Required | Description |
|---|---|---|---|
| symbol | <code>string</code> | Yes | unified symbol of the market to fetch the order book for |
| limit | <code>int</code> | No | the maximum amount of order book entries to return |
| params | <code>object</code> | No | extra parameters specific to the exchange API endpoint |
| params.generation | <code>int</code> | No | if you want to use the API generation 1 or 2, default is 2 |
bithumb.watchOrderBook (symbol, limit?, params?)
<a name="watchTrades" id="watchtrades"></a>
get the list of most recent trades for a particular symbol
Kind: instance method of <code>bithumb</code>
Returns: <code>Array<object></code> - a list of trade structures
See
| Param | Type | Required | Description |
|---|---|---|---|
| symbol | <code>string</code> | Yes | unified symbol of the market to fetch trades for |
| since | <code>int</code> | No | timestamp in ms of the earliest trade to fetch |
| limit | <code>int</code> | No | the maximum amount of trades to fetch |
| params | <code>object</code> | No | extra parameters specific to the exchange API endpoint |
| params.generation | <code>int</code> | No | if you want to use the API generation 1 or 2, default is 2 |
bithumb.watchTrades (symbol, since?, limit?, params?)
<a name="watchBalance" id="watchbalance"></a>
watch balance and get the amount of funds available for trading or funds locked in orders
Kind: instance method of <code>bithumb</code>
Returns: <code>object</code> - a balance structure
See: https://apidocs.bithumb.com/v2.1.5/reference/%EB%82%B4-%EC%9E%90%EC%82%B0-myasset
| Param | Type | Required | Description |
|---|---|---|---|
| params | <code>object</code> | No | extra parameters specific to the exchange API endpoint |
| params.generation | <code>int</code> | No | only generation 2 is supported if you want to use the API generation 1 or 2, default is 2 |
bithumb.watchBalance (params?)
<a name="watchOrders" id="watchorders"></a>
watches information on multiple orders made by the user
Kind: instance method of <code>bithumb</code>
Returns: <code>Array<object></code> - a list of order structures
| Param | Type | Required | Description |
|---|---|---|---|
| symbol | <code>string</code> | Yes | unified market symbol of the market orders were made in |
| since | <code>int</code> | No | the earliest time in ms to fetch orders for |
| limit | <code>int</code> | No | the maximum number of order structures to retrieve |
| params | <code>object</code> | No | extra parameters specific to the exchange API endpoint |
| params.codes | <code>Array<string></code> | No | market codes to filter orders |
| params.generation | <code>int</code> | No | only generation 2 is supported if you want to use the API generation 1 or 2, default is 2 |
bithumb.watchOrders (symbol, since?, limit?, params?)