Skip to content

Latest commit

 

History

History
85 lines (55 loc) · 4.64 KB

repo.md

File metadata and controls

85 lines (55 loc) · 4.64 KB

GitHub repository settings

Warning

The creation of new repositories has been suspended. We will continue to support the existing repositories. If you have questions or need assistance with your current repositories, contact us at [email protected]. You can expect a response within one business day after submitting your request. Additionally, if you are interested in having Pine Seeds back, please fill out this Google Form to leave your contact details and feedback. We appreciate your input and will consider it in our future developments.

Use GitHub as your backend: TradingView will provide you with a repository that you need to fork. Then you can store your data and update it. Please note that the name of forked repository should be the same as the initial one.

In the repository, GitHub actions are already configured. Actions check data after changes in forked repository and creates Pull Requests to the main TradingView repository. From the main repository, data uploads to the TradingView storage so data can be viewed on the TradingView charts. The results of the data checks will be available in the action logs.

Pre-setup

After you fork the repository, you will need to do a pre-setup. Then you can upload your data.

  1. Go to GitHub Settings → Password and authentication and configure two-factor authentication.

  2. Go to GitHub Settings → Developer settings → Personal access tokens → Tokens (classic) → Generate new token → Generate new token (classic). Generate Personal access token with the repo, workflow, and admin:org access scopes.

    GitHub access scopes

  3. In the forked repository, go to Settings → Secrets and variables → Actions.

  4. Click New repository secret, specify ACTION_TOKEN in the Name field, and paste created Personal access token into the Secret field. Select Add secret.

    Adding GitHub action secret

  5. Go to Actions → General → Actions permissions.

  6. Select the Allow all actions and reusable workflows checkbox and click Save.

    Selecting GitHub actions permissions

  7. Go to the Action tab and click I understand my workflows, go ahead and enable them.

    GitHub enable actions

  8. Disable workflow Upload data with Disable workflow button. Check that workflow Check data is enabled.

    GitHub disable workflow

Repository structure

Your forked repository contains the following files and directories.

.github/workflows    # GitHub action files
data                 # Your data CSV files
symbol_info          # Your JSON file with symbol information
README.md

Add data files

How to add new symbols and data described in tutorial

  • Add symbol description to the JSON file in the symbol_info/repo_name.json directory.
  • Upload CSV data files to the data/ directory.

Check the data upload

The Check data action validates data and loads it into the TradingView storage. You can find the results of the data checks in the action logs.

After updating the data files and completing the relevant actions, examine the log for errors.

  1. Go to the repository Actions tab.

  2. Check the Check data action. It's last run should be marked with a green tick like on the image below.

    GitHub successful action runs

It may take some time for the initial upload to be visible on the TradingView chart.

The data requirements are listed in the tables. We indicate which field failed the check in the log and explain why.

Note

If you have any questions or problems that you are unable to handle, please contact us at [email protected]. Our support team is available on weekdays from 7 AM to 4 PM UTC.