Skip to main content

Quick Start Guide

Step 1: Start TimeBase

Run TimeBase in a Docker container.

tip

You can also make this step using TimeBase Installer.

docker run --rm --detach \ 
--name timebase-server \
-p 8011:8011 \
registry.deltixhub.com/quantserver.docker/timebase/server:5.4.74

Step 2: Generate Sample Data

Run the following command to generate a sample data into a new stream called "bars".

Start TimeBase Shell CLI
docker exec -it timebase-server /timebase-server/bin/tickdb.sh
Run to generate sample data
tickdb -exec set db dxtick://localhost:8011 -exec open -exec generate bars -exec exec exit
tip

You can also make this step using TimeBase Installer.

Step 3: Dependencies

info

Refer to Client Libraries to get artifacts repositories for clients.

Install the required dependencies.
# Graddle for Java 
dependencies {

implementation "deltix.qsrv.timebase:deltix-timebase-client:5.4.65"
implementation "deltix.qsrv.timebase:deltix-timebase-api:5.4.65"
implementation "deltix.qsrv.timebase:deltix-timebase-pub:5.4.65"

implementation "deltix.qsrv:deltix-timebase-api-messages:5.4.71"

implementation "deltix.qsrv:deltix-commons-util:5.4.23"
implementation "deltix.qsrv:deltix-commons-lang:5.4.23"
implementation "deltix.qsrv:deltix-commons-collections:5.4.23"

implementation 'deltix:deltix-gflog-api:2.0.40'
implementation 'deltix:deltix-gflog-core:2.0.40'
implementation 'deltix:deltix-dfp:0.10.17' // Decimal datatype

runtime 'deltix:deltix-thread-affinity:1.0.3'
}

Step 4: Read Data

Create a TimeBase Cursor to read data from a sample stream.

package deltix;
import deltix.qsrv.hf.tickdb.pub.*;

public class ReadStream {
public static void main(String[] args) {
DXTickDB db = TickDBFactory.createFromUrl ("dxtick://localhost:8011");
db.open (false);
DXTickStream stream = db.getStream("bars");

try (TickCursor cursor = stream.select(Long.MIN_VALUE, new SelectionOptions(true, false))) {
while (cursor.next()) {
System.out.println(cursor.getMessage());
}
}
}
}
info

Refer to Client Libraries to view more samples.

Step 5: Manage TimeBase in Admin Application

TimeBase Web Admin is a Web client you can use to manage TimeBase.

tip

You can also make this step using TimeBase Installer.

  1. Launch TimeBase Admin in a Docker container.
  2. Login to registry.deltixhub.com.
  3. Open TimeBase Admin to view sample streams.
docker run --rm --detach \
--name timebase-admin \
-p 8099:8099 \
registry.deltixhub.com/quantserver.docker/timebase/ws-server:0.4.23
info

Please refer to TimeBase Admin Deployment for more information.

Samples

info

Please refer to Client Libraries for more information.

Solution Generator

Use TimeBase Solution Generator (Solgen) to generate ready-to-go code samples in several supported languages.

TimeBase Deployment Options

In the Deployment section you may find various TimeBase deployment options.