@usherlabs/cex-broker 0.2.49 → 0.2.50

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -26,8 +26,8 @@
26
26
  "policy_sha256": "51f522286ad24ec55525c19cad5c2c37043f9325a5a8f20d838adb7fd71191bf"
27
27
  },
28
28
  "resource_policy": {
29
- "policy_id": "market-data-vendor-backfill-resources/v1",
30
- "policy_sha256": "38d4f47cbd15794efed570801556a95f724561a8b45567d518c044da9d454142"
29
+ "policy_id": "market-data-vendor-backfill-resources/v2",
30
+ "policy_sha256": "5c095c9af4450a0dd110cae04215b9188c6522ab16f4524a41b6122b154160a2"
31
31
  },
32
32
  "started_at": "2026-08-20T12:00:01.000Z",
33
33
  "completed_at": "2026-08-20T12:00:03.000Z",
@@ -191,7 +191,7 @@
191
191
  "promoted_rows": 50
192
192
  }
193
193
  },
194
- "result_sha256": "a436b2f916fb2b2885a2694016227385a01e2d4cea8eda01417a8c8992d3317a"
194
+ "result_sha256": "3d77158ab5609eab483333810b59b38967ca399feaee6e8a8f62aa5196814cfe"
195
195
  },
196
196
  "canonical_orderbook_export_request": {
197
197
  "schema_id": "https://schemas.usher.so/cex-canonical-orderbook-export-request/v1",
@@ -407,17 +407,17 @@
407
407
  ],
408
408
  "capability_policy": {
409
409
  "policy_id": "market-data-vendor-backfill-capabilities/v2",
410
- "policy_sha256": "a1bce5936b00ca6f8c8d338b57eddbaf6d48e6f9c40566c4beae76630e969c5a"
410
+ "policy_sha256": "1dc3f918c6de98d4f65dc1439e16e8c8e0269b5eb9063e3617a52e457fdc24d1"
411
411
  },
412
412
  "resource_policy": {
413
- "policy_id": "market-data-vendor-backfill-resources/v1",
414
- "policy_sha256": "38d4f47cbd15794efed570801556a95f724561a8b45567d518c044da9d454142"
413
+ "policy_id": "market-data-vendor-backfill-resources/v2",
414
+ "policy_sha256": "5c095c9af4450a0dd110cae04215b9188c6522ab16f4524a41b6122b154160a2"
415
415
  }
416
416
  }
417
417
  },
418
418
  "identities": {
419
419
  "manifest_sha256": "0e226165c78c6217a765c09be15b6305a574e69b6e05e8607f399b468ba04d5b",
420
- "backfill_result_sha256": "a436b2f916fb2b2885a2694016227385a01e2d4cea8eda01417a8c8992d3317a",
420
+ "backfill_result_sha256": "3d77158ab5609eab483333810b59b38967ca399feaee6e8a8f62aa5196814cfe",
421
421
  "selection_sha256": "cc4869df6d08c79d030c8407e7a55e5c534e6a96da7c1ac3f726e814c66a108e",
422
422
  "export_result_sha256": "4be9b182d1858bf4dd60da823e245f9a6ca472e99b3b50b94c17a48c71c9dc67"
423
423
  }
@@ -22,7 +22,18 @@
22
22
  "construction_modes": ["sampled_top_n_snapshot"],
23
23
  "source_policies": ["authoritative_window", "fill_gaps"],
24
24
  "max_depth": 400
25
+ },
26
+ {
27
+ "exchange": "okx",
28
+ "market_type": "spot",
29
+ "feed": "ORDERBOOK",
30
+ "canonical_trading_pair": "ARB-USDC",
31
+ "provider_exchange_id": "okx_spot",
32
+ "resolved_symbol": "ARB-USDC",
33
+ "construction_modes": ["sampled_top_n_snapshot"],
34
+ "source_policies": ["authoritative_window", "fill_gaps"],
35
+ "max_depth": 400
25
36
  }
26
37
  ],
27
- "policy_sha256": "a1bce5936b00ca6f8c8d338b57eddbaf6d48e6f9c40566c4beae76630e969c5a"
38
+ "policy_sha256": "1dc3f918c6de98d4f65dc1439e16e8c8e0269b5eb9063e3617a52e457fdc24d1"
28
39
  }
@@ -0,0 +1,16 @@
1
+ {
2
+ "policy_id": "market-data-vendor-backfill-resources/v1",
3
+ "limits": {
4
+ "max_files": 10000,
5
+ "max_bytes": 107374182400,
6
+ "max_rows": 1000000000,
7
+ "max_duration_ms": 86400000,
8
+ "max_boundary_lookback_ms": 604800000
9
+ },
10
+ "request_bounds": {
11
+ "max_depth": 500,
12
+ "max_window_ms": 604800000,
13
+ "max_required_events": 100000
14
+ },
15
+ "policy_sha256": "38d4f47cbd15794efed570801556a95f724561a8b45567d518c044da9d454142"
16
+ }
@@ -1,5 +1,5 @@
1
1
  {
2
- "policy_id": "market-data-vendor-backfill-resources/v1",
2
+ "policy_id": "market-data-vendor-backfill-resources/v2",
3
3
  "limits": {
4
4
  "max_files": 10000,
5
5
  "max_bytes": 107374182400,
@@ -9,8 +9,8 @@
9
9
  },
10
10
  "request_bounds": {
11
11
  "max_depth": 500,
12
- "max_window_ms": 604800000,
12
+ "max_window_ms": 2678400000,
13
13
  "max_required_events": 100000
14
14
  },
15
- "policy_sha256": "38d4f47cbd15794efed570801556a95f724561a8b45567d518c044da9d454142"
15
+ "policy_sha256": "5c095c9af4450a0dd110cae04215b9188c6522ab16f4524a41b6122b154160a2"
16
16
  }
@@ -25219,7 +25219,8 @@ var result_schema_default = {
25219
25219
  // src/helpers/market-data-vendor-backfill/manifests.ts
25220
25220
  var LEGACY_CAPABILITY_POLICY_ID = "market-data-vendor-backfill-capabilities/v1";
25221
25221
  var CAPABILITY_POLICY_ID = "market-data-vendor-backfill-capabilities/v2";
25222
- var RESOURCE_POLICY_ID = "market-data-vendor-backfill-resources/v1";
25222
+ var LEGACY_RESOURCE_POLICY_ID = "market-data-vendor-backfill-resources/v1";
25223
+ var RESOURCE_POLICY_ID = "market-data-vendor-backfill-resources/v2";
25223
25224
  var ADAPTER_POLICY_ID = "cryptohftdata-orderbook-adapter/v1";
25224
25225
  var ACQUISITION_POLICY_ID = "cryptohftdata-hourly-acquisition/v1";
25225
25226
  var legacyCapabilityPolicyContent = {
@@ -25256,17 +25257,30 @@ var LEGACY_CAPABILITY_POLICY = Object.freeze({
25256
25257
  var capabilityPolicyContent = {
25257
25258
  ...legacyCapabilityPolicyContent,
25258
25259
  policy_id: CAPABILITY_POLICY_ID,
25259
- profiles: legacyCapabilityPolicyContent.profiles.map((profile) => ({
25260
- ...profile,
25261
- source_policies: ["authoritative_window", "fill_gaps"]
25262
- }))
25260
+ profiles: [
25261
+ ...legacyCapabilityPolicyContent.profiles.map((profile) => ({
25262
+ ...profile,
25263
+ source_policies: ["authoritative_window", "fill_gaps"]
25264
+ })),
25265
+ {
25266
+ exchange: "okx",
25267
+ market_type: "spot",
25268
+ feed: "ORDERBOOK",
25269
+ canonical_trading_pair: "ARB-USDC",
25270
+ provider_exchange_id: "okx_spot",
25271
+ resolved_symbol: "ARB-USDC",
25272
+ construction_modes: ["sampled_top_n_snapshot"],
25273
+ source_policies: ["authoritative_window", "fill_gaps"],
25274
+ max_depth: 400
25275
+ }
25276
+ ]
25263
25277
  };
25264
25278
  var CAPABILITY_POLICY = Object.freeze({
25265
25279
  ...capabilityPolicyContent,
25266
25280
  policy_sha256: jcsSha256(capabilityPolicyContent)
25267
25281
  });
25268
- var resourcePolicyContent = {
25269
- policy_id: RESOURCE_POLICY_ID,
25282
+ var legacyResourcePolicyContent = {
25283
+ policy_id: LEGACY_RESOURCE_POLICY_ID,
25270
25284
  limits: {
25271
25285
  max_files: 1e4,
25272
25286
  max_bytes: 100 * 1024 * 1024 * 1024,
@@ -25280,6 +25294,18 @@ var resourcePolicyContent = {
25280
25294
  max_required_events: 1e5
25281
25295
  }
25282
25296
  };
25297
+ var LEGACY_RESOURCE_POLICY = Object.freeze({
25298
+ ...legacyResourcePolicyContent,
25299
+ policy_sha256: jcsSha256(legacyResourcePolicyContent)
25300
+ });
25301
+ var resourcePolicyContent = {
25302
+ ...legacyResourcePolicyContent,
25303
+ policy_id: RESOURCE_POLICY_ID,
25304
+ request_bounds: {
25305
+ ...legacyResourcePolicyContent.request_bounds,
25306
+ max_window_ms: 31 * 24 * 60 * 60 * 1000
25307
+ }
25308
+ };
25283
25309
  var RESOURCE_POLICY = Object.freeze({
25284
25310
  ...resourcePolicyContent,
25285
25311
  policy_sha256: jcsSha256(resourcePolicyContent)
@@ -26939,8 +26965,8 @@ var requestContent = {
26939
26965
  policy_sha256: LEGACY_CAPABILITY_POLICY.policy_sha256
26940
26966
  },
26941
26967
  resource_policy: {
26942
- policy_id: RESOURCE_POLICY.policy_id,
26943
- policy_sha256: RESOURCE_POLICY.policy_sha256
26968
+ policy_id: LEGACY_RESOURCE_POLICY.policy_id,
26969
+ policy_sha256: LEGACY_RESOURCE_POLICY.policy_sha256
26944
26970
  }
26945
26971
  },
26946
26972
  production_authorization_id: authorizationId
@@ -27090,7 +27116,7 @@ var CONFORMANCE_FIXTURES = Object.freeze({
27090
27116
  receipt_id: promotionReceipt.receipt_id,
27091
27117
  result_sha256: result.result_sha256,
27092
27118
  capability_policy_sha256: LEGACY_CAPABILITY_POLICY.policy_sha256,
27093
- resource_policy_sha256: RESOURCE_POLICY.policy_sha256
27119
+ resource_policy_sha256: LEGACY_RESOURCE_POLICY.policy_sha256
27094
27120
  },
27095
27121
  jcs_edge_vector: jcsEdgeVector,
27096
27122
  hashes: { jcs_edge_vector_sha256: jcsSha256(jcsEdgeVector) }
@@ -27166,7 +27192,10 @@ var backfillResult = finalizeBackfillResultV2({
27166
27192
  schema_manifest_sha256: PREPARATION_SCHEMA_MANIFEST_V2.manifest_sha256,
27167
27193
  producer: backfillProducer,
27168
27194
  capability_policy: legacyResult.capability_policy,
27169
- resource_policy: legacyResult.resource_policy,
27195
+ resource_policy: {
27196
+ policy_id: RESOURCE_POLICY.policy_id,
27197
+ policy_sha256: RESOURCE_POLICY.policy_sha256
27198
+ },
27170
27199
  started_at: legacyResult.started_at,
27171
27200
  completed_at: legacyResult.completed_at,
27172
27201
  outcome: legacyResult.outcome
@@ -27205,7 +27234,10 @@ var productPin = preparationProductPinCodec.decode({
27205
27234
  policy_id: CAPABILITY_POLICY.policy_id,
27206
27235
  policy_sha256: CAPABILITY_POLICY.policy_sha256
27207
27236
  },
27208
- resource_policy: legacyResult.resource_policy
27237
+ resource_policy: {
27238
+ policy_id: RESOURCE_POLICY.policy_id,
27239
+ policy_sha256: RESOURCE_POLICY.policy_sha256
27240
+ }
27209
27241
  });
27210
27242
  var PREPARATION_CONFORMANCE_FIXTURES = Object.freeze({
27211
27243
  fixture_id: "cex-market-data-preparation-conformance/v2",
@@ -27245,4 +27277,4 @@ export {
27245
27277
  BACKFILL_RESULT_V2_SCHEMA_ID
27246
27278
  };
27247
27279
 
27248
- //# debugId=E39DACA2AA1EE6E664756E2164756E21
27280
+ //# debugId=ADB22A3D53607DAD64756E2164756E21