Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Unable to call API from strategy C# class

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

    Unable to call API from strategy C# class

    Hi Team,
    I am unable to create .txt file or call API from strategy class.
    Can you help me with code for creating .txt file and calling API using httprequest.


    Thanks,
    Rajesh KS.

    #2
    Hello rajeshks1988,

    Thanks for the post.

    What specifically are you trying to do that is not working? Do you have a sample of the code you used or what errors you are seeing? There is a sample of writing to file here: https://ninjatrader.com/support/help...o_write_to.htm

    For the http request I would suggest looking at the following indicator on the public user app share, it has a web request in it that you could use to learn from. https://ninjatraderecosystem.com/use.../jteconnews2a/



    I look forward to being of further assistance.

    The NinjaTrader Ecosystem website is for educational and informational purposes only and should not be considered a solicitation to buy or sell a futures contract or make any other type of investment decision. The add-ons listed on this website are not to be considered a recommendation and it is the reader's responsibility to evaluate any product, service, or company. NinjaTrader Ecosystem LLC is not responsible for the accuracy or content of any product, service or company linked to on this website.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    81 views
    1 like
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    42 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    64 views
    2 likes
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    66 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    54 views
    0 likes
    Last Post CarlTrading  
    Working...
    X