Jump to content

All Activity

This stream auto-updates     

  1. Last week
  2. OrderStatusReason Code 67

    Hi Mike, You could try that. In most cases, markets are only set to indicative state for a short while. So you should be able to get back to trading via API in fairly short order. Kind Regards, PM
  3. OrderStatusReason Code 67

    Thank you! I suppose the only action i can take is to do one "retry" if I get that error message...
  4. Earlier
  5. OrderStatusReason Code 67

    Hi Mike, OrderStatusReason code 67 means: Supplied price is in an indicative state. This means the market you are attempting to trade has been placed into an "indicative" state at the time you were trying to trade. Markets that are "indicative" cannot be traded from our trading platforms or via API. This is why the trade request is being rejected with the 67 error code. The only way to trade "indicative" markets is to call into the dealing desk and deal by phone directly with a dealer. Code descriptions can all be found at: https://docs.labs.gaincapital.com/#APICodesList.htm%3FTocPath%3DGetting%20Started|Lookup%20Values|_____1 Kind Regards, PM
  6. Hello, how can I avoid getting this error? Is this just something I need to run a "retry" on if I see it? Request: { "Direction":"Sell", "BidPrice":1.19999, "OfferPrice":1.21199, "Reference":"GCAPI", "AutoRollover":false, "MarketId":401501530, "Currency":null, "Quantity":18325, "PositionMethodId":1, "TradingAccountId":"FX159010", "isTrade":true } Response: Status 2 StatusReason 75 OrderId 0 Orders [{"OrderId"=>0, "StatusReason"=>67, "Status"=>10, "OrderTypeId"=>1, "Price"=>0.0, "Quantity"=>18325.0, "TriggerPrice"=>0.0, "CommissionCharge"=>0.0, "IfDone"=>[], "GuaranteedPremium"=>0.0, "OCO"=>nil, "AssociatedOrders"=>{"Stop"=>nil, "Limit"=>nil}, "Associated"=>false}] Quote Actions [] ErrorMessage
  7. get economic calendar data

    Hi Dave, Yes, we are using FX Street. Kind Regards, PM
  8. get economic calendar data

    ok, would you please provide the 3rd party supplier information?
  9. get economic calendar data

    Hello Dave, The economic calendar is provided by a 3rd party supplier and hence there is no access via our API to retrieve any of that data. Kind Regards, PM
  10. Hi, how can i get the economic calendar data?
  11. Hi Frank, Yes, you guessed correctly. Depending upon the market, we only keep tick history for a few days to about a week or so. Hence the API request you sent is giving you all the tick prices it has from the database, which in your example starts from Wed 14 April. Kind Regards, PM
  12. Hi, Done. Looks as though I forgot to approve it previously. Kind Regards, PM
  13. Thank you. May you please approve this post? I'd like to bookmark and share the information here.
  14. Hi, I have some trouble using GetPriceTicksAfterDate function to get historic price data e.g. for DAX (marketId 401437602), but it seems it is not restricted to this market only. For example I do GET https://ciapi.cityindex.com/tradingapi/market/401437602/tickhistoryafter?fromTimeStampUTC=1613491996&priceType=ASK UTC timestamp 1613491996 translates to Tuesday, 16. February 2021 16:13:16 As a result I would expect some PriceTicks starting around this date. However the first value returned is { "TickDate": "/Date(1618437600290)/", "Price": 15194.5 }, This is a tick from Wednesday, 14. April 2021 22:00:00.290 ! Does anyone have an explanation for that? Are the historic prices available a few days backwards only? Best regards, Frank
  15. Hi Jflaggs, To find out what price history data is available in the price databases for the market(s) you are interested in, please contact client services who can liase with the appropriate team. Kind Regards, PM
  16. Can you explain how platforms such as NinjaTrader and Tradingview are giving me data from Forex.com going back to 1997?
  17. Hi Jflaggs, We only store historic price data for this market back to 2015. It's why you are unable to retrieve anything from before then. Kind Regards, PM
  18. Hello, I am finding that the endpoint is returning empty bars for multiple symbols before 2015. Here are my GET requests to the endpoint. The only difference between the two requests are the dates. I repeated this test for all 1 year intervals beginning 2007-2008, 2008-2009, etc and the only GET requests that return non-empty price bars are those requests after 2014. For most requests before 2015, I only get a partial price bar response and zero price bars. Are you able to explain why this is? If there is better endpoint to get price history please advise. Doesn't Work : 4/19/2014 12:00:00 AM - 4/19/2015 12:00:00 AM https://ciapi.cityindex.com/TradingAPI/market/401153870/barhistorybetween ?FromTimestampUTC=1397865600 &ToTimestampUTC=1429401600 &MarketId=401153870 &MaxResults=4000 &Interval=Day &Span=1 &PriceType=Mid &Session=my_session_id &UserName=my_user_name Does Work : 4/19/2015 12:00:00 AM - 4/18/2016 12:00:00 AM https://ciapi.cityindex.com/TradingAPI/market/401153870/barhistorybetween ?FromTimestampUTC=1429401600 &ToTimestampUTC=1460937600 &MarketId=401153870 &MaxResults=4000 &Interval=Day &Span=1 &PriceType=Mid &Session=my_session_id &UserName=my_user_name
  19. Hi SN, I do not have access to check problems with historical price data as that is outside the remit of the API team. Please contact Client Services who can pass your report to the appropriate team for investigation. Kind Regards, PM
  20. I ran it a few more times, looks like it randomly omits date "2021-04-09 00:00:00" on any pairs. Sometimes is shows up and sometimes it doesn't. Looks like this issue started the passed week or so. Pretty recent issue.
  21. Hello @Physicsman I am facing an issue with the Historical Data. No data coming in for date "2021-04-09 00:00:00" either ASK, BID or MID on EUR/USD and EUR/GBP No data coming in for date "2021-04-09 00:00:00" either ASK or MID on USD/JPY EUR/USD BID{"BarDate": "2021-04-08 00:00:00", "Open": 1.1865, "High": 1.19264, "Low": 1.18596, "Close": 1.19125}, {"BarDate": "2021-04-12 00:00:00", "Open": 1.18898, "High": 1.19032, "Low": 1.18877, "Close": 1.18906} EUR/GBP BID{"BarDate": "2021-04-08 00:00:00", "Open": 0.86389, "High": 0.86804, "Low": 0.86208, "Close": 0.86728}, {"BarDate": "2021-04-12 00:00:00", "Open": 0.86669, "High": 0.86823, "Low": 0.86656, "Close": 0.86811} USD/JPY ASK{"BarDate": "2021-04-08 00:00:00", "Open": 109.873, "High": 109.914, "Low": 109.008, "Close": 109.285}, {"BarDate": "2021-04-12 00:00:00", "Open": 109.85, "High": 109.85, "Low": 109.653, "Close": 109.733} Was the market for those Pairs closed on Friday? If not, are there any issues with the generation of Historical Data? The historical data I am collecting has a Span of 1 (i.e. daily). I tried pulling several times and I am seeing same issue each time. Thanks.
  22. price stream raise error

    Hi Dave, We don't usually deal with Lightstreamer queries except at the most basic of levels. You may have more success trying the Lightstreamer forums at https://forums.lightstreamer.com/. Kind Regards, PM
  23. Hi Jflaggs, The bug about the max number of historical requests is still in our backlog but is not currently a priority. This means it isn't scheduled to be addressed in this quarter as the business has specified other things as higher priority instead. There is nothing for the request about adding a flag to indicate whether a trade is "to open" or "to close" so that is not going to happen. Should you have a relationship manager at Gain, then it's worth speaking with them about it. Kind Regards, PM
  24. Hi JFlaggs, The example table you deduced is almost fully correct. Updated version below. Minute: 1, 2, 3, 5, 10, 15, 30 Hour: 1, 2, 4, 8 Day: 1 Week: 1 Kind Regards, PM
  25. ValidationError { path: [], property: 'instance', message: 'does not meet minimum property length of 1', schema: { type: 'object', patternProperties: { '[sS]*': [Object] }, minProperties: 1 }, instance: {}, name: 'minProperties', argument: 1, stack: 'instance does not meet minimum property length of 1' }
  26. We're coming up on a year. There are several issues on this thread. Is there any plan to for getting these bugs and limitations fixed?
  27. I'm looking for the supported span/interval combinations but I'm not able to find it in the documentation: https://docs.labs.cityindex.com/#HTTP Services/GetLatestPriceBars.htm%3FTocPath%3DCIAPI%20Reference|HTTP%20Services|Price%20History|_____1 The error I receive when requesting 4 minute PriceBars is: The combination of interval and span you requested is not supported. But there is no mention of what combinations are supported. I'm expecting to find a table like this: Minute: 1, 2, 3, 5, 10, 30 Hour: 1, 2, 3, 4 Day: 1, Week: 1
  1. Load more activity
×