For quants›The SDK

Nine languages. Every tool.

Python, JavaScript, C#, Go, Java, C++, Julia, R and Rust — each a typed client generated from one catalogue, so every one of the 292 tools is a method in every language, with jobs, streams and a retry that waits out the rate limit.

9
languages
292
methods each
1
catalogue
The SDKillustration
One call — 200 candles of 13 minutes — in each of the nine languages, and what it answers.

SDK

What it does, part by part.

Generated, never retyped

Every language from one catalogue

The SDKs are generated from the capability catalogue the server serves, so a method's name, its arguments and their types are the tool's — in each language's own style.

  • Typed arguments and answers
  • A major version mismatch refused before any call
  • The Docs' examples run against a real Bentrix
In the Docs
One catalogue generating nine libraries.

Every interval

Read what the interface never offered

Ask for any interval you can write — 13 minutes, 77, 30 seconds, 50 ticks — and get the candles the chart would draw, up to the clock and never past it.

  • Closed candles, or the forming one flagged
  • Pages back through the whole recording
  • Several intervals for one model's input
In the Docs
Several intervals cut at one instant.

Streams and jobs

Act once per close

Follow a stream of closed candles with a cursor and act on each once; start long work — a run, a batch — and wait for its job.

  • wait_for with a cursor
  • A job reports while it waits for you
  • Busy answers retried by the client
In the Docs
Closed candles arriving.

Your own indicator

Draw what your program computes

Declare a custom study — its lines, colours and panes — and hand it the values your program computes; Bentrix draws it like a built-in, on any chart type.

  • Up to 64 lines
  • On candles or on Renko bricks
  • A Python indicator by a decorator
In the Docs
A study drawing itself.

In code

Your first call

The selected workbench, then 200 candles of 13 minutes — written by the same generator the SDKs come from.

state = client.workspace.get_state(depth="benches")
bench = state["selected"]
bars = client.data.bars_get(bench, "EURUSD", "M13", limit=200)
print("columns:", bars["columns"])

How it works

Four steps, in order.

  1. InstallThe SDK of your language, from the SDK folder.
  2. Run with Bentrix openIt finds Bentrix and pairs by itself.
  3. CallEvery tool is a method.
  4. Follow the guidesFifteen step-by-step guides in all nine.

Packages

Learn on Free. Trade on Plus. Build on Pro.

What each package holds of this page. While the beta lasts, Plus and Pro are free to take: you choose your package on your account page, with no payment.

On this pageFreePlusPro
A program that acts, not only reads—✓✓
A program's batches—✓✓
Bentrix without a window——✓

∞ is no limit. What exceeds a package is locked, never deleted.Every package side by side

Good to know

What to expect, plainly.

Nothing typed

No address and no key: the client finds the Bentrix on this computer and pairs.

Same as an agent

A program has the scopes its pairing was given, like any agent.

Run, not just written

The Docs' guides are run in Python, Go, C++ and Rust against a running Bentrix.

Bentrix is in beta. Plus and Pro are free to take.

One download for Windows. Choose your package on your account page, with no payment, while the beta lasts; a feature of Plus or Pro carries its badge in the application, so nothing changes by surprise.