Announcement

Collapse
No announcement yet.

Using the correct price for placing orders

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Using the correct price for placing orders

    Hi,

    I see that there is a Quote API for accessing the Asks, Bids, last trade price, etc in EFS AT, but the EFSAT Sample code uses close() function while calculating the limit/stop values for a long call. Why is that? Can you please clarify the difference between using the Quote.xyz calls vs. close() function.

    Thanks,

    _esigtrader

  • #2
    I have used the following calls for latest price on futures contracts, and they have worked reasonably well for me.

    bid = getMostRecentBid();
    ask = getMostRecentAsk();
    last = getMostRecentTrade();

    Occasionally, the chart lags reality so even these calls return delayed prices. I subscribe to real-time data so the delay which I witness is due to other issues (usually quote stream is heavy and chart cannot keep up). Depending on which products you trade, you may come up with other ways to figure out whether the prices retrieved by EFS are up-to-date. In the end, I needed to implement additional checks to ensure erroneous orders are not submitted.

    Comment

    Working...
    X