Polymarket / clob-client

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

feat/ adding expiration to open orders endpoint #85

Closed poly-rodr closed 1 year ago

poly-rodr commented 1 year ago

This PR adds two new fields to the OpenOrder structure:

Complete OpenOrder data type:

export interface OpenOrder {
    id: string;
    status: string;
    owner: string;
    market: string;
    asset_id: string;
    side: string;
    original_size: string;
    size_matched: string;
    price: string;
    associate_trades: Trade[];
    outcome: string;
    outcome_index: number;
    created_at: number;
    type: string;
}