Skip to content

Conversation

@Bezoutoff
Copy link

@Bezoutoff Bezoutoff commented Oct 26, 2025

  • Create limit_order_example.py with detailed Russian comments
  • Update .env.example with comprehensive configuration guide
  • Add ИНСТРУКЦИЯ_RU.md with complete Russian language instructions
  • Include examples for both proxy and EOA wallet types
  • Add step-by-step guide for placing limit orders

🤖 Generated with Claude Code

Overview

Description

Testing instructions

Types of changes

  • Refactor/enhancement
  • Bug fix/behavior correction
  • New feature
  • Breaking change
  • Other, additional

Notes

Status

  • Prefix PR title with [WIP] if necessary (changes not yet made).
  • Add tests to cover changes as needed.
  • Update documentation/changelog as needed.
  • Verify all tests run correctly in CI and pass.
  • Ready for review/merge.

Note

Adds Russian-language examples, diagnostics, and docs for placing Polymarket limit orders, including env setup and signature_type handling.

  • Examples/Scripts:
    • limit_order_example.py: Sample client to create/derive API creds, fetch markets, and prepare a limit order.
    • place_limit_order.py: Ready-to-run script posting a GTC limit order with existing API creds; interactive confirmation; shows midpoint/orderbook.
    • check_signature_type.py: Diagnostic tool to find working signature_type/funder and create new API keys.
    • test_existing_keys.py: Verifies existing API keys across signature_type/funder combinations and signs a test order.
  • Env configuration:
    • Update .env.example; add .env.template with Russian guidance; support optional FUNDER and configurable CLOB_API_URL.
  • Documentation:
    • Add ИНСТРУКЦИЯ_RU.md with step-by-step guide, signature_type matrix, and common operations.

Written by Cursor Bugbot for commit 2ae2999. This will update automatically on new commits. Configure here.

- Create limit_order_example.py with detailed Russian comments
- Update .env.example with comprehensive configuration guide
- Add ИНСТРУКЦИЯ_RU.md with complete Russian language instructions
- Include examples for both proxy and EOA wallet types
- Add step-by-step guide for placing limit orders

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
@Bezoutoff Bezoutoff requested a review from a team as a code owner October 26, 2025 05:04
- Create place_limit_order.py with pre-configured token ID
- Add .env.template for easy configuration
- Include confirmation prompt before order placement
- Add market data fetching and order status tracking
- Supports both proxy and EOA wallet types

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
- Update input validation to accept 'y' or 'yes' for confirmation
- Change prompt text from (yes/no) to (y/n) for clarity

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
cursor[bot]

This comment was marked as outdated.

- Add test_existing_keys.py to verify existing API credentials
- Add check_signature_type.py to create new credentials with correct signature type
- Scripts test multiple configurations automatically
- Help users resolve 'invalid signature' errors

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
- Change signature_type from 1 to 2 (works with MetaMask + Polymarket Proxy)
- Add clearer comment explaining signature type options
- Tested and verified with successful order placement

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
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.

2 participants