Kibot Updater command line mode

You can instruct the Kibot Updater program to automatically start the update process using the command line mode. This document provides detailed description of Kibot Updater command options.

The format of the command line is:

<executable> -d"<dest>" -<silent> -sp"<dest>|<intraday>|<daily>|<delete>|<regularsession>|<visible>"

All supported command line options are listed below:

Option Description
<executable> This is the path to the update package downloaded from the kibot.com server.
<dest> Sets the destination folder for unpacked files.
<silent> Represents the silent mode. If omitted, the dialog is shown which then waits for the user action. Switch s1 hides dialog and extraction progress. s2 hides the start dialog, but extraction progress is displayed.
<intraday> Represents the folder containing the intraday files that need to be updated.
<daily> Represents the folder containing the daily files that need to be updated.
<delete> Specifies whether to delete the delete the destination folder with the unpacked files after the update process is finished. 0 instructs the program to leave the extracted files, 1 instructs the program to delete files after the update process.
<regularsession> Specifies whether to include data from regular session only. This option instructs the program to ignore all pre/after market session data and use only the regular session data to update your existing files. Possible values are 0 and 1.
<visible> Specifies whether to hide the main user interface while updating data. All potential messages and errors will be saved to the log.txt file located in the destination folder specified by the <dest> parameter. Possible values are 0 and 1.

How to use the command line mode

Downloading updates

You can use your regular FTP client program or point your web browser to ftp.kibot.com to login and download new updates. Some FTP programs can automate the download process and download new updates using predetermined time intervals.

Our update files always have the start and the end date in their name. That makes it easy to determine which files you need to download. The format of the file name is yyyymmdd.exe for daily updates and yyyymmdd-yyyymmdd.exe for all other updates. For example, our daily update file for 4/4/2011 is named 20110404.exe. Our monthly update for March 2011 is named 20110301-20110331.exe.

Automating update process

Once you have the required file, you can execute it from Windows Task Scheduler or any other automation software using the built-in command line mode.

Let's say you want to perform a daily update of your data. Here is the example of the command line used to update intraday and daily data with the data from 4/4/2011:

c:\Kibot\20110404.exe -d"c:\Kibot\Updates\" -s2 -sp"c:\Kibot\Updates\|c:\Kibot\Data\Intraday\|c:\Kibot\Data\Daily\|1|0|1"

In the above example, the data you are updating is located in the c:\Kibot\Updates\Data folder, the content of the archive is unpacked to c:\Kibot\Updates,  the path to the update package downloaded from the Kibot.com server is c:\Kibot\20110404.exe

Calling the Kibot Updater program directly

The update package is a regular, self-extracting RAR archive. You can rename the extension of the file from EXE to RAR and treat it like any other file with an RAR extension and use almost any archiver program to extract the content of the file to a folder. Once you do that, you will find two folders containing the data: Intraday and Daily. There is also a text file in the root folder which contains the list of the files that are adjusted. Here is the structure of every update file:

Daily <folder>
Intraday <folder>
adjusted_files.txt
KibotUpdater.exe

After extracting the files, you can start the update process automatically by executing the KibotUpdater.exe file with the following parameters (explained above):

KibotUpdater.exe "<dest>|<intraday>|<daily>|<delete>|<regularsession>|<visible>"

Implementing your own update procedure

You can use the files located in the Daily and Intraday folders to implement your own update mechanism and update your files (or database) without the Kibot Updater tool. Each instrument is represented with a separate file which contains data for the specific time period. You can create a custom program and programmatically read the comma-delimited text files. Our data format is explained here.