Giter VIP home page Giter VIP logo

Comments (11)

rezaho avatar rezaho commented on June 26, 2024 6

Hi,

For Pro users you just need to change __create_connection method in tvdatafeed/tvDatafeed/main.py :

def __create_connection(self):
        logging.debug("creating websocket connection")
        self.ws = create_connection(
            "wss://data.tradingview.com/socket.io/websocket", headers=self.headers
        )

to the following:

def __create_connection(self):
        logging.debug("creating websocket connection")
        self.ws = create_connection(
            "wss://prodata.tradingview.com/socket.io/websocket", headers=self.headers
        )

from tvdatafeed.

golfwhiper28 avatar golfwhiper28 commented on June 26, 2024 2

Hi,

For Pro users you just need to change __create_connection method in tvdatafeed/tvDatafeed/main.py :

def __create_connection(self):
        logging.debug("creating websocket connection")
        self.ws = create_connection(
            "wss://data.tradingview.com/socket.io/websocket", headers=self.headers
        )

to the following:

def __create_connection(self):
        logging.debug("creating websocket connection")
        self.ws = create_connection(
            "wss://prodata.tradingview.com/socket.io/websocket", headers=self.headers
        )

Hi, i tried to set followed this but i still extend the max-number of candles 5k.

from tvdatafeed.

StreamAlpha avatar StreamAlpha commented on June 26, 2024

I haven't tried with a premium account. Try and check if you succeed in downloading more than 5k bars

from tvdatafeed.

galeese avatar galeese commented on June 26, 2024

I didn't manage to, yet trading view says it has 22k of candles available for the instrument i'm trying to download

from tvdatafeed.

djaym7 avatar djaym7 commented on June 26, 2024

Did you manage to get 22k ?@galeese

from tvdatafeed.

galeese avatar galeese commented on June 26, 2024

from tvdatafeed.

cooltechie007 avatar cooltechie007 commented on June 26, 2024

I also have premium account but unable to download 1 min data of more than 5K candles.

from tvdatafeed.

galeese avatar galeese commented on June 26, 2024

from tvdatafeed.

hary4ever avatar hary4ever commented on June 26, 2024

Thank you for the wonderful code.
I am a premium user but unable to get 20k bars and these bars i want of 1 second, but this functionality also not there in the code.
Please help.Thanks

from tvdatafeed.

EasonLyon avatar EasonLyon commented on June 26, 2024

prodata

Problem solved with this code. Hopefully can integrate into future update

from tvdatafeed.

GauravNimkar avatar GauravNimkar commented on June 26, 2024

@rezaho , Thanks a lot, it worked for me...

from tvdatafeed.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.