Plug-in API
THE FOLLOWING API IS WORK IN PROGRESS AND MAY NOT BE 100% FUNCTIONALLY STABLE.
THIS IS PRELIMINARY INFORMATION AND SUBJECT TO CHANGE.

The YLoader data source plugin API consists of several functions which must be exported by a plug-in dll. The C prototypes for these APIs are declared in yloader.h. These APIs can be used in applications developed in C, C++, Visual Basic, Excel or any other languages and environments that allow direct dll calls.

A data source plug-in must be implemented in a dll with the extension .ypi.

Each data source plug-in must have an unique Id (UUID).

All strings returned by various plug-in APIs consist of 8 bit characters (they can be UTF8 encoded, although international characters are not currently supported in YLoader) and are 0 terminated. The plug-in can allocate them as desired. After each string has been processed by the application, a call to freeString will be made so the plug-in can deallocate the string, if necessary.

Here are the current plug-ins APIs:

const char* getShortName();
const char* getName();
const char* getDescription();
const char* getId();
const char* getDeveloperName();
const char* getDeveloperURL();
const char* getDeveloperEmail();
const char* getVersion();
const char* getAPIVersion();
const char* getYDataSourcePluginInfo();
unsigned int getMaxConnections();
bool getCanAdjust();
bool getCanUnAdjust();
const char* getFirstDate();
const char* getSupportedPeriods();
const char* getData( const char* symbol, const char* startDate, const char* endDate, Period period, bool adjusted, bool& error );
void freeString( const char* str );

Copyright © 2017 YLoader.com
http://www.yloader.com

info@yloader.com