Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Create custom share service

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

  • oslotradinggroup
    replied
    Hi guys, is this what you are looking for?

    Leave a comment:


  • pingpong
    replied
    Originally posted by wr41th View Post
    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.
    HI wr41th. Did you get it fixed in the end ? If so please can you share the code?

    Leave a comment:


  • wr41th
    replied
    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.

    Leave a comment:


  • NinjaTrader_ChrisL
    replied
    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:

    .NET Client for Telegram Bot API. Contribute to MrRoundRobin/Telegram.Bot development by creating an account on GitHub.


    I look forward to assisting further.

    Leave a comment:


  • wr41th
    replied
    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

    Leave a comment:


  • NinjaTrader_ChrisL
    replied
    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.

    Leave a comment:


  • wr41th
    started a topic Create custom share service

    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?

Latest Posts

Collapse

Topics Statistics Last Post
Started by r68cervera, Today, 05:29 AM
0 responses
2 views
0 likes
Last Post r68cervera  
Started by geddyisodin, Today, 05:20 AM
0 responses
3 views
0 likes
Last Post geddyisodin  
Started by JonesJoker, 04-22-2024, 12:23 PM
6 responses
33 views
0 likes
Last Post JonesJoker  
Started by GussJ, 03-04-2020, 03:11 PM
12 responses
3,239 views
0 likes
Last Post Leafcutter  
Started by AveryFlynn, Today, 04:57 AM
0 responses
6 views
0 likes
Last Post AveryFlynn  
Working...
X