-
Notifications
You must be signed in to change notification settings - Fork 1
Description
I tried the demo of SpotApiClientTest.
Only test two functions: getBalance and getBalances.
They all failed with AUTH_101 as below:
[INFO] Running com.ex.demo.SpotApiClientTest
origion===validate-algorithms=HmacSHA256&validate-appkey=e09dbe4e-0557-4d05-8bf7-00fec4086768&validate-recvwindow=6000&validate-timestamp=1748506271562#GET#/v1/spot/balances#filterIsDisplayFalse=false
result:CommonResponse(code=500, msg=AUTH_101, msgInfo=[], data=null)
origion===validate-algorithms=HmacSHA256&validate-appkey=e09dbe4e-0557-4d05-8bf7-00fec4086768&validate-recvwindow=6000&validate-timestamp=1748506272046#GET#/v1/spot/balance#currency=USDT
result:CommonResponse(code=500, msg=AUTH_101, msgInfo=[], data=null)
[INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.195 s -- in com.ex.demo.SpotApiClientTest
I have confirmed that the api pubkey and secret key are set all right.
Questions:
- Why the document uses the name "appkey" , the website's api settings menu uses the name "pubkey" ? That is confused! Are they same or not?
- In the demo code, HttpUtil.java and AbstractOkHttpInterceptor.java both have api key settings config. Which one is used?
I take some time to read the code, AbstractOkHttpInterceptor.java should be used. Just want to be confirmed...