Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

bitra

Latest version: v0.14.1

Overview

Last scanned
28 Nov 2026
Published
28 Nov 2026
PyPI package Publisher: Bijective
51 Stars
13 Forks
8 Versions
1.0K Downloads
Python Repo language

Scan summary

bitra was last scanned on 28 Nov 2026 at version 0.14.1. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 8 versions; the latest was published on 28 Nov 2026.
  • Findings: No rules fired in version 0.14.1.
  • Downloads: 1,025 downloads.

Versions

8 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.14.1 LATEST 28 Nov 2026 No rules fired
0.14.0 11 Nov 2026 No rules fired
0.13.0 7 Nov 2026 No rules fired
0.12.2 31 Oct 2026 Not shown
0.12.1 29 Oct 2026 Not shown

No rules fired in 0.14.1

Findings

Findings for v0.14.1. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 0.14.1; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

TRA (trading research agents) is published as bitra on PyPI and runs as tra. Before 0.10.1 the package was called trading-research-agents, and the same package is still published under that name.

TRA is a crypto trading desk you run yourself. It reads the market, takes one decision, prices the round trip, holds the decision against limits you declare, and either writes it down or sends one order with its stop attached. The decision can be a rule in your own file, with no model in the loop, or a language model that proposes. Either way the system, with no model involved, computes every figure, applies every limit, sizes the trade and sends the order. Every decision and every refusal is kept on disk with its reason, so you can check afterwards what happened and why.

It is experimental. Settings change between versions, it has not been run with real capital by us, and the package ships no strategy that makes money. What it does give you: one order path to every exchange ccxt reaches; an arena that replays any rule over years of data net of your own costs, beside buy-and-hold and a random null; a typed judge that reads the day's headlines and can hold an entry on an adverse event; and the records to check every claim this page makes on your own data.


Contents

  • What it solves
  • How it is built
  • What we measured, and what it changed
  • Get started
  • The console
  • How one cycle decides
  • Venues
  • Models and providers
  • Toward real orders
  • Your money, your orders, your positions
  • Watching a desk, and what is kept
  • Command line
  • What it guarantees, and what is not built yet
  • Where it is going
  • Documentation

What it solves

The usual problem with trading software that decides What happens here
A model invents or miscalculates a number Models never compute. Every figure comes from the system, and a figure a model cites is checked against its brief, value included.
Nobody knows what a trade cost until it's done The round trip (fees, spread, impact, funding, slippage) is priced before an order exists, and a trade whose claimed edge doesn't clear it is refused.
The claimed edge is whatever someone hoped A rule desk claims the mean net per trade you measured in the arena, on your own costs; nothing guesses it.
A model "decides" to ignore your settings Your declared thresholds decide. A model's opinion is recorded beside them, never instead of them.
Something went wrong and there is no trace Each cycle keeps its snapshot, briefs, answers, the intent and what the venue said. Nothing is rewritten.
A timeout is read as "the order failed" An order with no answer is unknown and read back by its client order id; it is never sent twice.
A crash leaves a position with no stop The stop and take profit go to the venue with the entry, or right after the fill where the venue takes them no other way, so they survive this process dying.
Text from a feed tells a model what to do Headlines are read only by the typed judge, as closed questions, after a check for instructions addressed to a machine; no model can send an order or reach a key.
A strategy looks good on a lucky sample The arena replays it over years of recorded market beside buy-and-hold, momentum, its own fade and a seeded random null, net of costs, and says "sample too small" until the sample is not.

None of these is hypothetical. Why it is built this way lists the documented failures behind each one, with their sources.

How it is built

Three kinds of work, kept apart because they fail differently.

Does Never does
The system records the market, computes every figure, prices the round trip, applies your limits, sizes, signs what the risk gate approves, sends one order with its exits, settles every replayed idea guess, or carry a stale value forward as current
The decision a rule in your file (closed bars in, one idea or none out), or a language model that proposes a direction and its levels, citing the figures it used compute a number, size a trade, touch an order or a key, loosen a limit
Jev, the typed judge reads each headline as closed questions and returns a probability for each answer: which kind of event, whether it concerns this asset, whether it speaks to a machine decide a direction from numbers, compare dates, do arithmetic, size, or reach an order
flowchart LR
    subgraph inputs["MARKET INPUT"]
        market["Market data<br/>candles, book, funding,<br/>open interest and news"]
    end

    subgraph decision["DECISION"]
        proposal["Rule or model<br/>proposes direction and levels"]
        judge["Typed judge<br/>closed-question news signals"]
    end

    subgraph control["SYSTEM CONTROL"]
        cost["Cost engine<br/>fees, spread, impact,<br/>funding and slippage"]
        risk["Deterministic risk gate<br/>size, limits and mandate"]
        record[("Immutable records<br/>snapshots, answers,<br/>intent and refusals")]
    end

    subgraph execution["EXECUTION"]
        venue["ccxt venue<br/>one signed order"]
        exits["Entry with exits<br/>stop and take profit"]
    end

    arena["TRA Arena<br/>walk-forward replay<br/>cost-adjusted results"]

    market --> proposal
    market --> judge
    market --> arena
    proposal --> cost
    judge --> cost
    cost --> risk
    risk -->|"approved"| venue
    risk -.->|"refused"| record
    venue --> exits
    proposal -.-> record
    judge -.-> record
    risk -.-> record
    venue -.-> record

    style inputs fill:#eef6ff,stroke:#7aa7d8,stroke-width:1px
    style decision fill:#f7f1ff,stroke:#9b7cc7,stroke-width:1px
    style control fill:#fff7e8,stroke:#d2a65c,stroke-width:1px
    style execution fill:#ecf8f1,stroke:#65a880,stroke-width:1px
    style arena fill:#f2f4f7,stroke:#87939f,stroke-width:1px
    style record fill:#eef0f2,stroke:#87939f,stroke-width:1px
    style cost fill:#ffffff,stroke:#d2a65c
    style risk fill:#ffffff,stroke:#d2a65c
    style venue fill:#ffffff,stroke:#65a880
    style exits fill:#ffffff,stroke:#65a880

A rule is asked the same way by tra run and by tra arena: the closed bars before the decision, cut back to the last unbroken run. So the rule you replay is the rule you run, line for line. The package ships no rule of its own; examples/strategies/momentum_long.py is an example, and a test fails the build if a decision core appears inside the package.

The typed judge is kept to the job it is built for, and the system carries what its vendor lists as its weak points: recent headlines are chosen by when the system first saw them, so the judge never compares dates; each choice is asked in two orders, so a first-option bias shows as disagreement and the answer is dropped; one headline and its publisher go in each request and nothing else; and the weight of an event and its comparison with your threshold are arithmetic, done by the system.

What we measured, and what it changed

The design changed after we measured our own first version. Each study is in the repository's research notes with its script, so it can be run again.

Question What we found What changed
How much forecasting skill does a round trip of 15 bps demand? At a four-hour hold, a forecast's correlation with the next move has to be 0.12 to 0.20 just to break even on BTC, ETH and SOL; at a daily hold, 0.04 to 0.06 the example desk decides once a day and holds up to six days
Is there information in the last move at short horizons? Indistinguishable from zero at 1 to 12 hours on all three, even with maker fees shorter horizons stay available as experiments, measured in the arena
Are the simulated price paths an edge? Calibrated on average (within 1.5 points over 16,458 readings), and no better than chance at telling one moment from another the paths are a risk reading, not a gate ([targets].min_path_ev_bps is off unless declared)
Does a fixed rule separate from chance at any horizon? Only at the daily horizon, for a long-only momentum rule fixed before the run, on five years of hourly data the rule desk (tra init --profile rule) is the starting point; models are measured against it

These are replays, partly on the period the horizon was chosen on, three instruments and one cost model. They are reasons for the design, not a promise about the future. Replay them on your data:

for coin in BTCUSDT ETHUSDT SOLUSDT; do tra data klines $coin 2021-01-01 --to 2026-10-31; done
tra arena --tape klines --venue binanceusdm --channel bybit/taker-taker \
  --instruments BTCUSDT,ETHUSDT,SOLUSDT --from 2022-01-01 --to 2026-10-31 --interval 1d --context-interval 7d --hold-bars 6 \
  --rows buy_hold,momentum_long,random --spread-bps 2 --slippage-bps 2

Get started

A few minutes. The rule desk needs no model key.

1. Install. You need Python 3.11 or newer. uv is the quickest way:

uv tool install 'bitra[ccxt,anthropic,openai,google,data]'

That brings every model provider and every exchange in. Without uv, run pip install 'bitra[ccxt,anthropic,openai,google,data]' inside a virtual environment. To move to the newest release later:

uv tool upgrade bitra      # or: pip install -U 'bitra[ccxt,anthropic,openai,google,data]'
tra --version

That is the release, and master is the stable branch that holds it. develop, the default branch on GitHub, is where the next one is built and changes often; the rule desk and the event guard below are on develop and not yet in a release (more).

2. Make a desk. A desk is a folder holding your settings and everything it decides.

tra init my-desk --profile rule                     # the example daily rule, no model
tra init my-desk --profile autonomous --agent groq  # a language model as the decision, an experiment
cd my-desk
--agent Key in .env Model, when you name none
anthropic ANTHROPIC_API_KEY claude-opus-5-5
openai, deepseek, xai, openrouter, ... see Models and providers name one with --model; tra models <provider> lists them
google GEMINI_API_KEY gemini-flash-latest
groq GROQ_API_KEY (free tier) openai/gpt-oss-120b

Add --venue okx (or any ccxt id) to trade somewhere other than Bybit.

3. Declare what you measured, or add your key. A rule desk refuses to load until [strategy].edge_bps holds the rule's mean net per trade from your own tra arena run. An agent desk needs its model key: cp .env.example .env, then set it. Every command reads the .env next to strategy.toml on its own.

4. Check. tra check reads every setting against the others and names the one thing to fix next. A desk that is ready ends with ready to runtra run``.

5. Run. tra run decides once on live market data, in the sandbox: nothing leaves your machine. tra run --every 1d keeps deciding, once a day at the daily close. Or type tra on its own for the console, which takes the same commands.

6. When you want venue execution. Make the desk for that exchange from the start, and the rest is three commands:

tra init my-desk --profile rule --venue bitget
cd my-desk                       # put the exchange's keys in .env
tra keys --probe --prepare       # validates the account and prepares the venue settings
tra mandate --sign "Your Name" --venue-mode
tra check

--venue writes what that exchange needs into [execution]: a 3x isolated leverage, at most 200 per order, and how its stop and take profit are placed. Change any of it. How to make the key on each exchange is in Exchange accounts and keys, and Toward real orders has the whole path.

What a rule desk does before you change anything

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • pypi-releases bitra

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Copy of Template Design OX Blog (1)
Research

Thousands Of GitHub Accounts Hijacked With wfx-loot CI Secret Stealing Malware Via GitHub Actions & npm

Cry2Wolf: How to Tell a Real Bug from a Nothingburger
AI & VibeSec

Cry2Wolf: Not Every Branded Bug Deserves a Fire Drill

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Vulnerability Insights

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?

Frame 2085668439 (1)
Group 1261154229