quickstart

command
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 2, 2026 License: MIT Imports: 7 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Command quickstart checks your STX API key, lists five open markets, reads your balance and positions, and with -place-order places a 1-cent limit buy and cancels it.

It reads a profile from ~/.stx/credentials:

[ontario-production]
region   = ontario
env      = production
key_id   = your-key-id
key_file = ~/.stx/ontario-production.pem

Run it:

go run . -profile ontario-production               # read only
go run . -profile ontario-production -place-order  # also a 1-cent round trip

Without -profile it uses STX_PROFILE, or [default]. STX_REGION, STX_ENV, STX_HOST, STX_KEY_ID and STX_PRIVATE_KEY override the profile, so it also runs with no credentials file at all.

On production -place-order uses real money: one contract at $0.01, which rests below the market and is cancelled straight away.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL