Skip to content

TradeBot's Indodax sender: a launcher for a Mac - #124

Open
juw12 wants to merge 1 commit into
mainfrom
agent/tradebot-sender-on-a-mac
Open

juw12 wants to merge 1 commit into
mainfrom
agent/tradebot-sender-on-a-mac

Conversation

@juw12

@juw12 juw12 commented Nov 23, 2026

Copy link
Copy Markdown
Owner

Adds apps/tradebot/indodax/run-mac.sh and a README section, 'On a Mac'.

Why: the Windows PC the sender runs on went down on 22 Nov 2026 (its last report to TradeBot was 16:50:52 WIB, 0 open positions), and Juwen asked for the sender on the MacBook Pro.

  • The same switches as run-windows.ps1 (show, once, check, clear, test), plus background on | off: a launch agent that keeps the sender running under caffeinate -i.
  • It takes the first Python that is 3.10 or newer: on Apple's Python 3.9 three tests fail (two of the desk window, one of the Trade API 2.0 client).
  • It points Python at macOS's certificate list unless SSL_CERT_FILE is set: a python.org Python has none, and every call failed with CERTIFICATE_VERIFY_FAILED.

Checked on an Intel MacBook Pro: 424 tests pass with Python 3.14; TradeBot's server, indodax.com and api.indodax.com answer; without a sender key the launcher says the sender is off and starts nothing. Not checked: a cycle with a key, the key check, a real order, and the launch agent with a sender running.

The same switches as run-windows.ps1, plus background on and off (a launch agent
under caffeinate). It takes the first Python that is 3.10 or newer, because three
tests fail on Apple's 3.9, and points Python at macOS's certificate list, because
a python.org Python has none and every call then fails.

Written on the MacBook Pro on 23 Nov 2026, when the PC the sender ran on was down.
424 tests pass there. No cycle with a key has run on a Mac yet.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant