Support ChangeOrderPrice and ChangeOrderVolume

Open
#4,494 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 2 days

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
java
Domain
api

Research direction

Start by locating the changeOrder(LimitOrder) method and inspect the exchange implementations and tests that use it. Determine how separate price-only and volume-only changes should be represented without altering other order fields. Done means the API supports price, volume, and combined changes while preserving an exchange order's unchanged quantity when only its price is modified.

Written by the indexing model from the issue text.

Description

Currently, we have a single method to allow us to modify orders
default String changeOrder(LimitOrder limitOrder) throws IOException
There are times when you just want to modify the order price, or the volume, or both. When just modifying, if you pass in a new limit order, you might end up adjust the quality too as the it just so happens the volume you have does not match what the exchange has. By having the ability to just modify the price only, you ensure that if the order happened to be part filled, on the exchange, you are not increasing the quantity unexpectedly.

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.