TradingView
Trendoscope
Nov 3, 2023 3:13 PM

Revisiting Automatic Access Management API for VendorsΒ Education

Bitcoin / TetherUSBinance

Description

β‹…
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
  1. Replit - Used for hosting the service that automates access management
  2. Postman - To test the services hosted


🎲 Prerequisites
  1. User should have premium tradingview account and be able to publish invite only scripts by following the house rules.
  2. User should disable 2FA on their account in order to allow programs to login remotely and manage access.


🎲 Steps
All the steps are also mentioned in the githup repository: github.com/trendoscope-algorithms/Tradingview-Access-Management

🎯 Run the access management service

  1. Fork the replit repository: replit.com/@trendoscope/Tradingview-Access-Management
  2. Update Environment Variables tvusername and tvpassword
  3. 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.
  1. Check if the given tradingview username is valid or not
  2. Get the access details of given user to list of scripts identified by pub id.
  3. Delete the access to given user to list of scripts identified by pub id.
  4. Provide/Extend access to given user to list of scripts identified by pub id for specific duration.


🎲 Notes
  1. Please follow house rules while publishing and selling subscriptions to invite only scripts.
  2. 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.
Comments
TradingView
β‹…
Thanks for sharing your idea :)
loxx
β‹…
brilliant work
Yelli_trades
β‹…
very interesting, thanks!
MyCryptoParadise_Nathan
β‹…
Good Job
Wen2TradeOfficial
β‹…
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
KINGdewd
β‹…
Ditto
basictradingtv
β‹…
great education but too complex for me ;)
More