binance / binance-futures-connector-java

Simple Java connector to Binance Futures API
MIT License
129 stars 67 forks source link

求助: Code":-1022,"msg":"Signature for this request is not valid." when connecting to TestNet #42

Closed caronniwaston closed 5 days ago

caronniwaston commented 1 week ago

Issue subject

求助:code":-1022,"msg":"Signature for this request is not valid." when connecting to TestNet

Expected behaviour

Suppose this is the official Java API, and the samples should work using the API key and secret got from testnet - https://testnet.binancefuture.com/en/futures/BTCUSD

Actual behaviour

The program I ran is src/test/java/examples/um_futures/account/NewOrder.java, the error is examples.cm_futures.account.NewOrder - fullErrMessage: {"code":-1022,"msg":"Signature for this request is not valid."}. Please help check why this official API failed.

Steps to reproduce

Environment

Release Release v0.1.5

MacOS + VSCode

caronniwaston commented 1 week ago

帮忙看下,谢谢大佬们

caronniwaston commented 5 days ago

解决了,谢谢