Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

set orderbook properties the same order as the API #112

Merged
merged 3 commits into from
May 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@polymarket/clob-client",
"description": "Typescript client for Polymarket's CLOB",
"version": "4.5.1",
"version": "4.5.2",
"contributors": [
{
"name": "Jonathan Amenechi",
Expand Down
11 changes: 1 addition & 10 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -297,9 +297,9 @@ export interface OrderMarketCancelParams {
export interface OrderBookSummary {
market: string;
asset_id: string;
hash: string;
bids: OrderSummary[];
asks: OrderSummary[];
hash: string;
}

export interface OrderSummary {
Expand Down Expand Up @@ -424,18 +424,13 @@ export interface RewardsConfig {
end_date: string;
rate_per_day: number;
total_rewards: number;
remaining_reward_amount: number;
}

export interface MarketReward {
condition_id: string;
market_id: number;
question: string;
market_slug: string;
event_slug: string;
active: boolean;
archived: boolean;
closed: boolean;
image: string;
rewards_max_spread: number;
rewards_min_size: number;
Expand All @@ -451,13 +446,9 @@ export interface Earning {

export interface UserRewardsEarning {
condition_id: string;
market_id: number;
question: string;
market_slug: string;
event_slug: string;
active: boolean;
archived: boolean;
closed: boolean;
image: string;
rewards_max_spread: number;
rewards_min_size: number;
Expand Down
Loading