Jump to content

newstoplimitorder - Does OfferPrice matter?

Recommended Posts

I am trying to use the order/newstoplimitorder endpoint of GCAPI and having trouble understanding what OfferPrice is used for in NewStopLimitOrderRequestDTO. It is hard to tell which fields are actually required from the docs, but after some testing, it seems as if I only need at a minimum MarketId, Direction, TriggerPrice, Quantity, and OfferPrice (assuming I am OK with defaults on other fields). 

Based on some testing, OfferPrice does not seem to matter much, but want to confirm before I use the endpoint with real money. I see no equivalent field in the Web/Desktop platform via the UI, so not really sure what it is needed/used for. Also, it is required for both "Buy" and "Sell" orders, which is confusing since I wouldn't care so much about the OfferPrice when I am buying.

For example, the current ASK price of AUD/USD (marketId = 401484317) was 0.7135. 

All 3 of these request bodies seem to create the same order even though the OfferPrice in the request varies greatly:




I can see no reference to the OfferPrice in the API success response, or through the active orders endpoint, or through the web platform UI. Am I missing something, or can I just supply any value for this field? Does the OfferPrice have any effect on the order?

My intention is to watch prices via Lightstreamer, do some analysis, and place a limit order with a TriggerPrice within a couple of pips +/- of the price I did analysis on to make sure I am getting a "close" price to what I analyzed. Since the current OfferPrice may be different by the time my analysis is complete and the order is requested, It seems I would be best to just set my Direction/TriggerPrice to where I want in the request, then just make the OfferPrice the last OfferPrice I got, regardless of when I got that price or what the current OfferPrice on the pair actually is, but want to make sure I am supplying this field with an appropriate value. 

Share this post

Link to post


The offer and bid prices are used mainly for auditing purposes in order to determine what the current market prices were at the time you placed your entry order. 

Your code should read in the current live market prices from Lightstreamer, and when you submit your order it should fill in the current Offer and Bid prices in the order request fields correctly. 

Kind Regards, PM

Share this post

Link to post

Thanks for your quick reply and clarification on this. I will include both Bid and Offer in future requests. I just wanted to make sure I wasn't going to cause any unintended consequences if my Bid/Offer were somewhat stale by the time the order is placed, specifically when the market is moving fast.

Share this post

Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now