From 1571eb28b30977555a3c3d315f7e76d008364ce5 Mon Sep 17 00:00:00 2001 From: Nida Ali Date: Wed, 9 Sep 2026 10:47:38 -0400 Subject: [PATCH 1/2] feat(BFP-5021): add DELISTING to TradeType enum Mirrors the upstream pro-mono api-specs TradeType (delist-close fills carry this value). Ordered ORDER, LIQUIDATION, DELEVERAGE, DELISTING, UNSPECIFIED. --- resources/common.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/resources/common.yaml b/resources/common.yaml index 4dbd762d..21e9f1f6 100644 --- a/resources/common.yaml +++ b/resources/common.yaml @@ -107,6 +107,7 @@ components: - ORDER - LIQUIDATION - DELEVERAGE + - DELISTING - UNSPECIFIED TransactionType: description: Transaction type (what caused the change in the asset balance). From 3bda87da87afd82e520f393d50e6edb33d4f13d1 Mon Sep 17 00:00:00 2001 From: Nida Ali Date: Wed, 9 Sep 2026 10:47:38 -0400 Subject: [PATCH 2/2] feat(BFP-5021): regenerate ts/python/rust clients for DELISTING MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Regenerated via apigen. rust + python bump 1.18.0 -> 1.19.0 (their own line); ts package bumped 2.1.0 -> 2.2.0 (its published npm line — apigen derives from rust/Cargo.toml 1.x, which is desynced from the ts 2.x npm line; see PR notes). Reverted whitespace/byte-only regen noise in unrelated generated files. --- .apigen-state | 6 ++--- python/sdk/config.yaml | 2 +- python/sdk/pyproject.toml | 2 +- .../sdk/src/openapi_client/docs/TradeType.md | 2 ++ .../src/openapi_client/models/trade_type.py | 1 + rust/Cargo.toml | 4 +-- rust/gen/bluefin_api/Cargo.toml | 2 +- rust/gen/bluefin_api/docs/TradeType.md | 1 + rust/gen/bluefin_api/src/models/trade_type.rs | 3 +++ rust/gen/config.yaml | 2 +- ts/sdk/package.json | 26 +++++++++---------- ts/sdk/src/api.ts | 7 ++--- ts/sdk/src/docs/TradeType.md | 2 ++ 13 files changed, 35 insertions(+), 25 deletions(-) diff --git a/.apigen-state b/.apigen-state index 17ea257d..f9025b25 100644 --- a/.apigen-state +++ b/.apigen-state @@ -1,12 +1,12 @@ { "version": "1", "algorithm": "sha256", - "generated_at": "2026-07-03T00:00:00.000000Z", + "generated_at": "2026-09-09T14:38:18.909930Z", "spec_files": { "resources/account-data-api.yaml": "ca145d50d48e0f3709130af89cf0feb3416c36adbd54b5ad40740f55217f94af", "resources/auth-api.yaml": "01e54ca1a13d2d6307e0d3a9ea38f816902521e7c85998f0f21a1353cc54fb76", "resources/bluefin-api.yaml": "fa46dd3fa556baa1d81567b9d21ea81e948dd0e596bfdc368e0eb1e8fdad3fe1", - "resources/common.yaml": "71dc565fccebcc9e71b49b48448d2583903aec7e2d16ef1d69972b50f2e4250f", + "resources/common.yaml": "760ce6c130e31c3f0eafd692ca5d834499c7f24a15157fb4b43d05bd1043a0c0", "resources/exchange-common-api.yaml": "3c84fcdfa44e689c2465b79dab3dd0d2a2a1777ad207e167c64c457fcba58006", "resources/exchange-pro-api.yaml": "a9b065f87a8c5992667eee65f3680f178de693f0a01c82726f0378547a2b540f", "resources/rewards-data-api.yaml": "2c715683d080ad11aa7667d81e36b1f36839da5d2af1bd3ce0d164db6f19cb0c", @@ -14,5 +14,5 @@ "resources/vera-api.yaml": "f4c51b5f6614dd4e3b9f5f1f01f945e06d9090849530ecb916ad4ae18d8f61a0", "resources/websocket-api.yaml": "c2c51ceea701bff0b7e911e9afdb0addeb4d7f173b2a25b996d13f5462cb535b" }, - "combined_hash": "4cd30de0eebb653543aed47a5a8f1167f29f0fee206b25065ff2f44146c91f59" + "combined_hash": "b0b202e7b53330f76bc010d30c9c1095bc041f3c328f552ed663d1b844968bb5" } \ No newline at end of file diff --git a/python/sdk/config.yaml b/python/sdk/config.yaml index 2e1c0555..670851ed 100644 --- a/python/sdk/config.yaml +++ b/python/sdk/config.yaml @@ -2,4 +2,4 @@ additionalProperties: library: asyncio generateSourceCodeOnly: true useOneOfDiscriminatorLookup: true - packageVersion: 1.18.0 + packageVersion: 1.19.0 diff --git a/python/sdk/pyproject.toml b/python/sdk/pyproject.toml index 8b96a482..efa2f36a 100644 --- a/python/sdk/pyproject.toml +++ b/python/sdk/pyproject.toml @@ -21,7 +21,7 @@ description = "Python Boilerplate contains all the boilerplate you need to creat name = "bluefin_pro_sdk" readme = "README.rst" requires-python = ">=3.9.2,<3.14.0" -version = "1.18.0" +version = "1.19.0" [[project.authors]] email = "audreyr@example.com" diff --git a/python/sdk/src/openapi_client/docs/TradeType.md b/python/sdk/src/openapi_client/docs/TradeType.md index 861d0fa4..a4005212 100644 --- a/python/sdk/src/openapi_client/docs/TradeType.md +++ b/python/sdk/src/openapi_client/docs/TradeType.md @@ -10,6 +10,8 @@ Type of trade. * `DELEVERAGE` (value: `'DELEVERAGE'`) +* `DELISTING` (value: `'DELISTING'`) + * `UNSPECIFIED` (value: `'UNSPECIFIED'`) [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/python/sdk/src/openapi_client/models/trade_type.py b/python/sdk/src/openapi_client/models/trade_type.py index 199f49c1..2afb2fd9 100644 --- a/python/sdk/src/openapi_client/models/trade_type.py +++ b/python/sdk/src/openapi_client/models/trade_type.py @@ -29,6 +29,7 @@ class TradeType(str, Enum): ORDER = 'ORDER' LIQUIDATION = 'LIQUIDATION' DELEVERAGE = 'DELEVERAGE' + DELISTING = 'DELISTING' UNSPECIFIED = 'UNSPECIFIED' @classmethod diff --git a/rust/Cargo.toml b/rust/Cargo.toml index cd6fa5da..bce0544c 100644 --- a/rust/Cargo.toml +++ b/rust/Cargo.toml @@ -9,7 +9,7 @@ sha2 = "0.10.9" [dependencies.bluefin_api] path = "gen/bluefin_api" -version = "1.18.0" +version = "1.19.0" [dependencies.ed25519-dalek] features = ["rand_core"] @@ -93,7 +93,7 @@ keywords = [ license = "Unlicense" name = "bluefin-pro" repository = "https://github.com/fireflyprotocol/pro-sdk" -version = "1.18.0" +version = "1.19.0" [workspace] members = [ diff --git a/rust/gen/bluefin_api/Cargo.toml b/rust/gen/bluefin_api/Cargo.toml index 04bb8098..5f88cb83 100644 --- a/rust/gen/bluefin_api/Cargo.toml +++ b/rust/gen/bluefin_api/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "bluefin_api" -version = "1.18.0" +version = "1.19.0" authors = ["OpenAPI Generator team and contributors"] description = "Bluefin API" license = "MIT OR Apache-2.0" diff --git a/rust/gen/bluefin_api/docs/TradeType.md b/rust/gen/bluefin_api/docs/TradeType.md index 72fa9c16..499646c0 100644 --- a/rust/gen/bluefin_api/docs/TradeType.md +++ b/rust/gen/bluefin_api/docs/TradeType.md @@ -7,6 +7,7 @@ | Order | ORDER | | Liquidation | LIQUIDATION | | Deleverage | DELEVERAGE | +| Delisting | DELISTING | | Unspecified | UNSPECIFIED | diff --git a/rust/gen/bluefin_api/src/models/trade_type.rs b/rust/gen/bluefin_api/src/models/trade_type.rs index 24af14de..9bbf5d42 100644 --- a/rust/gen/bluefin_api/src/models/trade_type.rs +++ b/rust/gen/bluefin_api/src/models/trade_type.rs @@ -21,6 +21,8 @@ pub enum TradeType { Liquidation, #[serde(rename = "DELEVERAGE")] Deleverage, + #[serde(rename = "DELISTING")] + Delisting, #[serde(rename = "UNSPECIFIED")] Unspecified, @@ -32,6 +34,7 @@ impl std::fmt::Display for TradeType { Self::Order => write!(f, "ORDER"), Self::Liquidation => write!(f, "LIQUIDATION"), Self::Deleverage => write!(f, "DELEVERAGE"), + Self::Delisting => write!(f, "DELISTING"), Self::Unspecified => write!(f, "UNSPECIFIED"), } } diff --git a/rust/gen/config.yaml b/rust/gen/config.yaml index d5e672b1..8770e524 100644 --- a/rust/gen/config.yaml +++ b/rust/gen/config.yaml @@ -2,5 +2,5 @@ additionalProperties: hideGenerationTimestamp: 'true' avoidBoxedModels: 'true' packageName: bluefin_api - packageVersion: 1.18.0 + packageVersion: 1.19.0 preferUnsignedInt: 'true' diff --git a/ts/sdk/package.json b/ts/sdk/package.json index c96f7d91..76463a36 100644 --- a/ts/sdk/package.json +++ b/ts/sdk/package.json @@ -15,11 +15,14 @@ "tsx": "^4.22.4", "typescript": "^4.0 || ^5.0" }, + "engines": { + "node": ">=24" + }, "exports": { ".": { - "types": "./dist/index.d.ts", + "default": "./dist/index.js", "import": "./dist/index.js", - "default": "./dist/index.js" + "types": "./dist/index.d.ts" } }, "files": [ @@ -28,10 +31,6 @@ "keywords": [ "@fireflyprotocol/pro-sdk" ], - "type": "module", - "engines": { - "node": ">=24" - }, "license": "Unlicense", "main": "./dist/index.js", "name": "@bluefin-exchange/pro-sdk", @@ -39,10 +38,6 @@ "peerDependencies": { "@mysten/sui": "^2.13.0" }, - "resolutions": { - "@mysten/sui": "^2.13.0", - "@noble/curves": "^1.8.1" - }, "publishConfig": { "access": "public" }, @@ -50,14 +45,19 @@ "type": "git", "url": "https://github.com/fireflyprotocol/pro-sdk.git" }, + "resolutions": { + "@mysten/sui": "^2.13.0", + "@noble/curves": "^1.8.1" + }, "scripts": { "build": "npm run clean && npm run build:esm", "build:esm": "tsc -p tsconfig.esm.json", - "build:types": "tsc -p tsconfig.esm.json --noEmit", "build:example": "tsc -p tsconfig.example.json", + "build:types": "tsc -p tsconfig.esm.json --noEmit", "clean": "rm -rf dist", "prepare": "npm run build" }, + "type": "module", "types": "./dist/index.d.ts", - "version": "2.1.0" -} + "version": "2.2.0" +} \ No newline at end of file diff --git a/ts/sdk/src/api.ts b/ts/sdk/src/api.ts index 470a15fd..cc78f03d 100644 --- a/ts/sdk/src/api.ts +++ b/ts/sdk/src/api.ts @@ -5638,6 +5638,7 @@ export const TradeType = { Order: 'ORDER', Liquidation: 'LIQUIDATION', Deleverage: 'DELEVERAGE', + Delisting: 'DELISTING', Unspecified: 'UNSPECIFIED' } as const; @@ -5754,13 +5755,13 @@ export type TransactionType = typeof TransactionType[keyof typeof TransactionTyp */ export interface UpdateAccountPreferenceRequest { /** - * Favorite market symbols. Send the full array each time; to remove a favorite, send the array without it. + * Favorite market symbols. Send the full array each time; to remove a favorite, send the array without it. * @type {Array} * @memberof UpdateAccountPreferenceRequest */ 'favorites'?: Array; /** - * Function bar display mode. Note the mixed casing: `all` is lowercase while `Popular` and `Favorites` are capitalized. + * Function bar display mode. Note the mixed casing: `all` is lowercase while `Popular` and `Favorites` are capitalized. * @type {string} * @memberof UpdateAccountPreferenceRequest */ @@ -5788,7 +5789,7 @@ export const UpdateAccountPreferenceRequestFunctionBarModeEnum = { export type UpdateAccountPreferenceRequestFunctionBarModeEnum = typeof UpdateAccountPreferenceRequestFunctionBarModeEnum[keyof typeof UpdateAccountPreferenceRequestFunctionBarModeEnum]; /** - * + * * @export * @interface UpdateAffiliateEmberRefferalShareRequest */ diff --git a/ts/sdk/src/docs/TradeType.md b/ts/sdk/src/docs/TradeType.md index 447466ff..d1dbd785 100644 --- a/ts/sdk/src/docs/TradeType.md +++ b/ts/sdk/src/docs/TradeType.md @@ -10,6 +10,8 @@ Type of trade. * `Deleverage` (value: `'DELEVERAGE'`) +* `Delisting` (value: `'DELISTING'`) + * `Unspecified` (value: `'UNSPECIFIED'`) [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)