You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 30, 2023. It is now read-only.
class Fail {
fun go(){ val bFac = BinanceApiClientFactory.newInstance( true, /*testnetstreaming */ **_true_** )
val traderClient = bFac.newRestClient()
}
}
fun main() {
Fail().go()
}
this is the output
Exception in thread "main" java.lang.IllegalArgumentException: Illegal URL: wss://testnet.binance.vision/stream
at retrofit2.Retrofit$Builder.baseUrl(Retrofit.java:456)
at com.binance.api.client.impl.BinanceApiServiceGenerator.createService(BinanceApiServiceGenerator.java:67)
at com.binance.api.client.impl.BinanceApiRestClientImpl.<init>(BinanceApiRestClientImpl.java:27)
at com.binance.api.client.BinanceApiClientFactory.newRestClient(BinanceApiClientFactory.java:101)
at com.fnreport.org.bereft.Fail.go(Fail.kt:8)
at com.fnreport.org.bereft.FailKt.main(Fail.kt:13)
at com.fnreport.org.bereft.FailKt.main(Fail.kt)
F.A.Q.
How can I use the Spot Test Network?
Step 1: Log in on this website, and generate an API Key.
Step 2: Follow the official documentation of the Spot API, replacing the URLs of the endpoints with the following values: