Polymarket / clob-client

Typescript client for the Polymarket CLOB
MIT License
32 stars 7 forks source link

feat/ adding support for all the possible tick sizes #86

Closed poly-rodr closed 1 year ago

poly-rodr commented 1 year ago

Adding support for:

Example

const YES = "1343197538147866997676250008839231694243646439454152539053893078719042421992";
const order = await clobClient.createOrder({
    tokenID: YES,
    price: 0.0005, // <---- price
    side: Side.BUY,
    size: 41,
    feeRateBps: 0,
    nonce: 0,
    expiration: 0,
});
console.log("Created Order", order);

// Send it to the server
const resp = await clobClient.postOrder(order);
console.log(resp);