Open 258304628 opened 3 years ago
KEY,PASSPHRASE,SIGN做了脱敏处理,都是自家账号申请的数据。 Request(2021-04-19 21:49:10:346): Url: https://www.okex.com/api/v5/asset/deposit-history?ccy=USDT&state=&after=&before=&limit= Method: GET Headers: Accept: application/json Content-Type: application/json; charset=UTF-8 Cookie: locale=en_US OK-ACCESS-KEY: 641e5ce6---**-23cb7740ffe8 OK-ACCESS-PASSPHRASE: *** OK-ACCESS-SIGN: ** OK-ACCESS-TIMESTAMP: 2021-04-19T13:49:10.342Z x-simulated-trading: 1 request body: preHash: 2021-04-19T13:49:10.342ZGET/api/v5/asset/deposit-history?ccy=USDT&state=&after=&before=&limit= 2021-04-19 21:49:11.158 [MyScheduler_Worker-1] INFO com.okex.open.api.client.APIClient:157 - Response(2021-04-19 21:49:11:158): Status: 401 Message: 2021-04-19 21:49:11.188 [MyScheduler_Worker-1] ERROR org.quartz.core.JobRunShell:211 - Job DEFAULT.org.jeecg.modules.quartz.job.PushQueryJob threw an unhandled Exception: com.okex.open.api.exception.APIException: 50101 : Broker id of APIKey does not match current environment.
请求头里有“x-simulated-trading: 1”这句话,代表是请求的模拟盘,可以看一下你的apikey是模拟盘还是实盘,模拟盘的apikey只能调用模拟盘,实盘的apikey只能调用实盘
我也跟你遇到一樣的問題,我是在做模擬盤的測試,因此APIKEY也是模擬盤的,但也是跳出錯誤
KEY,PASSPHRASE,SIGN做了脱敏处理,都是自家账号申请的数据。 Request(2021-04-19 21:49:10:346): Url: https://www.okex.com/api/v5/asset/deposit-history?ccy=USDT&state=&after=&before=&limit= Method: GET Headers: Accept: application/json Content-Type: application/json; charset=UTF-8 Cookie: locale=en_US OK-ACCESS-KEY: 641e5ce6---**-23cb7740ffe8 OK-ACCESS-PASSPHRASE: *** OK-ACCESS-SIGN: ** OK-ACCESS-TIMESTAMP: 2021-04-19T13:49:10.342Z x-simulated-trading: 1 request body: preHash: 2021-04-19T13:49:10.342ZGET/api/v5/asset/deposit-history?ccy=USDT&state=&after=&before=&limit= 2021-04-19 21:49:11.158 [MyScheduler_Worker-1] INFO com.okex.open.api.client.APIClient:157 - Response(2021-04-19 21:49:11:158): Status: 401 Message: 2021-04-19 21:49:11.188 [MyScheduler_Worker-1] ERROR org.quartz.core.JobRunShell:211 - Job DEFAULT.org.jeecg.modules.quartz.job.PushQueryJob threw an unhandled Exception: com.okex.open.api.exception.APIException: 50101 : Broker id of APIKey does not match current environment.