Method to append a bar to an existing file in static provider
Author: Panache
Creation Date: 8/5/2020 4:18 PM
profile picture

Panache

#1
I'm writing a provider to update my existing .WL files. Is there a method to append the new bar to the .WL file without having to load the .WL file first?

I can append the new bar using BinaryWriter, but it isn't being recognized by Wealth-Lab as an additional bar. I assume the problem is the way I'm converting the date to binary

CODE:
Please log in to see this code.




profile picture

Eugene

#2
The only supported methods are listed here:

API | Creating Static Data Providers for Wealth-Lab 6

I strongly suggest to use supported methods only as there cannot be support for unsupported methods.
profile picture

Panache

#3
QUOTE:
The only supported methods are listed here
Are you being sarcastic? :) The page is blank.
profile picture

Eugene

#4
Not at all. You just have to log in to the Wiki with your account, now greenlighted to access the hidden content.
profile picture

Panache

#5
Thank you.

Back to my original question, I don't see a method to append the new bar to the existing file without having to load the existing file into a bars object, ie. LoadBarsObject/SaveBarsObject. Is appending the new bar part of what happens inside UpdateProvider or am I missing something?
profile picture

Eugene

#6
QUOTE:
I don't see a method to append the new bar to the existing file without having to load the existing file into a bars object, ie. LoadBarsObject/SaveBarsObject.

That's right. Load..., Append, and Save... is the way to go.
profile picture

Panache

#7
Thank you.
profile picture

Eugene

#8
At your service.
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).