Skip to content

Fix CLI buy/sell payload types#36

Open
krandder wants to merge 1 commit into
mainfrom
fix/cli-api-compat
Open

Fix CLI buy/sell payload types#36
krandder wants to merge 1 commit into
mainfrom
fix/cli-api-compat

Conversation

@krandder

Copy link
Copy Markdown
Contributor

Summary

  • serialize CLI buy budgets and sell amounts as strings to match the live API schema
  • stop parsing these values as float in the CLI entrypoint
  • add a compatibility regression test that validates CLI payloads against the API request models

Why

Issue #35 is only partially resolved on main: futarchy activity already exists, but futarchy buy and futarchy sell still post numeric JSON values while the live API expects strings.

Validation

  • python3 -m py_compile cli/futarchy_cli/api.py cli/futarchy_cli/main.py core/test_cli_compat.py
  • pytest -q core/test_cli_compat.py core/test_api.py
  • python3 -m futarchy_cli.main buy --help
  • python3 -m futarchy_cli.main sell --help

@netlify

netlify Bot commented Mar 17, 2026

Copy link
Copy Markdown

Deploy Preview for futarchy-ai ready!

Name Link
🔨 Latest commit f0d3416
🔍 Latest deploy log https://app.netlify.com/projects/futarchy-ai/deploys/69b9cc1d5c2f53000898a94c
😎 Deploy Preview https://deploy-preview-36--futarchy-ai.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

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