- ago
Is it possible to create New DataSet from History Data Provider's class?

I use this code for it (and call it only once from GetHistoryInternal()) :
CODE:
private void AddDataSet() { DataSet dataSet = new DataSet(); dataSet.Name = "Tinkoff"; dataSet.PreferredDataProviderName = Name; dataSet.ReadOnlySymbols = true; dataSet.IsUserCreated = false; dataSet.Glyph = Glyph; dataSet.DataProvider = this; app.AddLogItem(Name, "Creating dataset...", Color.Gray, null, this); app.DataSets.Add(dataSet); }


but nothing to happen.
What's my wrong?
0
1,259
8 Replies

Reply

Bookmark

Sort
Cone8
 ( 24.57% )
- ago
#1
More context required.

For example, Where is the code running? i.e., is it in a class that derives from DataSetProviderBase?
0
- ago
#2
No, it is from base class for history data provider.

CODE:
public class TinkoffHistoricalDataProvider: DataProviderBase
0
- ago
#3
Like Cone suggests, DataSets should be added by a DataSetProvider.
https://www.wealth-lab.com/Support/ExtensionApi/DataSetProvider
0
- ago
#4
Are you developing a broker provider for the Russian brokerage Tinkoff? If/When it reaches production quality, would you be interested in submitting it as a third party extension to our marketplace? You could then earn money if WL7 subscribers from Russia purchase your extension.

https://www.wealth-lab.com/Extension
1
- ago
#5
Yes. Okay.
How mechanism of licencing is working in thirdparties extensions?
0
Glitch8
 ( 10.41% )
- ago
#6
If you sell your extension through our marketplace and web site, we collect 20% of payments and forward the remaining 80% to you.
0
- ago
#7
I mean do you have any examples or best practices how it to do - implementing some key api to protect extension software from free using?
Where I can see it?
0
- ago
#8
We don't publish such guidelines or examples because protection techniques are up to you as the developer.
0

Reply

Bookmark

Sort