开云体育

ctrl + shift + ? for shortcuts
© 2025 开云体育

Trading Future CME Group Long/Short contract


 

Hello,
?
I would like to open 2 positions on CME Group NQ (Nasdaq 100 Future contract). First position must be long with 2 contacts and second position short with 1 contract (the second position is considered as hedging in case if the market moves suddenly).
Question: is it possible through the api to open and hold the 2 positions on the same time ? (the second position will not close 1 contract from the first position)
?
Thanks


 

I’m not aware if API supports this. You’ll end up with 1 long contract.?

In our client we handle this internally by keeping the track of internal open positions.?

You just have to be cautious when you close your both internally kept positions. Otherwise you may remain with an open position. Also consider commission. You don’t want to pay twice.?

A special case when you want to close both positions at the same time. You may put the the first order in a queue with a slight delay of about half a second. So when you send the second close order while the first is in the?queue you may adjust the order size accordingly to prevent double commissions.

I hope this is clear enough.?

Ed Gonen


On Tue, 27 Aug 2024 at 18:13 zzitounti via <zzitounti=[email protected]> wrote:
Hello,
?
I would like to open 2 positions on CME Group NQ (Nasdaq 100 Future contract). First position must be long with 2 contacts and second position short with 1 contract (the second position is considered as hedging in case if the market moves suddenly).
Question: is it possible through the api to open and hold the 2 positions on the same time ? (the second position will not close 1 contract from the first position)
?
Thanks


 

This is not really an API related question. It is a question whether an account with IBKR is a netting or hedging account. The answer is simple: an IBKR account is a netting account. You would need a hedging account if you want to have at the same time a long position and a short position in one instrument.


 

开云体育

If both the long and short positions are the same contract, I'm quite certain that you can't hold both.? You could use different contracts or hedge with an option contract though.

Mel

On 8/27/2024 8:13 AM, zzitounti via groups.io wrote:

Hello,
?
I would like to open 2 positions on CME Group NQ (Nasdaq 100 Future contract). First position must be long with 2 contacts and second position short with 1 contract (the second position is considered as hedging in case if the market moves suddenly).
Question: is it possible through the api to open and hold the 2 positions on the same time ? (the second position will not close 1 contract from the first position)
?
Thanks