Package 'wickragym'

Title: Deterministic Gymnasium-Compatible Backtest Environment
Description: R bindings for wickra-gym over its C ABI hub: build a Gymnasium-compatible backtest environment from a JSON spec, load candles and drive it with reset/step commands - the same JSON protocol as the CLI and every other language binding, with byte-identical trajectories.
Authors: kingchenc [aut, cre]
Maintainer: kingchenc <support@wickra.org>
License: MIT + file LICENSE | Apache License 2.0
Version: 0.2.0
Built: 2026-10-07 09:00:52 UTC
Source: https://github.com/wickra-lib/wickra-gym

Help Index


Apply a command JSON and return the resulting response JSON.

Description

Apply a command JSON and return the resulting response JSON.

Usage

wkgym_command(env, cmd_json)

Arguments

env

An environment handle from [wkgym_new()].

cmd_json

A command JSON string ('load', 'reset', 'step', 'spec', 'version').

Value

The response as a JSON string.


Create a gym environment from a spec JSON.

Description

Create a gym environment from a spec JSON.

Usage

wkgym_new(spec_json)

Arguments

spec_json

An 'EnvSpec' JSON string.

Value

A 'wickra_gym' environment handle (an external pointer).


The wickra-gym library version.

Description

The wickra-gym library version.

Usage

wkgym_version()

Value

A version string.