@@ -12,7 +12,6 @@ pip install pmxt
1212
1313``` python
1414import pmxt
15- from datetime import datetime
1615
1716# Initialize exchanges (server starts automatically!)
1817poly = pmxt.Polymarket()
@@ -466,12 +465,12 @@ for pos in positions:
466465```python
467466@ dataclass
468467class UnifiedMarket:
469- id : str #
470- title: str #
471- outcomes: List[MarketOutcome] #
472- volume24h: float #
473- liquidity: float #
474- url: str #
468+ id : str #
469+ title: str #
470+ outcomes: List[MarketOutcome] #
471+ volume24h: float #
472+ liquidity: float #
473+ url: str #
475474```
476475
477476-- -
@@ -482,9 +481,9 @@ class UnifiedMarket:
482481```python
483482@ dataclass
484483class MarketOutcome:
485- id : str #
486- label: str #
487- price: float #
484+ id : str #
485+ label: str #
486+ price: float #
488487```
489488
490489-- -
@@ -495,12 +494,12 @@ class MarketOutcome:
495494```python
496495@ dataclass
497496class PriceCandle:
498- timestamp: int #
499- open : float #
500- high: float #
501- low: float #
502- close: float #
503- volume: float #
497+ timestamp: int #
498+ open : float #
499+ high: float #
500+ low: float #
501+ close: float #
502+ volume: float #
504503```
505504
506505-- -
@@ -511,8 +510,8 @@ class PriceCandle:
511510```python
512511@ dataclass
513512class OrderBook:
514- bids: List[OrderLevel] #
515- asks: List[OrderLevel] #
513+ bids: List[OrderLevel] #
514+ asks: List[OrderLevel] #
516515```
517516
518517-- -
@@ -523,8 +522,8 @@ class OrderBook:
523522```python
524523@ dataclass
525524class OrderLevel:
526- price: float #
527- size: float #
525+ price: float #
526+ size: float #
528527```
529528
530529-- -
@@ -535,11 +534,11 @@ class OrderLevel:
535534```python
536535@ dataclass
537536class Trade:
538- id : str #
539- price: float #
540- amount: float #
541- side: str #
542- timestamp: int #
537+ id : str #
538+ price: float #
539+ amount: float #
540+ side: str #
541+ timestamp: int #
543542```
544543
545544-- -
@@ -550,17 +549,17 @@ class Trade:
550549```python
551550@ dataclass
552551class Order:
553- id : str #
554- market_id: str #
555- outcome_id: str #
556- side: str #
557- type : str #
558- price: float #
559- amount: float #
560- status: str #
561- filled: float #
562- remaining: float #
563- timestamp: int #
552+ id : str #
553+ market_id: str #
554+ outcome_id: str #
555+ side: str #
556+ type : str #
557+ price: float #
558+ amount: float #
559+ status: str #
560+ filled: float #
561+ remaining: float #
562+ timestamp: int #
564563```
565564
566565-- -
@@ -571,14 +570,14 @@ class Order:
571570```python
572571@ dataclass
573572class Position:
574- market_id: str #
575- outcome_id: str #
576- outcome_label: str #
577- size: float #
578- entry_price: float #
579- current_price: float #
580- unrealized_pn_l: float #
581- realized_pn_l: float #
573+ market_id: str #
574+ outcome_id: str #
575+ outcome_label: str #
576+ size: float #
577+ entry_price: float #
578+ current_price: float #
579+ unrealized_pn_l: float #
580+ realized_pn_l: float #
582581```
583582
584583-- -
@@ -589,10 +588,10 @@ class Position:
589588```python
590589@ dataclass
591590class Balance:
592- currency: str #
593- total: float #
594- available: float #
595- locked: float #
591+ currency: str #
592+ total: float #
593+ available: float #
594+ locked: float #
596595```
597596
598597-- -
@@ -606,10 +605,10 @@ class Balance:
606605```python
607606@ dataclass
608607class MarketFilterParams:
609- limit: int #
610- offset: int #
611- sort: str #
612- search_in: str #
608+ limit: int #
609+ offset: int #
610+ sort: str #
611+ search_in: str #
613612```
614613
615614-- -
@@ -620,10 +619,10 @@ class MarketFilterParams:
620619```python
621620@ dataclass
622621class HistoryFilterParams:
623- resolution: str #
624- start: str #
625- end: str #
626- limit: int #
622+ resolution: str #
623+ start: str #
624+ end: str #
625+ limit: int #
627626```
628627
629628-- -
@@ -634,12 +633,12 @@ class HistoryFilterParams:
634633```python
635634@ dataclass
636635class CreateOrderParams:
637- market_id: str #
638- outcome_id: str #
639- side: str #
640- type : str #
641- amount: float #
642- price: float #
636+ market_id: str #
637+ outcome_id: str #
638+ side: str #
639+ type : str #
640+ amount: float #
641+ price: float #
643642```
644643
645644-- -
0 commit comments