Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[GateIO] Can not initialize the MarketDataService #4342

Open
lavaalone opened this issue Nov 23, 2021 · 2 comments
Open

[GateIO] Can not initialize the MarketDataService #4342

lavaalone opened this issue Nov 23, 2021 · 2 comments

Comments

@lavaalone
Copy link

Receiving error message as below when initializing the MarketDataService.
Caused by: si.mazi.rescu.HttpStatusIOException: Cannot construct instance of org.knowm.xchange.gateio.dto.marketdata.GateioFeeInfo (although at least one Creator exists): no String-argument constructor/factory method to deserialize from String value ('false') at [Source: (String)"{"result":"false","code":5,"message":"Error: empty key or sign"}"; line: 1, column: 11] (through reference chain: java.util.LinkedHashMap["result"]) at si.mazi.rescu.ResponseReader.read(ResponseReader.java:104) at si.mazi.rescu.RestInvocationHandler.mapInvocationResult(RestInvocationHandler.java:169) at si.mazi.rescu.RestInvocationHandler.receiveAndMap(RestInvocationHandler.java:157) at si.mazi.rescu.RestInvocationHandler.invoke(RestInvocationHandler.java:113) at com.sun.proxy.$Proxy58.getFeeList(Unknown Source) at org.knowm.xchange.gateio.service.GateioMarketDataServiceRaw.getGateioFees(GateioMarketDataServiceRaw.java:40) at org.knowm.xchange.gateio.GateioAdapters.adaptToExchangeMetaData(GateioAdapters.java:245) at org.knowm.xchange.gateio.GateioExchange.remoteInit(GateioExchange.java:43) at org.knowm.xchange.BaseExchange.applySpecification(BaseExchange.java:113)

Code is run directly from the provide sample code at GateIoExchangeDemo.java, copied below:
Exchange exchange = ExchangeFactory.INSTANCE.createExchange(GateioExchange.class);

Other information:

  • Branch: master
  • Java: 11
@GARCII
Copy link

GARCII commented Dec 18, 2021

Im facing the same problem here, i think gate v2 api are deprecated, they released a new version

https://www.gate.io/docs/developers/apiv4/en/#access-url

@bigscoop
Copy link
Contributor

bigscoop commented Sep 2, 2023

gateio api v4 is added. see #4766

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants