[Binance] UserReference / ClientID not populated in Trades or Orders properly

Open
#4,825 0 comments 1 reaction 0 assignees View on GitHub

Maintainers usually reply within 2 days

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
38/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
java
Domain
api

Research direction

Start at the Binance order-update decoding and the code that creates a new UserTrade. Compare the Order population path, where the client order ID is copied to a Flag, with the userReference field for Trades and Orders. Verify the client order ID remains available as userReference when processing the Binance order-update payload.

Written by the indexing model from the issue text.

Description

Binance sends Client Order IDs back on Order Updates. The field is decoded properly, then dropped when creating a new UserTrade.
[https://binance-docs.github.io/apidocs/spot/en/#payload-order-update]

The field is copied to a Flag when populating an Order object, but not to the userReference field as it should be

Dominant language
Java
Stars
4.1k
Forks
2k
Avg merge
2d 12h
Merged PRs (30d)
21

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from knowm/XChange

All issues in knowm/XChange

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.