From 7af0e3b9e5357f9c52be0863229cca52015abef7 Mon Sep 17 00:00:00 2001 From: Ashish Bakshi <2073983+AshishMBakshi@users.noreply.github.com> Date: Sun, 2 Aug 2026 14:19:34 -0400 Subject: [PATCH] Change quantity fields to accept float values, for fractional orders --- polymarket_us/types/orders.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/polymarket_us/types/orders.py b/polymarket_us/types/orders.py index 33215b0..8f48194 100644 --- a/polymarket_us/types/orders.py +++ b/polymarket_us/types/orders.py @@ -75,9 +75,9 @@ class Order(TypedDict, total=False): side: OrderSide type: OrderType price: Amount - quantity: int - cumQuantity: int - leavesQuantity: int + quantity: int | float + cumQuantity: int | float + leavesQuantity: int | float tif: TimeInForce goodTillTime: str intent: OrderIntent @@ -115,7 +115,7 @@ class CreateOrderParams(TypedDict, total=False): intent: OrderIntent # Required type: OrderType price: Amount - quantity: int + quantity: int | float tif: TimeInForce participateDontInitiate: bool goodTillTime: str @@ -138,7 +138,7 @@ class ModifyOrderParams(TypedDict, total=False): marketSlug: str # Required price: Amount - quantity: int + quantity: int | float tif: TimeInForce participateDontInitiate: bool goodTillTime: str