Skip to content

java.lang.IllegalStateException for wss place order #5

@VictorFrWu

Description

@VictorFrWu

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' | 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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions