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.5.52

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 the following commands in TimeBase Shell to generate sample data
set db dxtick://localhost:8011 
open
generate bars
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.
# Gradle for Java 
dependencies {

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

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

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

implementation 'deltix:deltix-gflog-api:2.0.40'
implementation 'deltix:deltix-gflog-core:2.0.40'
implementation 'deltix:deltix-dfp:0.10.21' // 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. Refer to Docker Compose to lauch TimeBase Server together with Web Admin.
  2. Login to registry.deltixhub.com.
  3. Open TimeBase Admin to view sample streams.
tip

TimeBase Web Admin default credentials: admin/admin.

docker run --rm --detach \
--name timebase-admin \
-p 8099:8099 \
registry.deltixhub.com/quantserver.docker/timebase/ws-server:0.5.93
info

Refer to TimeBase Admin Deployment for more information.

Samples

info

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.