Set_price.py

richard's Avatar

richard

01 Jan, 2019 11:13 PM

Running the set_price.py in the python scripting zeroes out existing security data when the moneydance file is closed. Any ideas as to what is going wrong.

  1. Support Staff 1 Posted by Sean Reilly on 02 Jan, 2019 11:15 AM

    Sean Reilly's Avatar

    Hi Richard,
    Ah yes, sorry about that. We moved a while ago to requiring a sync/save call for snapshots to prevent an overflow of history entries which were coming from calls to create snapshots which weren't meant to be saved. Anyway, you should just change any calls to security.setSnapshotInt(dateint, price) to invoke syncItem() on the result: security.setSnapshotInt(dateint, price).syncItem().

    I'll update the sample code now too.

    Thanks!

    Sean Reilly
    Developer, The Infinite Kind
    http://infinitekind.com

  2. 2 Posted by Richard on 03 Jan, 2019 02:29 AM

    Richard's Avatar

    Thank you for the prompt response.

  3. System closed this discussion on 04 Apr, 2019 02:30 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

14 Dec, 2024 07:05 PM
14 Dec, 2024 06:35 PM
14 Dec, 2024 06:22 PM
14 Dec, 2024 05:15 PM
14 Dec, 2024 03:08 PM