Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

importing cell from Google Sheets

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    importing cell from Google Sheets

    I have been trying to import a cell or cells from google sheets into my strategy without much success. Has anyone managed to figure this out? One option would be to export the cell from google sheets into a .csv file and have my script read this file, while the other that I see would be to directly access google sheet and scrape the data. On both ends I have been unsuccessful. Not looking to bring stock quotes just data that I want to assign into a variable within my script. Thanks in advance.

    #2
    Are you authenticating yourself correctly to Google?
    Are you using a service account or your own user account?
    Are you sure these steps are working correctly?

    https://developers.google.com/sheets...es/authorizing


    Reading a .csv file can be relatively simple and can be vastly easier to code.
    Which one are you wanting to achieve first?

    https://stackoverflow.com/questions/...-into-an-array
    https://stackoverflow.com/questions/...-c-with-header

    Comment


      #3
      Originally posted by bltdavid View Post
      Are you authenticating yourself correctly to Google?
      Are you using a service account or your own user account?
      Are you sure these steps are working correctly?

      https://developers.google.com/sheets...es/authorizing


      Reading a .csv file can be relatively simple and can be vastly easier to code.
      Which one are you wanting to achieve first?

      https://stackoverflow.com/questions/...-into-an-array
      https://stackoverflow.com/questions/...-c-with-header
      Thanks David, I have my reader working well within my script and I am able to scrape data from other sites as well but struggling with Google Sheets getting specific cells so authentication may be my problem at this stage. I will work on that to see what I can manage. All My Best

      Comment


        #4
        Hello NFT-Trader,

        Thank you for your reply.

        I would agree with bltdavid here. While accessing Google Sheets is not officially supported, going the CSV route would be simpler. I agree that you're likely running into an authorization issue with Google Sheets - I'd check out those links he provided.

        Please let us know if we may be of further assistance to you.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by charlesugo_1, 05-26-2026, 05:03 PM
        0 responses
        49 views
        0 likes
        Last Post charlesugo_1  
        Started by DannyP96, 05-18-2026, 02:38 PM
        1 response
        141 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 05-11-2026, 05:56 AM
        0 responses
        160 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 05-10-2026, 08:12 PM
        0 responses
        96 views
        0 likes
        Last Post CarlTrading  
        Started by Hwop38, 05-04-2026, 07:02 PM
        0 responses
        275 views
        0 likes
        Last Post Hwop38
        by Hwop38
         
        Working...
        X