Jump to content

SupereeDuperee

Members
  • Content count

    37
  • Joined

  • Last visited

  • Days Won

    4

Reputation Activity

  1. Thanks
    SupereeDuperee reacted to Physicsman in Best way to know if Market is closed   
    Hi Superee,
    It is the MarketPrcingTimes fields. Since these are Forex 24H trading markets, we've been using a shortcut internally and that is probably what is causing you confusion. 
    DayofWeek 0 is Sunday and DayofWeek 5 is Friday. Since we know that FX markets open on Sunday and close on Friday, we just take the current week's Sunday and Friday dates. The actual Date returned in the field is just today's date and close time of 22:00 hours. We're ignoring the date and appending the 22:00 hours close/open times to the Sunday Start and Friday End dates to get each weeks open/close. 
    Kind Regards, PM

  2. Like
    SupereeDuperee reacted to Physicsman in NewTradeOrderRequestDTO Properties Doesn't match Examples   
    Hi Superee,
    Check the OrderStatusReason code that is also included in the response. It provides more information on the error and its cause.
    Kind Regards, PM
  3. Thanks
    SupereeDuperee got a reaction from Physicsman in Cannot Close Open Position (Consisting Multiple Orders ) Quantity value in 100's or 10's, like 75,120   
    Thanks for the detailed information. I will send CLOSE request with PriceTolerance value "2" so that most of the time close order would go through.
  4. Thanks
    SupereeDuperee got a reaction from Physicsman in API End Point UserAccount/ClientAndTradingAccount DOWN ?   
    Yes, it was DEMO Account. The outage was intermittent on Friday. Working fine this week. Thanks for checking.
  5. Thanks
    SupereeDuperee got a reaction from Physicsman in Attached Limit Order for New Trade fails in Live Account   
    Ok, I should've guessed the "Inheritance" - may be I missed that to remember when studied the documentation. Thanks for pointing that out.
    I assume anytime I see something like :-
    ApiPrimaryMarketTagDTO > ApiMarketTagDTO I know "ApiPrimaryMarketTagDTO" class inherits from "ApiMarketTagDTO" class (in c# terms)
    Thanks for the info!
  6. Thanks
    SupereeDuperee reacted to Physicsman in Attached Limit Order for New Trade fails in Live Account   
    Hi Superee,
    ApiStopLimitOrderDTO also inherits from ApiOrderDTO and all of its properties, hence the link to that DTO in the documentation. Additionally, many of the Properties are nullable and can be dropped from the reqeusts. 

     
    A valid trade request with attached stops/limits can be formed as in the following example:
    "IfDone": [ { "Stop": { "OrderId": 778252070, "StatusReason": 1, "Status": 2, "OrderTypeId": 2, "Price": 0, "Quantity": 1000, "TriggerPrice": 1.36261, "CommissionCharge": 0, "IfDone": [], "GuaranteedPremium": 0, "OCO": null, "AssociatedOrders": { "Stop": null, "Limit": null }, "Associated": false }, "Limit": { "OrderId": 778252069, "StatusReason": 1, "Status": 2, "OrderTypeId": 3, "Price": 0, "Quantity": 1000, "TriggerPrice": 1.36661, "CommissionCharge": 0, "IfDone": [], "GuaranteedPremium": 0, "OCO": null, "AssociatedOrders": { "Stop": null, "Limit": null }, "Associated": false } } ], Kind Regards, PM
     
  7. Like
    SupereeDuperee reacted to Physicsman in Is the API Documentation site down?   
    Hello,
    You may temporarily use the address: https://platformapidocs.svc.cityindex.com/ to access the online documentation. This will be mapped to http://docs.labs.gaincapital.com/ soon, which remains it's permanent address.
    Kind Regards, PM
  8. Thanks
    SupereeDuperee got a reaction from Physicsman in Realtime streaming data for pairs or symbols   
    I hope this link works. Visual Studio 2017/19 Solution Folder Ziipped .
    https://drive.google.com/file/d/1SavnJe6f_NRFE5-LYV9arewd893d7AdP/view?usp=sharing
    I created a Class to hold the rate info, and a List of that Rate Info Class - which keeps latest rate info , along with showing rates on the screen.
  9. Thanks
    SupereeDuperee got a reaction from Physicsman in C# .NET NewtonSoft JSON Deserializing ListOpenPositionsResponseDTO   
    Aaah Dang It! It was my Coding Error, in the "public class ApiOpenPositionDTO" I had 
            public List<ApiAssociatedDTO> AssociatedOrders { get; set; }
     
    but CORRECT Format IS = 
            public ApiAssociatedDTO AssociatedOrders { get; set; }
     
    Now it is DeSerializing just fine.
    ********* THIS THREAD /POST Can Be deleted as I found My Answer Myself But can be kept for Future Users ******
  10. Thanks
    SupereeDuperee got a reaction from Physicsman in Demo Account Access Denied   
    Just sent you a private message.
×