GithubHelp home page GithubHelp logo

bithumb.pro-official-api-docs's Introduction

Official Documentation for the Bithumb.pro APIs.

  • Support rest and websocket api .
  • The use of any other endpoints, parameters, or payloads, etc. is not supported; use them at your own risk and with no guarantees.
Name Description
rest-api.md Details on the Rest API
ws-api.md Details on the Websocket API

bithumb.pro-official-api-docs's People

Contributors

bithumb-pro avatar godlikers avatar lichenjelly avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

bithumb.pro-official-api-docs's Issues

Problem Creating and Order over the Rest API

I wanted to ask on an issue I have when using the API, I believe I'm following the detailed spec found here.

Still I get the following message, which I find very cryptic "order params error". As mentioned before, I believe I'm following the spec properly, as shown in the snippet below, which refers to the input for the requests signature

apiKey=MYKEYHERE&price=-1&quantity=0.9&side=buy&symbol=GTH-USDT&timestamp=1602640950261&type=market

Is there something I'm doing wrong? My signature process works for other private functions such as assetList.

I would appreciate a response, thank you!

20053 error

How to solve 20053 error when place order? What and where I should sign?

active orders trouble

Hello. when requesting open orders through the API, the exchange gives us an error
2020/02/29 01: 40: 09.557 [E] [trader.go: 303] get active orders on "got false result for " BTC-USDT \ "active orders req; code: 9002, message: verifySignature failed": %! s (MISSING)
This error was not yesterday. Why does this error come out?

API문의 입니다.

REST API를 이용하려 하는데 소유코인 요청, 거래등의 API사용시 요청 예제 소스가 있을까요?

자바, 파이썬 예제는 개발 환경이 맞지 않아 실행할수 없는 상태이며 현재 저희는 PHP를 이용하려고 합니다.

현재 등록된 소스 이외의 예제 소스가 있다면 알려주시기 바랍니다.

감사합니다.

Get wallet address

I'd like to find out the user's btc wallet address.

From Bithumb, it could be imported through /info/wallet_address.

Thanks.

verifySignature failed

following url: https://global-openapi.bithumb.pro/openapi/v1/spot/assetList

same problem(#16), everything is lowercase

apiKey=XXX&assetType=spot&timestamp=1572362450281&version=v1.0.0

hmac.new(byte_key, query_string.encode('utf-8'), hashlib.sha256).hexdigest().lower()

body:
data = {
'apiKey': API_KEY,
'assetType': 'spot',
'timestamp': timestamp,
'version': 'v1.0.0'
'signature': signature
}
{"data":null,"code":"9002","msg":"verifySignature failed","timestamp":1572362451236}

no websocket api for spot trading and poor english

no websocket api for spot trading, and so many mismatches between the document and the code. For example, the doc didn't mention bizCode while this field is required.. The API sucks, and the webpage lags, you have lots of work to do.

transfer API, code 9005

I'm using transfer API, and I got this return:
{"data":null,"code":"9005","msg":"参数错误","timestamp":1574889100536}

But in the api document, it shows:
9005 | key expired

So what does code 9005 really mean?

My parameters for transfer is:
[coinType:ETH from:SPOT quantity:0.1 to:WALLET]
Same as requied in doc, why did I get an error?
Other APIs like withdraw, balance, or trade are all works fine. I only got error from this transfer API.

Thank you

market order didn't work

So many bugs...

{"apiKey":"******","bizCode":"placeOrder","msgNo":"2596996162","price":"-1","quantity":"0.0015535","side":"buy","signature":"**********","symbol":"BTC-USDT","timestamp":"1563185756313","type":"market"}

always returns 20000下单参数错误

[query virtual coin asset account] API Error

uri : {requestUrl}/spot/assetList

There is something strange errors, when I try to use above API.

When I request API With 4 parameters(apiKey, msgNo, timestamp, version) and 1 signature(signature) with HMACSHA256 encoded, I got a "Success" message.

But I added "assetType" parameter and request API make a "verifySignature failed" error.

I don't think I made a mistake.... Could you tell me what's wrong with me?

below is the text to be encoded with hmacsha256
apiKey=XXXXX&msgNo=1568293611200&timestamp=1568293611200&version=V1.0.0&assetType=spot

below is the json to be sent as a parameters
{
"apiKey": "XXXXX",
"msgNo": "1568293611200",
"timestamp": "1568293611200",
"version": "V1.0.0",
"assetType": "spot",
"signature": "bad4030dd19f131878212055c4460d6fc95d90e1828d9b612768a7bb61e533ac"
}

I don;t understand... if i remove "assetType" parameter, Why It works.....and Why above request was not working.....

"missing parameter" everytime

Hi
I have a problem with bithumb api. Every time I make a request I recieve something like:

b'{"data":null,"code":"9000","msg":"missing parameter","timestamp":1572472388691}'

Here is example of my code:

def __getbalances(self, type):
	params = {
	    'assetType': type
	}
	return self.__query('spot/assetList', 'POST', True, params=params)

def __query(self, path, method, signed=False, params={}, **kwargs):
	params = dict(params)
	url = 'https://global-openapi.bithumb.pro/openapi/v1/' + path

	if signed:
	headers = {}
	nonce = str(int(time.time()) * 1000)

	signParams = OrderedDict()
	# signParams.update(params)
	signParams['apiKey'] = self._key
	signParams['msgNo'] = str(nonce)
	signParams['timestamp'] = nonce
	signParams['version'] = 'V1.0.0'
	message = urllib.parse.urlencode(signParams)

	signature = hmac.new(self._secret, message.encode('utf-8'), hashlib.sha256).hexdigest()

	params.update(signParams)
	params['signature'] = signature
	params = json.dumps(params, separators=(',', ':'))

	headers.update({
	    'Content-Type': 'application/json'
	})

	return self._request(url, method, headers, params, useProxy=False, **kwargs)

Am I doing something wrong?

API

Good afternoon! I created an API key but for some reason it does not give remote access to trading what should I do?

missing spot order updates via websocket

I've subed the private topic ORDER, when a order is finished, no updates received. Moreover, it discards order updates (randomly? I don't know). You guys push me to spam the orderDetail REST API, then ban me for too many requests. Do you guys test the API completely? Let traders do the testing work for you?

Isse Connecting via NodeJS - Error: 9006 "no-server"

Hi,

I am having issues authenticating, I am using NodeJS to write a API wrapper, the problem I am facing is that I don't know if how I am connecting is correct.

Here is my code:

const axios = require('axios')
const https = require('https')
const crypto = require('crypto')
const querystring = require('querystring')

class Bithumb {
constructor(key, secret) {
this.apiKey = key
this.secret = secret
this.API_URL = 'http://global-openapi.bithumb.pro/openapi/v1'
this.version = 'V1.0.0'
}
// ----------------------------------------------------------------
// PUBLIC

async _public(endpoint, parameters) {
// const hmacSignature = Buffer.from(crypto.createHmac('sha512', this.secret).update(requestSignature).digest('hex')).toString('base64')

const options = {
  method: 'POST',
  url: this.API_URL + endpoint,
  params: parameters,
  auth: {
    'apiKey': this.apiKey,
    // 'timestamp': _nonce,
    // 'signature': hmacSignature,
    // 'msgNo': _nonce
  }
}
const response = await axios(options)
  .then(response => (response.data))
return response

}

async getTicker(currency) {
return this._public('/spot/ticker', currency)
}

async getOrderbook(currency) {
return this._public('/spot/orderBook', currency)
}

async getServerTime() {
return this._public('/serverTime')
}
// async getRecentTransactions (currency) {
// return this._public('/public/recent_transactions', currency)
// }

// ----------------------------------------------------------------
// PRIVATE AUTHENTICATION
async _private(endpoint, parameters) {
if (!parameters) {
parameters = {}
}

let toDelete = []
for (let key in parameters) {
  if (!parameters[key]) {
    toDelete.push(key)
  }
}
for (let i = 0; i < toDelete.length; i++) {
  delete parameters[toDelete[i]]
}

parameters.endPoint = endpoint


// get Servertime
const serverTime = await getServerTime(this.API_URL)
.then(response => (response))
// then createSignatureString
const signatureString = await createSignatureString(this.apiKey, serverTime, this.API_URL, endpoint)

async function createSignatureString(apiKey, serverTime, apiURL, endpoint) {
  //string json = apikey&msgNo&timestamp&version
  const now = serverTime
  const ss = `${apiURL}${endpoint}?apiKey=${apiKey}&assetType=spot&msgNo=${now}&timestamp=${now}`
  console.log(ss)
  return ss
}
const apiSignature = Buffer.from(crypto.createHmac('sha256', this.secret).update(signatureString).digest('hex')).toString('base64')

async function getServerTime(apiUrl) {
  const timestamp = await axios({
    method: 'GET',
    url: apiUrl + '/serverTime'
  })
  .then(response => (response))
  .catch(error => console.log(error))
  console.log('timestamp is', timestamp.data.timestamp);
  return timestamp.data.timestamp
}
// then create options from all parameters
const options = {
  method: 'POST',
  url: this.API_URL + endpoint,
  params: {
    apiKey: this.apiKey,
    assetType:'spot',
    msgNo: serverTime,
    timestamp: serverTime,
    signature: apiSignature
  },
  headers: {
    'content-type': 'application/json'
  },
}

const response = await axios(options)
  .then(response => (response))
  .catch(error => console.log(error))

return response

}

async marketSell(symbol, type, side, price, quantity) {
return this._private('/trade/placeOrder', { symbol, type, side, price, quantity })
}

async getAccount() {
return this._private('/spot/assetList')
}

async getServerTime(){
return this._private('/serverTime')
}

}

module.exports = Bithumb

invalid apikey error code 10002

url = 'wss://global-api.bithumb.pro/message/realtime'

def signature(API_KEY, timestamp, API_SECRET):
request_path = "/message/realtime"
signature_text = request_path + timestamp + API_KEY
sign = hmac.new( signature_text.encode('utf8'), API_SECRET.encode(), hashlib.sha256)
return sign.hexdigest()

timestamp = str(round(time.time())*1000)
sign = signature(API_KEY,timestamp,API_SECRET)
data = {
"apiKey" : API_KEY,
"apiTimestamp" : timestamp,
"apiSignature" : sign
}
connection.sendMessage(json.dumps(data).encode('utf8'))

print("on_open: {}".format(connection.transport)

when i try this script i get an error {error : 10000, msg: no message}

if i try below method
data = {
"cmd" : "authKey",
"args" : [API_KEY,timestamp,sign]
}

i get error {error: 10002, msg: invalid apikey}

when i tried same keys using ccxt i was able to fetch balance and orders . can some one help me with this please

9002 on spot placeOrder

I am getting 9002 "verifySignature failed" error on spot/placeOrder i can run spot/openOrders without any error but in placeOrder i am getting error. I cant find whereis the error. I am using C# for doing this.

My string for sign on placeOrder :
apiKey=MyApiKey&msgNo=1582571405503&symbol=CZZ-USDT&type=limit&side=buy&price=0.01&quantity=100&timestamp=1582571405503&version=v1.0.0

MyJson for placeOrder :
{"apiKey":"MyApiKey", "msgNo":"1582571405503", "symbol":"CZZ-USDT", "type":"limit", "side":"buy", "price":"0.01", "quantity":"100", "timestamp":1582571405503, "version":"v1.0.0", "signature":"HMACSHA256lowercaseHexOfStringAbove"}

my string for sign on openOrders :
apiKey=MyApiKey&msgNo=1582571796956&symbol=CZZ-USDT&timestamp=1582571796956&version=v1.0.0

My json for openOrders :
{"apiKey":"MyApiKey","msgNo":"1582571796956","symbol":"CZZ-USDT","timestamp":1582571796956,"version":"v1.0.0","signature":"HMACSHA256lowercaseHexOfStringAbove"}

Troubles with placing order

Error code:[20044] quantity accuracy is wrong for placing order
Params: {'symbol': 'BTC-USDT', 'type': 'limit', 'side': 'sell', 'price': '9423.36', 'quantity': '0.00517446'}
Can you help me?

Asset change notification for spot account

I noticed the doc says you can receive contract asset changes by subscribing CONTRACT_ASSET, is there equivalent topic for spot? I've already tried ASSET, it returns No topic

API ключи

Добрый день! Создал API ключ но он почему то не даёт удалённый доступ к торговле что нужно сделать?

Cant place buy/sell orders with BIP/BTC, BIP/USDT

Hello, Bithumb.

I cant place an order with tickers BIP/BTC and BIP/USDT. With other tickers everything works fine. But tickers list has BIP tickers and i can get market depth and other data. But i cant place buy/sell orders.

Does api support BIP pairs?

issue with 'verifySignature failed'

hi there, I have a issue when I try to make POST request to (https://global-openapi.bithumb.pro/openapi/v1) using JavaScript

first of all I get some params

var api = "3e552699dccebd747936c50a7***"
var msgNo = Math.floor(Math.random() * 100)
var timestamp = Date.now()
var secret = "42720b96a97dfdd2c582ba34f5f8cefe1f48329860***"

then I make ugly-handy string like this

var presignature = 'api=' + api + '&msgNo=' + msgNo + '&timestamp=' + timestamp + '&version=v1.0.0'

then I generate HmacSHA256 hash, for this part I use this thing https://www.jokecamp.com/blog/examples-of-creating-base64-hashes-using-hmac-sha256-in-different-languages/#js

var hash = CryptoJS.HmacSHA256(presignature, secret);
var signature = CryptoJS.enc.Base64.stringify(hash).toLowerCase();

in the end I make request

const rawResponse = await fetch('https://global-openapi.bithumb.pro/openapi/v1/spot/assetList?assetType=wallet' , {
    method: 'POST',
    headers: {
        'Content-Type': 'application/json'
    },
    body: JSON.stringify({
        apiKey: api,
        msgNo: msgNo,
        timestamp: timestamp,
        version: "v1.0.0",
        signature: signature
    })
});
const content = await rawResponse.json();

after all of this moves I'll get error in response

{"data":null,"code":"9002","msg":"verifySignature failed","timestamp":1590096941474,"startTime":null}

help me please %_%

order book is in chaos now

Here is LUNA-USDT's websocket order book:

2020/02/20 08:19:17 {"code":"00006","data":{"b":[["0.2182000000","39.300000"],["0.2180000000","2237.000000"],["0.2178000000","34.520000"],["0.2175000000","2535.690000"],["0.2173000000","38.140000"],["0.2172000000","36.670000"],["0.2171000000","34.210000"],["0.2170000000","2537.900000"],["0.2169000000","75.470000"],["0.2168000000","37.750000"],["0.2166000000","75.440000"],["0.2165000000","2500.000000"],["0.2161000000","71.890000"],["0.2160000000","2540.570000"],["0.2157000000","36.040000"],["0.2155000000","2500.000000"],["0.2150000000","2500.000000"],["0.2145000000","2500.000000"],["0.2140000000","2500.000000"],["0.2130000000","2500.000000"],["0.2125000000","5000.000000"],["0.2120000000","2500.000000"],["0.2110000000","2500.000000"],["0.2103000000","10000.000000"],["0.2100000000","2500.000000"],["0.2075000000","1312.910000"],["0.2047000000","79.070000"],["0.2028000000","1001.000000"],["0.2000000000","5000.000000"],["0.1990000000","658.510000"],["0.1985000000","660.160000"],["0.1980000000","441.220000"],["0.1975000000","589.780000"],["0.1970000000","788.370000"],["0.1937000000","80.430000"],["0.1828000000","83.250000"],["0.1827000000","137.420000"],["0.1718000000","394.440000"],["0.1717000000","209.160000"],["0.1607000000","412.630000"],["0.1600000000","1351.330000"],["0.1497000000","279.950000"],["0.1387000000","281.920000"],["0.1277000000","402.510000"],["0.1167000000","479.530000"],["0.1057000000","459.060000"],["0.0947000000","422.140000"],["0.0837000000","466.020000"],["0.0727000000","459.360000"],["0.0617000000","229.470000"],["0.0507000000","279.900000"]],"s":[["0.2207000000","78.080000"],["0.2209000000","41.010000"],["0.2220000000","87.460000"],["0.2222000000","33.420000"],["0.2224000000","39.730000"],["0.2225000000","35.590000"],["0.2226000000","52.670000"],["0.2233000000","33.320000"],["0.2235000000","37.340000"],["0.2236000000","70.600000"],["0.2246000000","35.280000"],["0.2248000000","39.910000"],["0.2249000000","35.840000"],["0.2250000000","41.830000"],["0.2258000000","40.300000"],["0.2259000000","39.080000"],["0.2262000000","40.660000"],["0.2269000000","35.770000"],["0.2287000000","101.490000"],["0.2290000000","65.560000"],["0.2298000000","83.190000"],["0.2306000000","36.220000"],["0.2308000000","105.860000"],["0.2310000000","35.240000"],["0.2314000000","76.170000"],["0.2315000000","36.600000"],["0.2326000000","38.130000"],["0.2329000000","36.450000"],["0.2330000000","38.560000"],["0.2331000000","86.540000"],["0.2332000000","33.130000"],["0.2336000000","34.820000"],["0.2341000000","38.150000"],["0.2343000000","33.100000"],["0.2345000000","38.610000"],["0.2373000000","65.920000"],["0.2376000000","33.440000"],["0.2379000000","34.550000"],["0.2390000000","123.200000"],["0.2392000000","63.150000"],["0.2394000000","47.540000"],["0.2395000000","33.380000"],["0.2397000000","40.860000"],["0.2398000000","41.740000"],["0.2400000000","32.680000"],["0.2401000000","72.700000"],["0.2402000000","39.110000"],["0.2408000000","72.020000"],["0.2409000000","222.240000"],["0.2410000000","219.090000"],["0.2411000000","103.010000"],["0.2412000000","144.220000"],["0.2413000000","137.260000"],["0.2414000000","147.220000"],["0.2415000000","102.450000"],["0.2416000000","77.060000"],["0.2417000000","184.960000"],["0.2418000000","265.680000"],["0.2419000000","41.400000"],["0.2420000000","114.860000"],["0.2421000000","289.710000"],["0.2422000000","109.770000"],["0.2423000000","78.370000"],["0.2424000000","146.730000"],["0.2425000000","113.720000"],["0.2426000000","69.410000"],["0.2427000000","43.200000"],["0.2428000000","74.180000"],["0.2429000000","157.600000"],["0.2430000000","69.750000"],["0.2431000000","37.630000"],["0.2432000000","40.900000"],["0.2433000000","143.730000"],["0.2435000000","76.680000"],["0.2436000000","105.950000"],["0.2437000000","117.370000"],["0.2438000000","157.580000"],["0.2439000000","112.030000"],["0.2440000000","163.620000"],["0.2441000000","72.430000"],["0.2442000000","149.160000"],["0.2443000000","37.530000"],["0.2444000000","37.380000"],["0.2445000000","33.810000"],["0.2446000000","72.300000"],["0.2447000000","70.620000"],["0.2449000000","111.920000"],["0.2451000000","36.460000"],["0.2452000000","80.820000"],["0.2453000000","157.510000"],["0.2454000000","385.410000"],["0.2456000000","115.920000"],["0.2458000000","80.340000"],["0.2459000000","89.920000"],["0.2460000000","41.490000"],["0.2462000000","41.140000"],["0.2464000000","33.940000"],["0.2466000000","77.460000"],["0.2467000000","41.060000"],["0.2468000000","41.580000"],["0.2469000000","35.280000"],["0.2470000000","90.400000"],["0.2472000000","69.920000"],["0.2473000000","35.230000"],["0.2475000000","88.430000"],["0.2477000000","40.080000"],["0.2478000000","35.150000"],["0.2481000000","73.680000"],["0.2483000000","82.010000"],["0.2485000000","33.420000"],["0.2486000000","72.310000"],["0.2487000000","81.820000"],["0.2488000000","34.180000"],["0.2489000000","34.160000"],["0.2490000000","114.740000"],["0.2495000000","114.570000"],["0.2496000000","38.330000"],["0.2498000000","34.380000"],["0.2499000000","41.050000"],["0.2500000000","107.240000"],["0.2501000000","39.650000"],["0.2503000000","35.100000"],["0.2506000000","38.940000"],["0.2509000000","37.720000"],["0.2510000000","33.860000"],["0.2512000000","72.410000"],["0.2514000000","33.490000"],["0.2515000000","67.400000"],["0.2517000000","40.180000"],["0.2520000000","36.860000"],["0.2523000000","40.420000"],["0.2531000000","39.030000"],["0.2534000000","89.290000"],["0.2535000000","37.590000"],["0.2537000000","160.380000"],["0.2543000000","137.360000"],["0.2544000000","35.190000"],["0.2550000000","131.830000"],["0.2555000000","61.400000"],["0.2556000000","90.680000"],["0.2557000000","132.190000"],["0.2558000000","203.810000"],["0.2559000000","446.670000"],["0.2560000000","278.730000"],["0.2561000000","420.410000"],["0.2562000000","334.070000"],["0.2568000000","69.800000"],["0.2571000000","40.960000"],["0.2576000000","33.850000"],["0.2577000000","39.850000"],["0.2578000000","41.290000"],["0.2580000000","70.690000"],["0.2581000000","83.660000"],["0.2582000000","40.840000"],["0.2583000000","33.510000"],["0.2584000000","33.020000"],["0.2585000000","38.010000"],["0.2586000000","33.060000"],["0.2587000000","40.020000"],["0.2588000000","35.560000"],["0.2589000000","38.620000"],["0.2591000000","81.860000"],["0.2592000000","74.940000"],["0.2593000000","75.400000"],["0.2594000000","111.620000"],["0.2595000000","83.650000"],["0.2596000000","38.980000"],["0.2604000000","71.680000"],["0.2605000000","110.340000"],["0.2606000000","35.650000"],["0.2607000000","80.580000"],["0.2608000000","78.070000"],["0.2610000000","37.350000"],["0.2611000000","33.970000"],["0.2612000000","124.920000"],["0.2613000000","120.370000"],["0.2614000000","119.150000"],["0.2615000000","82.680000"],["0.2616000000","60.080000"],["0.2617000000","174.160000"],["0.2618000000","67.540000"],["0.2619000000","38.740000"],["0.2620000000","39.600000"],["0.2625000000","37.510000"],["0.2628000000","41.000000"],["0.2629000000","37.100000"],["0.2630000000","75.810000"],["0.2631000000","39.030000"],["0.2640000000","35.920000"],["0.2641000000","40.970000"],["0.2643000000","34.780000"],["0.2650000000","40.260000"],["0.2651000000","37.270000"],["0.2657000000","67.370000"],["0.2659000000","491.500000"],["0.2662000000","34.320000"],["0.2664000000","449.500000"],["0.2665000000","370.640000"],["0.2667000000","355.600000"],["0.2668000000","268.990000"],["0.2670000000","83.120000"],["0.2671000000","36.030000"],["0.2672000000","38.540000"],["0.2673000000","71.930000"],["0.2690000000","36.710000"],["0.2692000000","89.060000"],["0.2702000000","39.950000"],["0.2715000000","33.360000"],["0.2724000000","74.030000"],["0.2726000000","50.950000"],["0.2732000000","40.110000"],["0.2733000000","37.580000"],["0.2742000000","35.200000"],["0.2748000000","36.040000"],["0.2749000000","35.780000"],["0.2751000000","35.890000"],["0.2755000000","73.030000"],["0.2757000000","34.570000"],["0.2762000000","36.610000"],["0.2767000000","33.090000"],["0.2771000000","329.850000"],["0.2775000000","35.170000"],["0.2778000000","76.690000"],["0.2782000000","93.970000"],["0.2783000000","62.390000"],["0.2789000000","55.900000"],["0.2797000000","40.080000"],["0.2800000000","33.600000"],["0.2801000000","40.900000"],["0.2802000000","119.270000"],["0.2804000000","34.780000"],["0.2805000000","35.060000"],["0.2808000000","34.400000"],["0.2811000000","40.120000"],["0.2818000000","68.260000"],["0.2822000000","77.690000"],["0.2824000000","33.720000"],["0.2827000000","35.140000"],["0.2832000000","39.620000"],["0.2837000000","70.060000"],["0.2840000000","39.190000"],["0.2843000000","35.630000"],["0.2846000000","33.010000"],["0.2849000000","40.850000"],["0.2854000000","9.600000"],["0.2855000000","116.860000"],["0.2858000000","39.690000"],["0.2860000000","36.480000"],["0.2861000000","70.950000"],["0.2866000000","68.000000"],["0.2867000000","34.320000"],["0.2870000000","38.890000"],["0.2871000000","34.620000"],["0.2872000000","39.060000"],["0.2873000000","36.070000"],["0.2877000000","105.030000"],["0.2878000000","148.620000"],["0.2879000000","381.940000"],["0.2880000000","97.110000"],["0.2881000000","227.290000"],["0.2883000000","113.530000"],["0.2884000000","260.960000"],["0.2885000000","265.040000"],["0.2886000000","187.520000"],["0.2887000000","107.940000"],["0.2888000000","292.460000"],["0.2889000000","35.310000"],["0.2890000000","108.070000"],["0.2892000000","108.570000"],["0.2893000000","194.940000"],["0.2894000000","105.420000"],["0.2895000000","33.270000"],["0.2896000000","152.840000"],["0.2897000000","74.460000"],["0.2898000000","41.600000"],["0.2899000000","73.970000"],["0.2900000000","33.730000"],["0.2901000000","106.810000"],["0.2902000000","39.320000"],["0.2903000000","112.760000"],["0.2904000000","80.460000"],["0.2905000000","41.690000"],["0.2906000000","111.190000"],["0.2907000000","35.670000"],["0.2908000000","113.570000"],["0.2909000000","38.670000"],["0.2910000000","68.950000"],["0.2911000000","33.650000"],["0.2912000000","75.470000"],["0.2913000000","76.620000"],["0.2914000000","147.630000"],["0.2916000000","39.230000"],["0.2917000000","34.560000"],["0.2918000000","67.800000"],["0.2919000000","105.930000"],["0.2920000000","71.970000"],["0.2921000000","75.160000"],["0.2922000000","161.750000"],["0.2923000000","69.090000"],["0.2924000000","108.360000"],["0.2925000000","180.160000"],["0.2926000000","112.710000"],["0.2927000000","72.130000"],["0.2929000000","113.060000"],["0.2930000000","41.420000"],["0.2931000000","39.770000"],["0.2932000000","81.860000"],["0.2933000000","39.020000"],["0.2934000000","41.770000"],["0.2935000000","39.530000"],["0.2936000000","116.720000"],["0.2937000000","34.320000"],["0.2939000000","41.980000"],["0.2941000000","40.940000"],["0.2944000000","41.690000"],["0.2952000000","39.340000"],["0.2955000000","40.660000"],["0.2958000000","76.360000"],["0.2962000000","35.000000"],["0.2973000000","74.970000"],["0.2975000000","86.310000"],["0.2979000000","83.330000"],["0.2982000000","69.280000"],["0.2987000000","407.490000"],["0.2994000000","70.230000"],["0.2998000000","92.730000"],["0.3025000000","33.230000"],["0.3048000000","35.180000"],["0.3091000000","38.140000"],["0.3095000000","498.110000"],["0.3103000000","34.200000"],["0.3204000000","285.420000"],["0.3313000000","497.020000"],["0.3422000000","293.440000"],["0.3531000000","282.920000"],["0.3640000000","335.200000"],["0.3749000000","263.150000"],["0.3780000000","87.450000"],["0.3858000000","350.900000"]],"symbol":"LUNA-USDT","ver":"13597972"},"timestamp":1582157957735,"topic":"ORDERBOOK"}
2020/02/20 08:19:19 {"code":"00007","data":{"b":[["0.2188000000","0.000000"]],"s":[],"symbol":"LUNA-USDT","ver":"13429822"},"topic":"ORDERBOOK","timestamp":1582157959410}

2020/02/20 08:19:19 {"code":"00007","data":{"b":[["0.2188000000","1001.000000"]],"s":[],"symbol":"LUNA-USDT","ver":"13429823"},"topic":"ORDERBOOK","timestamp":1582157959454}
2020/02/20 08:19:19 {"code":"00007","data":{"b":[],"s":[["0.2428000000","115.380000"]],"symbol":"LUNA-USDT","ver":"13429824"},"topic":"ORDERBOOK","timestamp":1582157959680}
2020/02/20 08:19:19 {"code":"00007","data":{"b":[["0.2356000000","27.050000"]],"s":[],"symbol":"LUNA-USDT","ver":"13429825"},"topic":"ORDERBOOK","timestamp":1582157959689}
2020/02/20 08:19:19 {"code":"00007","data":{"b":[["0.2236000000","58.030000"]],"s":[],"symbol":"LUNA-USDT","ver":"13429826"},"topic":"ORDERBOOK","timestamp":1582157959878}
2020/02/20 08:19:20 {"code":"00007","data":{"b":[["0.2116000000","135.490000"]],"s":[],"symbol":"LUNA-USDT","ver":"13429827"},"topic":"ORDERBOOK","timestamp":1582157960020}
2020/02/20 08:19:20 {"code":"00007","data":{"b":[],"s":[["0.2547000000","76.650000"]],"symbol":"LUNA-USDT","ver":"13429828"},"topic":"ORDERBOOK","timestamp":1582157960096}
2020/02/20 08:19:20 {"code":"00007","data":{"b":[["0.1997000000","198.840000"]],"s":[],"symbol":"LUNA-USDT","ver":"13429829"},"topic":"ORDERBOOK","timestamp":1582157960107}
2020/02/20 08:19:20 {"code":"00007","data":{"b":[],"s":[["0.2667000000","121.390000"]],"symbol":"LUNA-USDT","ver":"13429830"},"topic":"ORDERBOOK","timestamp":1582157960217}
2020/02/20 08:19:20 {"code":"00007","data":{"b":[["0.2359000000","0.000000"]],"s":[],"symbol":"LUNA-USDT","ver":"13429831"},"topic":"ORDERBOOK","timestamp":1582157960239}
2020/02/20 08:19:20 {"code":"00007","data":{"b":[["0.2360000000","35.600000"]],"s":[],"symbol":"LUNA-USDT","ver":"13429832"},"topic":"ORDERBOOK","timestamp":1582157960288}

After ver 13429825, ask 1 < bid 1, then chaos

TXID info on Withdrawals

Hi!

Is it possible to obtain a withdrawal txid with the /withdraw endpoint? No information is returned whatsoever in the call. I see a lot of exchanges have this feature. Otherwise what would be the best way of obtaining a txid as soon as possible?

20053 error

How to solve 20053 error when place order? What and where I should sign? Explain, do not just close the issue.

Some issue with api call

trying following url: https://global-openapi.bithumb.pro/openapi/v1/spot/assetList

with request body
{
"apiKey" : "xxxx",
"assetType": "spot",
"timestamp":1569596006874,
"version":"v1.0.0",
"signature": "xxxxx"
}

keep getting response
{
"data": null,
"code": "9002",
"msg": "verifySignature failed",
"timestamp": 1569596017901
}

Could you give an example of signing process with sample api key and secret key please. I could compare my signing process.

config API returns invalid data since today

curl "https://global-openapi.bithumb.pro/openapi/v1/spot/config" returns:

{
    "data": {
        "coinConfig": [
            {
                "makerFeeRate": "0.001",
                "minTxAmt": "20",
                "name": "ABT",
                "depositStatus": "1",
                "fullName": "ArcBlock Token",
                "takerFeeRate": "0.001",
                "minWithdraw": "4",
                "withdrawFee": "4",
                "withdrawStatus": "1"
            },
            {
                "makerFeeRate": "0.001",
                "minTxAmt": "5",
                "name": "B91",
                "depositStatus": "1",
                "fullName": "B91 Token",
                "takerFeeRate": "0.001",
                "minWithdraw": "20",
                "withdrawFee": "4",
                "withdrawStatus": "1"
            },
            {
                "makerFeeRate": "0.001",
                "minTxAmt": "0.002",
                "name": "BCH",
                "depositStatus": "1",
                "fullName": "Bitcoin Cash",
                "takerFeeRate": "0.001",
                "minWithdraw": "0.01",
                "withdrawFee": "0.01",
                "withdrawStatus": "1"
            },
            {
                "makerFeeRate": "0.001",
                "minTxAmt": "0.2",
                "name": "BHD",
                "depositStatus": "1",
                "fullName": "BitcoinHD",
                "takerFeeRate": "0.001",
                "minWithdraw": "0.01",
                "withdrawFee": "0.01",
                "withdrawStatus": "1"
            },
            {
                "makerFeeRate": "0.001",
                "minTxAmt": "10",
                "name": "BOLTT",
                "depositStatus": "1",
                "fullName": "Boltt Coin",
                "takerFeeRate": "0.001",
                "minWithdraw": "30",
                "withdrawFee": "7",
                "withdrawStatus": "1"
            },
            {
                "makerFeeRate": "0.001",
                "minTxAmt": "0.0001",
                "name": "BTC",
                "depositStatus": "1",
                "fullName": "Bitcoin",
                "takerFeeRate": "0.001",
                "minWithdraw": "0.001",
                "withdrawFee": "0.001",
                "withdrawStatus": "1"
            },
            {
                "makerFeeRate": "0.001",
                "minTxAmt": "30",
                "name": "BXA",
                "depositStatus": "1",
                "fullName": "Exchange Alliance",
                "takerFeeRate": "0.001",
                "minWithdraw": "200",
                "withdrawFee": "100",
                "withdrawStatus": "1"
            },
            {
                "makerFeeRate": "0.001",
                "minTxAmt": "33",
                "name": "BZNT",
                "depositStatus": "1",
                "fullName": "Bezant",
                "takerFeeRate": "0.001",
                "minWithdraw": "200",
                "withdrawFee": "70",
                "withdrawStatus": "1"
            },
            {
                "makerFeeRate": "0.001",
                "minTxAmt": "100",
                "name": "CDS",
                "depositStatus": "1",
                "fullName": "Commerce Digital Storm",
                "takerFeeRate": "0.001",
                "minWithdraw": "20",
                "withdrawFee": "20",
                "withdrawStatus": "1"
            },
            {
                "makerFeeRate": "0.001",
                "minTxAmt": "100",
                "name": "CHR",
                "depositStatus": "1",
                "fullName": "Chromatoken",
                "takerFeeRate": "0.001",
                "minWithdraw": "50",
                "withdrawFee": "20",
                "withdrawStatus": "1"
            },
            {
                "makerFeeRate": "0.001",
                "minTxAmt": "15",
                "name": "CRO",
                "depositStatus": "1",
                "fullName": "Crypto.com Chain",
                "takerFeeRate": "0.001",
                "minWithdraw": "100",
                "withdrawFee": "20",
                "withdrawStatus": "1"
            },
            {
                "makerFeeRate": "0.001",
                "minTxAmt": "0.0075",
                "name": "DASH",
                "depositStatus": "1",
                "fullName": "Dash",
                "takerFeeRate": "0.001",
                "minWithdraw": "0.01",
                "withdrawFee": "0.002",
                "withdrawStatus": "1"
            },
            {
                "makerFeeRate": "0.001",
                "minTxAmt": "1200",
                "name": "EDN",
                "depositStatus": "1",
                "fullName": "EdenChain",
                "takerFeeRate": "0.001",
                "minWithdraw": "500",
                "withdrawFee": "200",
                "withdrawStatus": "1"
            },
            {
                "makerFeeRate": 0, <---------------------------this one
                "minTxAmt": "0",
                "name": "",
                "depositStatus": "0",
                "fullName": "",
                "takerFeeRate": 0,
                "minWithdraw": "50",
                "withdrawFee": "15",
                "withdrawStatus": "0"
            },
          ...
        ]
    },
    "code": "0",
    "msg": "success",
    "timestamp": 1565602215941
} 

Got error code 9999 when requesting '/spot/assetList'

HI. I get an error when requesting '/spot/assetList'.

Public requests are fine.

request parameters :
{'apiKey': 'not_realf_jlk21jl213jk1212132jkl3jk2l11', 'version': 'V1.0.0', 'msgNo': '', 'timestamp': 1571202541657, 'assetType': 'spot', 'signature': '2905951606597825554a137a85f4e2ce620f5ecd1e4f3aa2e3fdf85f0d1b4895'}

response:
'{"data":null,"code":"9999","msg":"system error","timestamp":1571202541845}'

What is the problem you expect?

Cancel All Orders

Hi,

It seems that a cancel all orders functionality is available in the bithumb client but not included in the API docs. Is this functionality available? Thank you for your time.

Fatal bug in websokcet order book

When I subscribe order book of BTC-USDT, the replies are as follow (timestamp is added by me):

2020/02/07 21:34:21 {"b":[["9756.8000000000","0.044985"],["9756.6000000000","0.024648"],["9756.3000000000","0.183138"],["9756.1000000000","0.273944"],["9755.8000000000","0.095392"],["9755.6000000000","0.426989"],["9755.3000000000","1.573724"],["9755.1000000000","1.294173"],["9754.6000000000","1.415908"],["9754.1000000000","2.493374"],["9754.0000000000","1.726758"],["9753.6000000000","2.472730"],["9753.5000000000","0.302039"],["9753.0000000000","2.528049"],["9752.9000000000","2.177003"],["9752.8000000000","3.490732"],["9752.4000000000","0.568442"],["9751.9000000000","1.456111"],["9751.4000000000","2.123245"],["9751.3000000000","0.349701"],["9750.8000000000","0.695952"],["9750.3000000000","0.312237"],["9749.8000000000","1.050580"],["9749.3000000000","1.596748"],["9749.1000000000","0.839609"],["9748.6000000000","0.074933"],["9748.1000000000","3.783306"],["9747.8000000000","1.352731"],["9747.6000000000","1.265206"],["9747.1000000000","0.185928"],["9746.9000000000","4.125762"],["9746.4000000000","3.893274"],["9745.9000000000","1.493246"],["9745.8000000000","0.221488"],["9745.3000000000","0.527085"],["9744.8000000000","1.043764"],["9744.3000000000","0.157803"],["9743.8000000000","1.538415"],["9743.4000000000","3.819557"],["9743.0000000000","0.427683"],["9742.5000000000","0.869369"],["9742.0000000000","0.371933"],["9741.5000000000","0.735088"],["9741.2000000000","0.199711"],["9740.7000000000","0.040051"],["9740.2000000000","3.596536"],["9740.0000000000","1.970845"],["9739.8000000000","1.470153"],["9739.3000000000","2.597309"],["9739.0000000000","0.707326"],["9738.5000000000","3.613645"],["9738.0000000000","3.839603"],["9737.5000000000","1.641251"],["9737.0000000000","0.261855"],["9736.5000000000","3.247438"],["9736.0000000000","2.360485"],["9735.5000000000","2.588038"],["9735.0000000000","3.953340"],["9734.5000000000","3.077822"],["9734.0000000000","2.206718"],["9733.5000000000","1.952227"],["9733.0000000000","2.601668"],["9732.5000000000","0.195102"],["9732.0000000000","2.194092"],["9731.5000000000","2.328750"],["9731.0000000000","0.623820"],["9730.5000000000","1.697736"],["9730.0000000000","0.649295"],["9729.5000000000","1.218902"],["9729.0000000000","1.576767"],["9728.5000000000","3.948226"],["9728.0000000000","1.675433"],["9727.5000000000","0.974341"],["9727.0000000000","1.484802"],["9726.5000000000","1.300644"],["9726.0000000000","0.659600"],["9725.5000000000","2.071650"],["9725.0000000000","3.990878"],["9724.5000000000","2.549374"],["9724.0000000000","0.716908"],["9723.5000000000","1.710044"],["9723.0000000000","1.457009"],["9722.5000000000","1.520962"],["9722.0000000000","1.050154"],["9721.5000000000","1.560686"],["9721.0000000000","3.689661"],["9720.5000000000","1.689908"],["9720.0000000000","3.828225"],["9719.5000000000","0.775683"],["9719.0000000000","1.684986"],["9718.5000000000","2.951847"],["9718.0000000000","3.445410"],["9717.5000000000","3.427180"],["9717.0000000000","1.750621"],["9716.5000000000","3.889291"],["9716.0000000000","1.887968"],["9715.5000000000","1.403417"],["9715.0000000000","2.963989"],["9714.5000000000","3.446412"],["9714.0000000000","3.948747"],["9713.5000000000","2.336027"],["9713.0000000000","3.961071"],["9712.5000000000","3.614921"],["9712.0000000000","3.065792"],["9700.0000000000","0.004318"],["9260.5000000000","0.009949"],["9101.0000000000","0.004284"],["9100.0000000000","0.479694"],["9000.4000000000","0.015225"],["9000.0000000000","0.012649"],["8916.0000000000","0.010000"],["8275.6000000000","0.052903"],["7313.6000000000","0.163999"],["6900.0000000000","0.001766"],["6848.6000000000","0.001005"],["6300.0000000000","0.001000"],["0.5000000000","6.100000"],["0.3000000000","8.002546"]],"s":[["9776.1000000000","0.363719"],["9776.5000000000","0.138898"],["9777.0000000000","0.673355"],["9777.5000000000","0.262488"],["9778.0000000000","3.848415"],["9778.2000000000","0.929015"],["9778.7000000000","2.013407"],["9778.9000000000","1.708508"],["9779.0000000000","2.836898"],["9779.4000000000","2.063151"],["9779.6000000000","1.111037"],["9780.1000000000","1.222929"],["9780.6000000000","1.488307"],["9780.9000000000","0.354354"],["9781.0000000000","0.640297"],["9781.5000000000","0.546532"],["9782.0000000000","0.294301"],["9782.5000000000","0.929948"],["9783.0000000000","0.942084"],["9783.2000000000","1.578294"],["9783.7000000000","0.198240"],["9784.0000000000","3.014889"],["9784.4000000000","1.863739"],["9784.7000000000","0.221194"],["9785.1000000000","0.417373"],["9785.6000000000","0.524963"],["9786.1000000000","0.520311"],["9786.6000000000","1.643978"],["9786.7000000000","0.309808"],["9787.0000000000","0.125686"],["9787.1000000000","3.262975"],["9787.2000000000","3.472682"],["9787.4000000000","3.293128"],["9787.8000000000","0.382934"],["9788.2000000000","3.027139"],["9788.6000000000","0.481127"],["9789.0000000000","0.163797"],["9789.4000000000","0.076614"],["9789.9000000000","0.675894"],["9790.4000000000","1.399930"],["9790.9000000000","2.169701"],["9791.1000000000","1.087185"],["9791.6000000000","0.554955"],["9792.1000000000","0.443663"],["9792.4000000000","0.555262"],["9792.8000000000","2.561557"],["9793.2000000000","0.441783"],["9793.6000000000","2.866973"],["9794.0000000000","3.807108"],["9794.4000000000","0.387822"],["9794.7000000000","0.283400"],["9795.1000000000","0.068175"],["9795.6000000000","1.060241"],["9796.1000000000","1.088121"],["9796.6000000000","0.841712"],["9796.7000000000","1.491941"],["9796.8000000000","3.643197"],["9797.2000000000","2.027201"],["9797.5000000000","0.355906"],["9797.9000000000","0.187587"],["9798.4000000000","0.651190"],["9798.9000000000","0.763494"],["9799.4000000000","2.143298"],["9799.7000000000","3.535269"],["9800.1000000000","0.873668"],["9800.6000000000","3.163761"],["9800.8000000000","2.191637"],["9801.2000000000","2.962501"],["9801.6000000000","0.875705"],["9802.0000000000","3.800427"],["9802.4000000000","2.548473"],["9802.8000000000","1.215785"],["9803.2000000000","2.148460"],["9803.6000000000","3.973448"],["9804.0000000000","3.309424"],["9804.4000000000","3.596141"],["9804.8000000000","1.492962"],["9805.2000000000","2.235736"],["9805.6000000000","1.821064"],["9806.0000000000","3.015085"],["9806.4000000000","3.937777"],["9806.8000000000","0.979218"],["9807.2000000000","2.651672"],["9807.6000000000","2.941514"],["9808.0000000000","2.457488"],["9808.4000000000","3.610899"],["9808.8000000000","2.666185"],["9809.2000000000","1.140798"],["9809.6000000000","2.730945"],["9810.0000000000","2.818856"],["9810.4000000000","1.938465"],["9810.8000000000","1.166761"],["9811.2000000000","2.782454"],["9811.6000000000","3.442737"],["9812.0000000000","2.868558"],["9812.4000000000","2.390495"],["9812.8000000000","0.339684"],["9813.2000000000","1.332205"],["9813.6000000000","0.774454"],["9814.0000000000","1.672414"],["9814.4000000000","0.590833"],["9829.0000000000","0.001434"],["9999.9000000000","0.021839"],["10009.9000000000","0.032759"],["10099.9000000000","0.016380"],["10540.0000000000","0.041208"],["10550.0000000000","0.000540"],["10999.9000000000","0.016380"],["11000.0000000000","0.004864"],["12000.0000000000","0.001898"],["12050.0000000000","0.007000"],["13000.0000000000","0.000597"],["95239999.3000000000","0.000918"]],"symbol":"BTC-USDT","ver":"60688084"}
2020/02/07 21:34:21 {"b":[["9755.6000000000","0.000000"]],"s":[],"symbol":"BTC-USDT","ver":"60688087"}
2020/02/07 21:34:21 {"b":[["9755.1000000000","0.000000"]],"s":[],"symbol":"BTC-USDT","ver":"60688088"}

2020/02/07 21:34:21 {"b":[],"s":[["9776.3000000000","0.104585"]],"symbol":"BTC-USDT","ver":"60688089"}
2020/02/07 21:34:22 {"b":[["9754.8000000000","1.137549"]],"s":[],"symbol":"BTC-USDT","ver":"60688090"}
2020/02/07 21:34:22 {"b":[],"s":[["9776.7000000000","0.144661"]],"symbol":"BTC-USDT","ver":"60688091"}
2020/02/07 21:34:23 {"b":[["9712.0000000000","0.000000"]],"s":[],"symbol":"BTC-USDT","ver":"60688092"}
2020/02/07 21:34:23 {"b":[],"s":[["9777.2000000000","0.458727"]],"symbol":"BTC-USDT","ver":"60688093"}
2020/02/07 21:34:23 {"b":[],"s":[["9777.7000000000","0.534788"]],"symbol":"BTC-USDT","ver":"60688094"}
2020/02/07 21:34:23 {"b":[],"s":[["9776.1000000000","0.000000"]],"symbol":"BTC-USDT","ver":"60688095"}

The problem is some updates are missing!! The snapshot is Ver 60688084, but the first update is Ver 60688087. You can reproduce this easily in a slow network connection(for example, 3G). you guys didn't handle the timing correctly.

Problem with calling/result of the API method /spot/orderList

Hi,
I can't get the list of orders through the API method /spot/orderList.

The request returns 'success' and this means that the signature is correct, however the data array (where the list of orders should be) is empty.

There is probably a problem with the query parameters, but the corresponding section of the documentation is incomplete and I can't understand what the error is.

Please tell me the working parameters set for this API method or the cause of the problem.

And yes, I’m sure that I have many completed orders for the BIP-USDT trading pair.

Sent data:

Array
(
    [base_uri] => https://global-openapi.bithumb.pro/openapi/v1/spot/orderList
    [connect_timeout] => 10
    [timeout] => 30
    [json] => Array
        (
            [side] => buy
            [symbol] => BIP-USDT
            [status] => success
            [queryRange] => thisweek
            [apiKey] => 851ef1XXXXXXXXXXXXXXXXXZ0d13a697
            [msgNo] => msgNo
            [timestamp] => 1591129694726
            [signature] => bad1b26faa3112XXXXXXXXXXXXXXXXXXXXXXXXXXXXf471acf5b0e36c67da649f
        )

)

Result is:

Array
(
    [data] => Array
        (
        )

    [code] => 0
    [msg] => success
    [timestamp] => 1591129695128
    [startTime] => 1591129695109
)

websocket order book is a mess

When I subscribe order book of BXA-USDT, I requested a full order book via REST API first, then subscribe websocket updates, below is what I got:

2020/02/19 20:34:07 [DEBUG] REST order book ver: 10579730
2020/02/19 20:34:07 {"code":"00006","data":{"b":[["0.0020010000","51001.000000"],["0.0020000000","10908.440000"],["0.0019990000","8185.420000"],["0.0019530000","51001.000000"],["0.0019500000","12586.660000"],["0.0019000000","49429.890000"],["0.0018880000","281450.000000"],["0.0018080000","100275.290000"],["0.0016380000","120912.360000"],["0.0014420000","823.170000"],["0.0013310000","1344.950000"],["0.0012200000","2781.970000"],["0.0011090000","2656.420000"],["0.0009980000","6195.610000"],["0.0009950000","9529.920000"],["0.0009930000","6480.900000"],["0.0009920000","8487.470000"],["0.0009880000","5562.680000"],["0.0009870000","8401.550000"],["0.0009850000","6734.250000"],["0.0009820000","8911.970000"],["0.0009810000","5510.400000"],["0.0009770000","9048.050000"],["0.0009760000","8753.820000"],["0.0009740000","6081.790000"],["0.0009720000","8584.420000"],["0.0009690000","9971.650000"],["0.0009670000","7868.640000"],["0.0009640000","5453.350000"],["0.0003700000","2000.000000"],["0.0000070000","495333.000000"],["0.0000040000","700000.000000"]],"s":[["0.0023960000","8204.610000"],["0.0023970000","11518.690000"],["0.0023980000","15358.260000"],["0.0024250000","17278.040000"],["0.0024290000","607.050000"],["0.0024330000","9988.940000"],["0.0026380000","1872.930000"],["0.0028240000","86422.240000"],["0.0028670000","19615.910000"],["0.0029330000","202879.120000"],["0.0030000000","10524.450000"],["0.0032180000","215.560000"],["0.0032400000","335.720000"],["0.0032620000","500.900000"],["0.0032840000","670.100000"],["0.0033060000","1781.200000"],["0.0033210000","669.200000"],["0.0033430000","582.030000"],["0.0033620000","14711.940000"],["0.0033660000","1658.280000"],["0.0033810000","1529.550000"],["0.0034000000","1123.070000"],["0.0034190000","1222.890000"],["0.0034390000","1404.750000"],["0.0034590000","2255.290000"],["0.0034790000","1633.800000"],["0.0034990000","1412.530000"],["0.0035190000","2154.610000"],["0.0035390000","1633.610000"],["0.0035590000","1836.030000"],["0.0035790000","2035.770000"],["0.0035990000","1886.210000"],["0.0036190000","2101.640000"],["0.0036390000","1407.920000"],["0.0036590000","1984.510000"],["0.0036790000","1152.710000"],["0.0036990000","1153.280000"],["0.0037190000","1753.160000"],["0.0037390000","2496.150000"],["0.0037590000","2405.020000"],["0.0037790000","1262.780000"],["0.0038000000","69597.650000"],["0.0038210000","1840.600000"],["0.0038420000","1849.550000"],["0.0038630000","1002.000000"],["0.0038750000","22067.910000"],["0.0038840000","1997.960000"],["0.0039000000","87289.780000"],["0.0039050000","1536.950000"],["0.0039260000","1227.580000"],["0.0039470000","2021.510000"],["0.0039680000","1265.050000"],["0.0039900000","2145.890000"],["0.0040120000","2077.080000"],["0.0043210000","22067.910000"],["0.0043520000","1014.300000"],["0.0045000000","250135.320000"],["0.0046000000","4405.660000"],["0.0060000000","1229.600000"],["0.0060500000","16918.220000"],["0.0061200000","16918.220000"],["0.0063520000","1521.460000"],["0.0065000000","5000.000000"],["0.0070000000","5000.000000"],["0.0080000000","5000.000000"],["0.0091000000","5000.000000"],["0.0100000000","266131.250000"],["0.0150000000","2015.680000"],["0.0160000000","490.530000"],["0.8219000000","27.549356"],["0.8990000000","472333.650000"],["0.9000000000","1019.010000"],["8.2190000000","30.000000"],["82.1900000000","30.000000"],["821.9000000000","30.900000"],["8219.0000000000","30.910000"]],"symbol":"BXA-USDT","ver":"10579730"},"timestamp":1582115646936,"topic":"ORDERBOOK"}
2020/02/19 20:34:07 {"code":"00007","data":{"b":[["0.0017110000","0.000000"]],"s":[],"symbol":"BXA-USDT","ver":"10537369"},"topic":"ORDERBOOK","timestamp":1582115647068}
2020/02/19 20:34:07 {"code":"00007","data":{"b":[["0.0017110000","51001.000000"]],"s":[],"symbol":"BXA-USDT","ver":"10537370"},"topic":"ORDERBOOK","timestamp":1582115647100}

REST API's ver is 10579730, so is websocket code 00006 data, but the first increment update's ver is 10537370!! Because this issue, my order book is totally wrong, and I lost 5 ETH!

Could I know where your server located

I'm running my crypto trading algo on vps located in Japan, but the latency to bithumb.pro is about 500ms. I noticed your server's IP is in US. If i wanna reduce the network latency, where should I place my VPS?

NodeJs 에서 verifySignature 관련 문의요

NodeJs로 api 연동 중입니다.
spot/assetList 을 구현하는데요.
아래와 같이 리턴이 옵니다.
{"data":null,"code":"9002","msg":"verifySignature failed","timestamp":1573531933385}

Signature 구하는 코드 입니다. 아래 코드에서 수정되어야 될 부분을 알려주세요

let currTime = Date.now();
let param = {
"apiKey" : APIKEY,
"timestamp" : currTime,
"msgNo" : currTime,
"assetType" : "spot",
}
let fromParam = apiKey=${APIKEY}&timestamp=${currTime}&msgNo=${currTime}&assetType=spot;
let signature = CryptoJS.HmacSHA256(fromParam, APISECRET).toString(CryptoJS.enc.Hex)
param['signature'] = signature;

감사합니다.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.