CCXT
bithumb

bithumb

bithumb cryptocurrency exchange — CCXT unified API: methods, parameters and endpoints.

🔌 Looking for raw exchange endpoints? See the bithumb implicit API — every endpoint in this exchange's API exposed as an implicit method.

bithumb

Kind: global class
Extends: Exchange

fetchMarkets

retrieves data on all markets for bithumb

Kind: instance method of bithumb
Returns: Array<object> - an array of objects representing market data

See

ParamTypeRequiredDescription
paramsobjectNoextra parameters specific to the exchange API endpoint
params.generationintNoif you want to use the API generation 1 or 2, default is 2
bithumb.fetchMarkets (params?)

fetchBalance

query for balance and get the amount of funds available for trading or funds locked in orders

Kind: instance method of bithumb
Returns: object - a balance structure

See

ParamTypeRequiredDescription
paramsobjectNoextra parameters specific to the exchange API endpoint
params.generationintNoif you want to use the API generation 1 or 2, default is 2
bithumb.fetchBalance (params?)

fetchOrderBook

fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data

Kind: instance method of bithumb
Returns: object - an order book structure

See

ParamTypeRequiredDescription
symbolstringYesunified symbol of the market to fetch the order book for
limitintNothe maximum amount of order book entries to return
paramsobjectNoextra parameters specific to the exchange API endpoint
params.generationintNoif you want to use the API generation 1 or 2, default is 2
bithumb.fetchOrderBook (symbol, limit?, params?)

fetchTickers

fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market

Kind: instance method of bithumb
Returns: object - a dictionary of ticker structures

See

ParamTypeRequiredDescription
symbolsArray<string>, undefinedYesunified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
paramsobjectNoextra parameters specific to the exchange API endpoint
params.generationintNoif you want to use the API generation 1 or 2, default is 2
bithumb.fetchTickers (symbols, params?)

fetchTicker

fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market

Kind: instance method of bithumb
Returns: object - a ticker structure

See

ParamTypeRequiredDescription
symbolstringYesunified symbol of the market to fetch the ticker for
paramsobjectNoextra parameters specific to the exchange API endpoint
params.generationintNoif you want to use the API generation 1 or 2, default is 2
bithumb.fetchTicker (symbol, params?)

fetchOHLCV

fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market

Kind: instance method of bithumb
Returns: Array<Array<int>> - A list of candles ordered as timestamp, open, high, low, close, volume

See

ParamTypeRequiredDescription
symbolstringYesunified symbol of the market to fetch OHLCV data for
timeframestringYesthe length of time each candle represents
sinceintNotimestamp in ms of the earliest candle to fetch
limitintNothe maximum amount of candles to fetch
paramsobjectNoextra parameters specific to the exchange API endpoint
params.generationintNoif you want to use the API generation 1 or 2, default is 2
bithumb.fetchOHLCV (symbol, timeframe, since?, limit?, params?)

fetchTrades

get the list of most recent trades for a particular symbol

Kind: instance method of bithumb
Returns: Array<Trade> - a list of trade structures

See

ParamTypeRequiredDescription
symbolstringYesunified symbol of the market to fetch trades for
sinceintNotimestamp in ms of the earliest trade to fetch
limitintNothe maximum amount of trades to fetch
paramsobjectNoextra parameters specific to the exchange API endpoint
params.generationintNoif you want to use the API generation 1 or 2, default is 2
bithumb.fetchTrades (symbol, since?, limit?, params?)

createOrders

create a list of trade orders, only available for the generation 2 API

Kind: instance method of bithumb
Returns: Array<object> - 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

ParamTypeRequiredDescription
ordersArrayYeslist of orders to create, each object should contain the parameters required by createOrder, namely symbol, type, side, amount, price and params
paramsobjectNoextra parameters specific to the exchange API endpoint
params.timeInForcestringNosupports 'IOC', 'FOK', and 'PO'
params.postOnlyboolNotrue or false
params.clientOrderIdstringNothe clientOrderId of the order
params.generationintNoonly generation 2 is supported if you want to use the API generation 1 or 2, default is 2
bithumb.createOrders (orders, params?)

createOrder

create a trade order

Kind: instance method of bithumb
Returns: object - an order structure

See

ParamTypeRequiredDescription
symbolstringYesunified symbol of the market to create an order in
typestringYes'market' or 'limit'
sidestringYes'buy' or 'sell'
amountfloatYeshow much of currency you want to trade in units of base currency
pricefloatNothe price at which the order is to be fulfilled, in units of the quote currency
paramsobjectNoextra parameters specific to the exchange API endpoint
params.timeInForcestringNosupports 'IOC', 'FOK', and 'PO'
params.postOnlyboolNotrue or false
params.clientOrderIdstringNothe clientOrderId of the order
params.coststringNogeneration 2 only optional cost parameter for market buy orders instead of setting the price, must also set createMarketBuyOrderRequiresPrice to false
params.createMarketBuyOrderRequiresPriceboolNogeneration 2 only set to false if passing a cost param or using cost in the amount argument, defaults to true
params.generationintNoif you want to use the API generation 1 or 2, default is 2
bithumb.createOrder (symbol, type, side, amount, price?, params?)

createMarketBuyOrderWithCost

create a market buy order by providing the symbol and cost

Kind: instance method of bithumb
Returns: object - an order structure

See: https://apidocs.bithumb.com/reference/%EC%A3%BC%EB%AC%B8-%EC%9A%94%EC%B2%AD

ParamTypeRequiredDescription
symbolstringYesunified symbol of the market to create an order in
costfloatYeshow much you want to trade in units of the quote currency
paramsobjectNoextra parameters specific to the exchange API endpoint
params.generationintNoonly generation 2 is supported if you want to use the API generation 1 or 2, default is 2
bithumb.createMarketBuyOrderWithCost (symbol, cost, params?)

createTwapOrder

create a trade order that is executed as a TWAP order over a specified duration.

Kind: instance method of bithumb
Returns: object - an order structure

See: https://apidocs.bithumb.com/reference/twap-%EC%A3%BC%EB%AC%B8-%EC%9A%94%EC%B2%AD

ParamTypeRequiredDescription
symbolstringYesunified symbol of the market to create an order in
sidestringYes'buy' or 'sell'
amountfloatYeshow much of currency you want to trade in units of base currency, only required for sale
durationintYesthe duration of the TWAP order in milliseconds
paramsobjectNoextra parameters specific to the exchange API endpoint
params.frequencystringYesrequired order interval in seconds, 15, 20, 30, 60 or 120
params.pricestringNoorder price, required for purchase
params.generationintNoonly 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?)

fetchOrder

fetches information on an order made by the user

Kind: instance method of bithumb
Returns: object - An order structure

See

ParamTypeRequiredDescription
idstringYesorder id
symbolstringNounified symbol of the market the order was made in
paramsobjectNoextra parameters specific to the exchange API endpoint
params.clientOrderIdstringNothe clientOrderId of the order, alternative to using the order id
params.generationintNoif you want to use the API generation 1 or 2, default is 2
params.twapboolNogeneration 2 only if you want to fetch a generation 2 twap order
params.statestringNogeneration 2 only the order state, either wait, watch, done, or cancel. For twap either progress (default), done, or cancel
bithumb.fetchOrder (id, symbol?, params?)

fetchOpenOrders

fetch all unfilled currently open orders

Kind: instance method of bithumb
Returns: Array<Order> - a list of order structures

See

ParamTypeRequiredDescription
symbolstringNounified market symbol
sinceintNothe earliest time in ms to fetch open orders for
limitintNothe maximum number of open order structures to retrieve
paramsobjectNoextra parameters specific to the exchange API endpoint
params.generationintNoif you want to use the API generation 1 or 2, default is 2
params.twapboolNogeneration 2 only if you want to fetch generation 2 twap orders
params.statestringNogeneration 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?)

fetchOrders

fetches information on multiple orders made by the user

Kind: instance method of bithumb
Returns: Array<Order> - a list of order structures

See

ParamTypeRequiredDescription
symbolstringYesunified market symbol of the market orders were made in
sinceintNothe earliest time in ms to fetch orders for
limitintNothe maximum number of order structures to retrieve
paramsobjectNoextra parameters specific to the exchange API endpoint
params.clientOrderIdsArray<string>Noan array of client order ids
params.generationintNoonly generation 2 is supported if you want to use the API generation 1 or 2, default is 2
params.twapboolNogeneration 2 only if you want to fetch generation 2 twap orders
params.statestringNogeneration 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?)

fetchClosedOrders

fetches information on multiple closed orders made by the user

Kind: instance method of bithumb
Returns: Array<Order> - a list of order structures

See

ParamTypeRequiredDescription
symbolstringYesunified market symbol of the market orders were made in
sinceintNothe earliest time in ms to fetch orders for
limitintNothe maximum number of order structures to retrieve
paramsobjectNoextra parameters specific to the exchange API endpoint
params.clientOrderIdsArray<string>Noan array of client order ids
params.generationintNoonly generation 2 is supported if you want to use the API generation 1 or 2, default is 2
params.twapboolNoif you want to fetch generation 2 twap orders
bithumb.fetchClosedOrders (symbol, since?, limit?, params?)

fetchCanceledOrders

fetches information on multiple canceled orders made by the user

Kind: instance method of bithumb
Returns: Array<object> - a list of order structures

See

ParamTypeRequiredDescription
symbolstringYesunified market symbol of the market the orders were made in
sinceintNothe earliest time in ms to fetch orders for
limitintNothe maximum number of order structures to retrieve
paramsobjectNoextra parameters specific to the exchange API endpoint
params.clientOrderIdsArray<string>Noan array of client order ids
params.generationintNoonly generation 2 is supported if you want to use the API generation 1 or 2, default is 2
params.twapboolNoif you want to fetch generation 2 twap orders
bithumb.fetchCanceledOrders (symbol, since?, limit?, params?)

cancelOrder

cancels an open order

Kind: instance method of bithumb
Returns: object - An order structure

See

ParamTypeRequiredDescription
idstringYesorder id
symbolstringNounified symbol of the market the order was made in
paramsobjectNoextra parameters specific to the exchange API endpoint
params.clientOrderIdstringNothe clientOrderId of the order, alternative to using the order id
params.generationintNoif you want to use the API generation 1 or 2, default is 2
params.twapboolNoif you want to cancel a generation 2 twap order
bithumb.cancelOrder (id, symbol?, params?)

cancelOrders

cancel multiple orders

Kind: instance method of bithumb
Returns: Array<object> - a list of order structures

See: https://apidocs.bithumb.com/reference/%EB%8B%A4%EA%B1%B4-%EC%A3%BC%EB%AC%B8-%EC%B7%A8%EC%86%8C-%EC%A0%91%EC%88%98

ParamTypeRequiredDescription
idsArray<string>Yesorder ids
symbolstringNounified market symbol
paramsobjectNoextra parameters specific to the exchange API endpoint
params.clientOrderIdsArray<string>Noalternative to ids, array of client order ids
params.generationintNoonly generation 2 is supported if you want to use the API generation 1 or 2, default is 2
bithumb.cancelOrders (ids, symbol?, params?)

withdraw

make a withdrawal

Kind: instance method of bithumb
Returns: object - a transaction structure

See

ParamTypeRequiredDescription
codestringYesunified currency code
amountfloatYesthe amount to withdraw
addressstringYesthe address to withdraw to
tagstringYesthe secondary withdrawal destination address
paramsobjectNoextra parameters specific to the exchange API endpoint
params.generationintNoif you want to use the API generation 1 or 2, default is 2
params.networkstringNothe blockchain network to withdraw on, for example BTC or DASH
params.destinationstringNosecondary address destination for specific currencies, can alternatively use the tag argument
params.exchange_namestringNowithdrawal exchange name
params.receiver_typestringNoeither personal or corporation
params.ko_namestringNogeneration 1 only the receiver name in korean
params.en_namestringNogeneration 1 only the receiver name in english
params.receiver_ko_namestringNogeneration 2 only the personal receiver name in korean
params.receiver_en_namestringNogeneration 2 only the personal receiver name in english
params.receiver_corp_ko_namestringNogeneration 2 only the corporation receiver name in korean
params.receiver_corp_en_namestringNogeneration 2 only the corporation receiver name in english
params.two_factor_typestringNogeneration 2 KRW withdraw only the two factor type, for example kakao
bithumb.withdraw (code, amount, address, tag, params?)

fetchWithdrawalWhitelist

fetch a list of allowed withdrawal addresses

Kind: instance method of bithumb
Returns: Array<object> - a list response from the exchange

See: https://apidocs.bithumb.com/reference/%EC%B6%9C%EA%B8%88-%ED%97%88%EC%9A%A9-%EC%A3%BC%EC%86%8C-%EB%A6%AC%EC%8A%A4%ED%8A%B8-%EC%A1%B0%ED%9A%8C

ParamTypeRequiredDescription
paramsobjectNoextra parameters specific to the exchange API endpoint
params.generationintNoonly generation 2 is supported if you want to use the API generation 1 or 2, default is 2
bithumb.fetchWithdrawalWhitelist (params?)

fetchWithdrawal

fetch data on a currency withdrawal via the withdrawal id

Kind: instance method of bithumb
Returns: object - 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

ParamTypeRequiredDescription
idstringYeswithdrawal id
codestringNothe currency code
paramsobjectNoextra parameters specific to the exchange API endpoint
params.txidstringNothe transaction id for the withdrawal
params.generationintNoonly generation 2 is supported if you want to use the API generation 1 or 2, default is 2
bithumb.fetchWithdrawal (id, code?, params?)

fetchWithdrawals

fetch all withdrawals made from an account

Kind: instance method of bithumb
Returns: Array<object> - a list of transaction structures

See

ParamTypeRequiredDescription
codestringNounified currency code
sinceintNothe earliest time in ms to fetch withdrawals for
limitintNothe maximum number of withdrawals to retrieve
paramsobjectNoextra parameters specific to the exchange API endpoint
params.generationintNoonly generation 2 is supported if you want to use the API generation 1 or 2, default is 2
params.pageintNothe number of pages to return, default is 1
params.statestringNothe withdrawal state, either PROCESSING, DONE or CANCELLED
params.order_bystringNoeither asc or desc, desc is the default
params.uuidsArray<string>Noan array of uuid strings
params.txidsArray<string>Noan array of txid strings
bithumb.fetchWithdrawals (code?, since?, limit?, params?)

fetchDeposit

fetch information on a deposit

Kind: instance method of bithumb
Returns: object - 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

ParamTypeRequiredDescription
idstringYesdeposit id
codestringYesunified currency code
paramsobjectNoextra parameters specific to the exchange API endpoint
params.txidstringNothe transaction id for the deposit
params.generationintNoonly generation 2 is supported if you want to use the API generation 1 or 2, default is 2
bithumb.fetchDeposit (id, code, params?)

fetchDeposits

fetch all deposits made to an account

Kind: instance method of bithumb
Returns: Array<object> - a list of transaction structures

See

ParamTypeRequiredDescription
codestringYesunified currency code
sinceintNothe earliest time in ms to fetch deposits for
limitintNothe maximum number of deposits to retrieve
paramsobjectNoextra parameters specific to the exchange API endpoint
params.generationintNoonly generation 2 is supported if you want to use the API generation 1 or 2, default is 2
params.pageintNothe number of pages to return, default is 1
params.statestringNothe deposit state, for KRW, PROCESSING, ACCEPTED or CANCELLED, for others, DEPOSIT_PROCESSING, DEPOSIT_ACCEPTED, DEPOSIT_CANCELLED
params.order_bystringNoeither asc or desc, desc is the default
params.uuidsArray<string>Noan array of uuid strings
params.txidsArray<string>Noan array of txid strings
bithumb.fetchDeposits (code, since?, limit?, params?)

createDepositAddress

create a currency deposit address

Kind: instance method of bithumb
Returns: object - an address structure

See: https://apidocs.bithumb.com/reference/%EC%9E%85%EA%B8%88-%EC%A3%BC%EC%86%8C-%EC%83%9D%EC%84%B1-%EC%9A%94%EC%B2%AD

ParamTypeRequiredDescription
codestringYesunified currency code of the currency for the deposit address
paramsobjectNoextra parameters specific to the exchange API endpoint
params.generationintNoonly generation 2 is supported if you want to use the API generation 1 or 2, default is 2
params.networkstringNothe blockchain network to create a deposit address on
bithumb.createDepositAddress (code, params?)

fetchDepositAddress

fetch the deposit address for a currency associated with this account

Kind: instance method of bithumb
Returns: object - an address structure

See: https://apidocs.bithumb.com/reference/%EA%B0%9C%EB%B3%84-%EC%9E%85%EA%B8%88-%EC%A3%BC%EC%86%8C-%EC%A1%B0%ED%9A%8C

ParamTypeRequiredDescription
codestringYesunified currency code
paramsobjectNoextra parameters specific to the exchange API endpoint
params.generationintNoonly generation 2 is supported if you want to use the API generation 1 or 2, default is 2
params.networkstringNonetwork for fetch deposit address
bithumb.fetchDepositAddress (code, params?)

fetchDepositAddresses

fetch deposit addresses for multiple currencies (when available)

Kind: instance method of bithumb
Returns: object - a dictionary of address structures indexed by currency code

See: https://apidocs.bithumb.com/reference/%EC%A0%84%EC%B2%B4-%EC%9E%85%EA%B8%88-%EC%A3%BC%EC%86%8C-%EC%A1%B0%ED%9A%8C

ParamTypeRequiredDescription
codesArray<string>Nolist of unified currency codes, default is undefined (all currencies)
paramsobjectNoextra parameters specific to the exchange API endpoint
params.generationintNoonly generation 2 is supported if you want to use the API generation 1 or 2, default is 2
bithumb.fetchDepositAddresses (codes?, params?)

watchTicker

watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market

Kind: instance method of bithumb
Returns: object - a ticker structure

See

ParamTypeRequiredDescription
symbolstringYesunified symbol of the market to fetch the ticker for
paramsobjectNoextra parameters specific to the exchange API endpoint
params.tickTypesstringNogeneration 1 only, the tick type to subscribe to, '24H' by default (30M, 1H, 12H, 24H, MID)
params.generationintNoif you want to use the API generation 1 or 2, default is 2
bithumb.watchTicker (symbol, params?)

watchTickers

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 bithumb
Returns: object - a dictionary of ticker structures indexed by market symbols

See

ParamTypeRequiredDescription
symbolsArray<string>Yesunified symbols of the markets to fetch tickers for
paramsobjectNoextra parameters specific to the exchange API endpoint
params.tickTypesstringNogeneration 1 only, the tick type to subscribe to, '24H' by default (30M, 1H, 12H, 24H, MID)
params.generationintNoif you want to use the API generation 1 or 2, default is 2
bithumb.watchTickers (symbols, params?)

watchOrderBook

watches information on open orders with bid (buy) and ask (sell) prices, volumes and other data

Kind: instance method of bithumb
Returns: object - an order book structure

See

ParamTypeRequiredDescription
symbolstringYesunified symbol of the market to fetch the order book for
limitintNothe maximum amount of order book entries to return
paramsobjectNoextra parameters specific to the exchange API endpoint
params.generationintNoif you want to use the API generation 1 or 2, default is 2
bithumb.watchOrderBook (symbol, limit?, params?)

watchTrades

get the list of most recent trades for a particular symbol

Kind: instance method of bithumb
Returns: Array<object> - a list of trade structures

See

ParamTypeRequiredDescription
symbolstringYesunified symbol of the market to fetch trades for
sinceintNotimestamp in ms of the earliest trade to fetch
limitintNothe maximum amount of trades to fetch
paramsobjectNoextra parameters specific to the exchange API endpoint
params.generationintNoif you want to use the API generation 1 or 2, default is 2
bithumb.watchTrades (symbol, since?, limit?, params?)

watchBalance

watch balance and get the amount of funds available for trading or funds locked in orders

Kind: instance method of bithumb
Returns: object - a balance structure

See: https://apidocs.bithumb.com/v2.1.5/reference/%EB%82%B4-%EC%9E%90%EC%82%B0-myasset

ParamTypeRequiredDescription
paramsobjectNoextra parameters specific to the exchange API endpoint
params.generationintNoonly generation 2 is supported if you want to use the API generation 1 or 2, default is 2
bithumb.watchBalance (params?)

watchOrders

watches information on multiple orders made by the user

Kind: instance method of bithumb
Returns: Array<object> - a list of order structures

See: https://apidocs.bithumb.com/v2.1.5/reference/%EB%82%B4-%EC%A3%BC%EB%AC%B8-%EB%B0%8F-%EC%B2%B4%EA%B2%B0-myorder

ParamTypeRequiredDescription
symbolstringYesunified market symbol of the market orders were made in
sinceintNothe earliest time in ms to fetch orders for
limitintNothe maximum number of order structures to retrieve
paramsobjectNoextra parameters specific to the exchange API endpoint
params.codesArray<string>Nomarket codes to filter orders
params.generationintNoonly generation 2 is supported if you want to use the API generation 1 or 2, default is 2
bithumb.watchOrders (symbol, since?, limit?, params?)

On this page