Skip to content

[Examples] Advanced Trading and Portfolio Management #17

@realfishsam

Description

@realfishsam

Purpose / Goal

Move beyond simple 'search and fetch' examples. We want to show developers how to build robust trading bots and portfolio trackers using PMXT.

Proposed Examples

  • Dynamic Limit Orders: Logic that checks the order book spread and places a bid 1 tick above the best bid.
  • Unified Portfolio Tracker: A script that aggregates balances and positions across BOTH Poly and Kalshi and calculates total net worth.
  • Slippage Calculator: An example that walks the order book to estimate how much $1,000 would move the price.

Easy Way to Get Started

  1. Browse the existing examples/ folders for both Python and TypeScript.
  2. Pick one of the scenarios above and create a new .py or .ts file.
  3. Use the Exchange classes to fetch data and log calculated results to the console.

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentationenhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions