Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

price_oco_stop parameter missing in order manager. #346

Open
fotto412 opened this issue Apr 17, 2024 · 1 comment
Open

price_oco_stop parameter missing in order manager. #346

fotto412 opened this issue Apr 17, 2024 · 1 comment

Comments

@fotto412
Copy link

Hi Guys,
I am trying to use OCO order type but can not find price_oco_stop field in order manager. It is used in LIMIT orders. There is, however, BitfinexOrderFlag.OCO flag defined. Can you please add like withPriceOcoStop method to the order manager. Note that price_oco_stop parameter should be added to the order request.

As always thank you all for the great job. Cheers.

@wgolyakov
Copy link
Contributor

Example without withPriceOcoStop:

BitfinexOrder order = BitfinexOrderBuilder.create(pair, BitfinexOrderType.LIMIT, amount).
		withPrice(price).withOrderFlag(BitfinexOrderFlag.OCO).build();
order.setPriceOcoStop(BigDecimal.valueOf(price));
client.getOrderManager().placeOrder(order);

wgolyakov added a commit to wgolyakov/bitfinex-v2-wss-api-java that referenced this issue Apr 19, 2024
wgolyakov added a commit to wgolyakov/bitfinex-v2-wss-api-java that referenced this issue Apr 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants