From 653b29303a4fbe9de51c69d2cd1acdc8e3be9db6 Mon Sep 17 00:00:00 2001 From: "Samuel EF. Tinnerholm" Date: Sun, 24 May 2026 17:52:54 +0300 Subject: [PATCH] fix: sync smarkets spec with upstream API changes Fixes #543 Fixes #544 Fixes #545 Fixes #527 Fixes #528 --- core/specs/smarkets/Smarkets.yaml | 35 +++++++++++++++++++++++++++++-- 1 file changed, 33 insertions(+), 2 deletions(-) diff --git a/core/specs/smarkets/Smarkets.yaml b/core/specs/smarkets/Smarkets.yaml index 24872b60..0489adfb 100644 --- a/core/specs/smarkets/Smarkets.yaml +++ b/core/specs/smarkets/Smarkets.yaml @@ -1870,6 +1870,7 @@ paths: description: Jurisdiction of user enum: - CDG + - CFTC - DGA - IGC - MGA @@ -2187,6 +2188,11 @@ paths: neutral: true nullable: true type: object + cftc: + description: CFTC-specific regulatory metadata for this event + nullable: true + additionalProperties: true + type: object required: - created - type @@ -2553,6 +2559,7 @@ paths: description: Jurisdiction of user enum: - CDG + - CFTC - DGA - IGC - MGA @@ -2901,6 +2908,11 @@ paths: Top x Finish\" type markets\n " example: 1 type: integer + cftc: + description: CFTC-specific regulatory metadata for this market + nullable: true + additionalProperties: true + type: object required: - bet_delay - complete @@ -3031,6 +3043,7 @@ paths: description: Jurisdiction of user enum: - CDG + - CFTC - DGA - IGC - MGA @@ -5770,6 +5783,7 @@ paths: description: Jurisdiction of user enum: - CDG + - CFTC - DGA - IGC - MGA @@ -5931,6 +5945,11 @@ paths: - unavailable example: live type: string + cftc: + description: CFTC-specific regulatory metadata for this contract + nullable: true + additionalProperties: true + type: object required: - id - created @@ -7159,6 +7178,12 @@ paths: example: 1.0 nullable: true type: number + original_price: + description: The price at which the token was originally + purchased before any amendments + example: '5000' + nullable: true + type: string required: - bet_token_type - boost_percent @@ -7954,15 +7979,21 @@ paths: description: Stake of an order example: '24.08' type: number + original_bets: + description: The component bets that make up the fullcover + order, with their individual prices and selections + items: + additionalProperties: true + type: object + nullable: true + type: array required: - reference_id - fullcover_type - original_contracts - - to_return - returned_amount - state - stake - - price - side - cashed_out_quantity - cashed_out_amount