Polymarket / clob-client

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

Neg Risk Support #100

Closed mshrieve closed 11 months ago

mshrieve commented 1 year ago

Modifies the Clob Client in anticipation of the future Neg Risk market type. Adds a new OrderOptions object:

type OrderOptions = {
  tickSize: TickSize;
  negRisk?: boolean;
}

These modifications do not require extra calls to the CLOB, e.g., to get the exchange address to be used when signing. Contract addresses are now hard-coded in this repo, as opposed to retrieved from the clob-order-utils.