This video explains how to automate access management for vendors who build and sell invite only scripts based on subscription or one time fee. I have made videos about this earlier as well. But, due to high demand, I have been asked to make this video again.
π² Tools Required
Replit - Used for hosting the service that automates access management
Postman - To test the services hosted
π² Prerequisites
User should have premium tradingview account and be able to publish invite only scripts by following the house rules.
User should disable 2FA on their account in order to allow programs to login remotely and manage access.
Update Environment Variables tvusername and tvpassword
Run the repl
π― Use postman to test the service methods Detailed explanation of the API calls are present in the github link provided above. The service is capable of doing following things.
Check if the given tradingview username is valid or not
Get the access details of given user to list of scripts identified by pub id.
Delete the access to given user to list of scripts identified by pub id.
Provide/Extend access to given user to list of scripts identified by pub id for specific duration.
π² Notes
Please follow house rules while publishing and selling subscriptions to invite only scripts.
Do not commercialize these API calls or do not turn it into product. The mechanism is built on backend calls that are not officially supported by tradingview. While tradingview is tolerant on individual use, any malicious activity may force them to shut this down for everyone.
So awesome! Been expermenting with Replit lately so this perfect, I spent about a month and a half trying to figure out a way to get API calls/data into Pinescript and finally figured it out but it involved far too many steps compared to this so this amazing, love it!!!! Go figured my Premium expired yesterday as this was posted... ahhh life sometimes πanyway, keep up the work Wizards!!
Trendoscope
β
@Wen2TradeOfficial, hey, the post is about automatic access management to invite only Pinescript. Not about getting API data into Pinescript. If you are looking to get external data into Pinescript, please explore pine seeds feature.
Wen2TradeOfficial
β
@Trendoscope, Yeeeeah... jumped the gun on this one and figured that out few minutes after commenting. Should of finished watching before commenting or atleast not make coffee n breakfast while tryna multitask charts and script work lol Saw API got excited as ive compiled a decent list together of outside sources/API's but sweet thanks, ill check that out