Skip to content

Intraday Updates - Apple Script Help Needed #13

@obyone

Description

@obyone

I'm looking to try and add intraday updates to share prices. I have looked into it and have created a simple Python script using a feed from Alpha Vantage which provides free real-time stock updates.

I have completed the first half of a proof of concept that fetches the required data from Alpha Vantage and I'm not looking into updating the database accordingly.

For two reasons I'm thinking that it would be better to do this with AppleScript using the 'tell application' method but I don't know what apple scripts are available within Investoscope or which I should use. The first reason is that I'm assuming if the backend database is updated then this won't automatically trigger an update to the GUI and secondly I cannot figure out the timestamp format for the 'ztime' field in the 'zquote' table.

I therefore have three questions:

Does anyone know what AppleScript commands are available to use in Investoscope and are there any details on how to use?

Does anyone know how to decode the timestamp field that is used in the SQLite database for Investoscope? For example I have a value of '557427600' which equates to the 31st August 2018 18:00 (UK timezone) but I don't know how to convert to this value as it doesn't seem to be the standard unix timestamp

Is there a better way of achieving what I want to do? Any pointers or guidance would be much appreciated.

I'm happy to share my code, if it can be incorporated into this project great, if not then I can distribute it separately, go easy on me as I'm not the most proficient programmer :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions