saveload_backend
saveload_backend copied to clipboard
Save/Load Layout Charts in PostgresQL
I would like to know how to save / read the layouts on my server I have postgres installed I would like to know how to use ["Use_localstorage_for_settings"], Charts_storage_url Client_id User_id
I followed the tutorial that imports the tables into my empty database
03 tables have been created, django_migrations Model_chart Model_studytemplate
I could not evolve
Somebody help me, please
Hi, Use_localstorage_for_settings - it is not about charts, but about saving properties to LocalStorage charts_storage_url - url to your save/load server client_id - choose unique id for your company user_id - every user should have different id, you can use username here
Is there no official documentation on this implementation?
Charts_storage_url - url to your save / load server I already configured it
Client_id - choose unique id for your company Which table to put this in?
User_id - every user should have different id, you can use username here Which table to put this in?
Do I have to clone your repository?
What kind of structure to use? How to connect to the Bank?
These questions that I am not understanding
My Platform Ubuntu 14 + Apache Webserver + Postgres
Your requirements are Django + Python that left me a bit confused
And what files are available for download? Where do I put it? Inside my webserver?
Thank you
if you do these steps you'll get your save/load server configured and ran:
https://github.com/tradingview/saveload_backend/blob/master/README.md
Regarding your questions. If you follow the steps from above you won't need to think about the structure of the tables. They will be created automatically. If you want to build your own server it is up to you what tables you will use.
Understood. I was able to import the tables into a postgres database. But I still can not understand what I need to modify
I have the tables
Now I need to know what to change so I can save the profile using the buttons
My code
TradingView.onready(function()
{
var widget = new TradingView.widget({
fullscreen: true,
symbol: '',
interval: "",
container_id: "tv_chart_container",
// BEWARE: no trailing slash is expected in feed URL
//datafeed: new Datafeeds.UDFCompatibleDatafeed("http://demo_feed.tradingview.com"),
datafeed: new Datafeeds.UDFCompatibleDatafeed("http://200.98.162.184"),
library_path: "/mobile_tv4/charting_library/",
locale: getParameterByName('lang') || "pt",
// Regression Trend-related functionality is not implemented yet, so it's hidden for a while
drawings_access: { type: 'black', tools: [ { name: "Regression Trend" } ] },
disable_features: ["use_localstorage_for_settings"],
enabled_features: ["study_templates"],
charts_storage_url: 'http://saveload.tradingview.com',
charts_storage_api_version: "1.1",
client_id: '',
user_id: ''
});
});
Preciso mudar charts_storage_url: 'http://saveload.tradingview.com', charts_storage_api_version: "1.1", client_id: '', user_id: ''
to ?????
charts_storage_url: YOUR BACKEND URL charts_storage_api_version: "1.1", client_id: YOUR COMPANY NAME user_id: USER_NAME (it should be set to separate charts between users. otherwise all of them will have the same list of charts)
There is no document describing step by step. I have not figured out how to get my data.
I have the same problem. i set up the database as Readme.
But i get a server error like this when i try to save:
http://192.168.1.7:8001/1.1/charts?client=tradingview.com&user=public_user_id Error response
Error code: 404
Message: File not found.
Error code explanation: HTTPStatus.NOT_FOUND - Nothing matches the given URI.
am i missing something? Im not very familiar with Django, does anyone have an example in Flask?
I have a problem with loading the saved template. Please can someone point me in the right direction:
The code
- Lists my saved charts
- Saves the template values to my local database.
But when I click on load template it shows me the saved templates but when I click on them it does nothing.
Not working:
- Load Chart
- Delete Chart
enabled_features: ["study_templates"], charts_storage_url: 'Local Storage Url', charts_storage_api_version: "1.1", client_id: 'My Company Name', user_id: 'USER ID',
any real guide from these morons of tradingview?