Skip to content

Error: AUTH_101 in Running com.ex.demo.SpotApiClientTest #1

@devProjectPAI

Description

@devProjectPAI

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:

  1. 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?
  2. 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...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions