ApeX-Protocol / apexpro-connector-java

A connector to ApeX-Protocol Public API for Java
Apache License 2.0
2 stars 2 forks source link

Cannot create order with this library: L2 signature error #3

Closed edgeofthegame2 closed 8 months ago

edgeofthegame2 commented 8 months ago

Just downloaded this library with examples. Getting position and order data works fine. Canceling of orders works fine. But creating orders gives this error:

Response =====> {"code":3,"msg":"L2 signature error, please check your wallet and re-sign.","key":"INVALID_L2_SIGNATURE","detail":


Exception in thread "main" exchange.apexpro.connector.exception.ApexProApiException: [Executing] 3: L2 signature error, please check your wallet and re-sign. at exchange.apexpro.connector.impl.RestApiInvoker.checkResponse(RestApiInvoker.java:38) at exchange.apexpro.connector.impl.RestApiInvoker.callSync(RestApiInvoker.java:65) at exchange.apexpro.connector.impl.SyncRequestImpl.createOrder(SyncRequestImpl.java:78) at exchange.apexpro.connector.examples.trade.CreateOrder.main(CreateOrder.java:40)

edgeofthegame2 commented 8 months ago

switched to python, it works fine.