binance / binance/binance-sbe-java-sample-app

java.lang.IllegalStateException for wss place order

Open
#5 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
14
Forks
9
PR merge metrics
No merged PRs in 30d

Description

there's a mismatch between the expected template ID in your decoder and the template ID in the message you received. Your decoder is expecting a template ID of 103, as indicated in the ExchangeInfoResponseDecoder class, but the received message has a template ID of 50.
echo '{"id":"93fb61ef-89f8-4d6e-b022-4f035a3fadad","method":"exchangeInfo","params":{}}' | ./tools/websocket_send.py 'wss://[ws-api.binance.com:443/ws-api/v3?responseFormat=sbe&sbeSchemaId=1&sbeSchemaVersion=0](http://ws-api.binance.com:443/ws-api/v3?responseFormat=sbe&sbeSchemaId=1&sbeSchemaVersion=0)' | java -jar ./target/sbe-sample-app-1.0-SNAPSHOT.jar -
Exception in thread "main" java.lang.IllegalStateException: Invalid TEMPLATE_ID: 50
at spot_sbe.ExchangeInfoResponseDecoder.wrapAndApplyHeader(ExchangeInfoResponseDecoder.java:94)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.