Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I don't understand how to work with your code. #218

Open
SruckD opened this issue Sep 26, 2023 · 8 comments
Open

I don't understand how to work with your code. #218

SruckD opened this issue Sep 26, 2023 · 8 comments
Assignees
Labels
bug Something isn't working

Comments

@SruckD
Copy link

SruckD commented Sep 26, 2023

Hi, absolutely nothing is working. I understand your code parses sessionid data and so on, but I'm an absolute zero in programming. I can't figure out how to work with your code. There are no instructions and other things anywhere. from the instructions it is simply written that you need to import the library and that's it. Please write me how to work with your code, I slowly started to understand VS and I can't beat your code in any way (Look, I have a number of questions.

  1. What do I need to run in order to, for example, get private indicators (I created my own and want to use it, I'll tell you right away I haven't bought a premium). Do I need to launch a browser or something else, if so, which browser?
  2. When running almost any of your examples, errors are returned-
    Get drawings(Please specify a layoutID).
    User login (Please specify your username/email)
    AllPrivateIndicators(Please specify your 'sessionid' cookie)
    That is, I literally can't run more than one of your code.
  3. It turns out that your code does not parse the data and I need to specify the session ID and other parameters myself.
  4. How do I run your code? A step-by-step instruction would be helpful.
    I understand that this code is written for more experienced JS users who understand what comes from where, but damn, I also want to use your cool code....
@SruckD SruckD added the bug Something isn't working label Sep 26, 2023
@clins1994
Copy link
Collaborator

clins1994 commented Sep 29, 2023

@SruckD this is a good observation ... I actually agree with improving the documentation with better step by step tutorials for the less experienced developers. Something like a quick start. As someone who tried using this API recently I can try to help with this. The thing is the codebase I was trying to add this to is in TypeScript so I hand picked what I needed from TradingView-API and made a TypeScript version of it ...

The most important part is

  1. Getting the login to work (it will give you the 'sessionid' cookie)
  2. You need to then store this information yourself and re-use it to run the other functions

I ran into captchas when trying to login so I could not use the user login. I had to manually login in a browser and copy paste the cookies in my database and then use that information to use the "TradingView-API inspired" TypeScript functions I made

This is not a promise but I will try to make a short guide later ...

@SruckD
Copy link
Author

SruckD commented Sep 29, 2023

Thanks Matthew, I’m slowly starting to understand your code. I would really appreciate it if you could help me figure out the strategy analysis part. I need the console to output long and short values, I’m going to put this data into other code to implement a trading bot on the tinkoff investments platform (they have a free api, unlike trading view :)

@clins1994
Copy link
Collaborator

@SruckD I'm not Matthew by the way, just another user of his great API 😃 Figuring out the strategy analysis ... I'll leave that to Matthew or someone more experienced in the subject (I'm just a Software Engineer and a beginner at investing). Didn't know about tinkoff. Free API sounds nice. Good luck!

@SruckD
Copy link
Author

SruckD commented Sep 29, 2023

oh sorry for my mistake)

@curtido
Copy link

curtido commented Sep 30, 2023

Hi people,

If we can get a step by step wiil be amazing, Im a .net developer and I dont understand too much about this project but I really need to put work to use on my personal web application. If anyone can help I really appreciate!

Thanks

@SruckD I'm not Matthew by the way, just another user of his great API 😃 Figuring out the strategy analysis ... I'll leave that to Matthew or someone more experienced in the subject (I'm just a Software Engineer and a beginner at investing). Didn't know about tinkoff. Free API sounds nice. Good luck!

Hi @clins777 ,

If we can get a step by step wiil be amazing, Im a .net developer and I dont understand too much about this project but I really need to put work to use on my personal web application.
If anyone can help I really appreciate!

Thanks

@atengberg
Copy link

Perhaps a bounty on gitcoin would speed things up.

@clins1994
Copy link
Collaborator

clins1994 commented Dec 1, 2023

@atengberg I'd appreciate that. It's been hard to spend my free time on this idea 😅

@clins1994
Copy link
Collaborator

clins1994 commented Dec 2, 2023

@SruckD @curtido @atengberg

It is now possible to sponsor me via GitHub 🎉

If I get some sponsor I can focus on this more ❤️

https://github.com/sponsors/clins777?o=esb

On another note, Mathieu sent out a Google Form on the Telegram community chat that should help you get connected to some guys for long term help as well

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants