• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Create custom share service

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

    Create custom share service

    Hi.

    I'm trying to create new custom share service for Telegram. I use NinjaTrader Editor -> New share Service, complete wizard. In Options -> Share Services new share service is available. I click Add button, then OK and get this Error:
    ...share service could not be saved. This share service has not been properly configured. Connect to the service before pressing Ok or Apply.
    What i missed?

    #2
    Hello wr41th,

    Thank you for the post, and welcome to the NinjaTrader forum.

    The IsConfigured property will tell if the share service is properly configured. You can see the Mail share service script set this in State.SetDefaults. The other share service scripts are open source, so they would be a good reference for creating a custom share service.

    Please let me know if I can assist further.
    Chris L.NinjaTrader Customer Service

    Comment


      #3
      Thank you Chris.
      I set this property to true and share service allowed to click Ok.

      I used Twitter share service as base for my Telegram service (cause it use HttpClient, not SmtpClient). But it doesn't work. I get this into log -
      13.11.2018 18:30:19 NinjaScript There was an error while sharing from the Share service Telegram: "An error occurred while sending the request."
      Can you check it out in attach?
      Attached Files

      Comment


        #4
        Hello wr41th,

        Thanks for the reply.

        Support is limited to the share service only, so I can not look into the Telegram API much. Were you able to make a successful post request from a standalone C# application yet?

        I was able to find this public repository of a C# Telegram client:

        https://github.com/MrRoundRobin/telegram.bot

        I look forward to assisting further.
        Chris L.NinjaTrader Customer Service

        Comment


          #5
          No, i didn't try it as standalone c# app. I don't have VS. Just NinjaScriptEditor. Url through Chrome works correctly (message sent), but it doesn't work through NT Share service.

          Thank you Chris, i will continue troubleshooting by myself.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by swcooke, Today, 02:01 PM
          0 responses
          5 views
          0 likes
          Last Post swcooke
          by swcooke
           
          Started by guidoisot, Today, 01:11 PM
          1 response
          4 views
          0 likes
          Last Post NinjaTrader_PatrickG  
          Started by martyn73, Today, 12:26 PM
          0 responses
          9 views
          0 likes
          Last Post martyn73  
          Started by uday12, Today, 09:45 AM
          0 responses
          6 views
          0 likes
          Last Post uday12
          by uday12
           
          Started by uday12, Today, 08:25 AM
          3 responses
          20 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Working...
          X