@openmarket/market-data-proto 12.55.0 → 12.56.0

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.
@@ -1141,6 +1141,348 @@ export type GetMarketsResponse = Message<"GetMarketsResponse"> & {
1141
1141
  * Use `create(GetMarketsResponseSchema)` to create a new message.
1142
1142
  */
1143
1143
  export declare const GetMarketsResponseSchema: GenMessage<GetMarketsResponse>;
1144
+ /**
1145
+ * One market, as a MarketSymbol names it. symbol is MarketSymbol.rawSymbol
1146
+ * exactly as returned, case included: it is matched as stored, never
1147
+ * upper-cased.
1148
+ *
1149
+ * Prediction markets are keyed per market, as StreamPoints reads them: a
1150
+ * Polymarket market by its conditionId, a HIP-4 outcome by its coin (#1234).
1151
+ * The event and umbrella rows search returns name no single market and are
1152
+ * answered found=false.
1153
+ *
1154
+ * @generated from message MarketStatsKey
1155
+ */
1156
+ export type MarketStatsKey = Message<"MarketStatsKey"> & {
1157
+ /**
1158
+ * @generated from field: Exchange exchange = 1;
1159
+ */
1160
+ exchange: Exchange;
1161
+ /**
1162
+ * @generated from field: Category category = 2;
1163
+ */
1164
+ category: Category;
1165
+ /**
1166
+ * @generated from field: string symbol = 3;
1167
+ */
1168
+ symbol: string;
1169
+ };
1170
+ /**
1171
+ * Describes the message MarketStatsKey.
1172
+ * Use `create(MarketStatsKeySchema)` to create a new message.
1173
+ */
1174
+ export declare const MarketStatsKeySchema: GenMessage<MarketStatsKey>;
1175
+ /**
1176
+ * Per-market stats for markets the caller already knows, such as a
1177
+ * watchlist. Identity and display fields (names, icons, classes) are not
1178
+ * repeated here: they come from StreamMarkets or StreamSymbolDirectory.
1179
+ *
1180
+ * @generated from message StreamMarketStatsRequest
1181
+ */
1182
+ export type StreamMarketStatsRequest = Message<"StreamMarketStatsRequest"> & {
1183
+ /**
1184
+ * Any mix of venues. Duplicates are answered once.
1185
+ *
1186
+ * @generated from field: repeated MarketStatsKey markets = 1;
1187
+ */
1188
+ markets: MarketStatsKey[];
1189
+ /**
1190
+ * Also return the 24h sparkline. Off by default: it is most of a row's
1191
+ * size.
1192
+ *
1193
+ * @generated from field: bool includePrices = 2;
1194
+ */
1195
+ includePrices: boolean;
1196
+ };
1197
+ /**
1198
+ * Describes the message StreamMarketStatsRequest.
1199
+ * Use `create(StreamMarketStatsRequestSchema)` to create a new message.
1200
+ */
1201
+ export declare const StreamMarketStatsRequestSchema: GenMessage<StreamMarketStatsRequest>;
1202
+ /**
1203
+ * @generated from message MarketStatsResponse
1204
+ */
1205
+ export type MarketStatsResponse = Message<"MarketStatsResponse"> & {
1206
+ /**
1207
+ * One entry per distinct requested key, in request order.
1208
+ *
1209
+ * @generated from field: repeated MarketStats stats = 1;
1210
+ */
1211
+ stats: MarketStats[];
1212
+ };
1213
+ /**
1214
+ * Describes the message MarketStatsResponse.
1215
+ * Use `create(MarketStatsResponseSchema)` to create a new message.
1216
+ */
1217
+ export declare const MarketStatsResponseSchema: GenMessage<MarketStatsResponse>;
1218
+ /**
1219
+ * Every stat is computed once per market for all callers, so a value is at
1220
+ * most as fresh as its own refresh. liveAsOf is when the older of the open
1221
+ * interest/funding and USD-rate refreshes behind this row ran (every 15 s to
1222
+ * 1 min); slowAsOf is the week the supply figures date from. Both are refresh
1223
+ * times, not the time of the last trade, and either is absent when none of
1224
+ * its fields applies to the market.
1225
+ *
1226
+ * Changes, performance and deltas-as-ratios are fractions (0.05 is +5%), as
1227
+ * on MarketSymbol. Absent means not computable for this market and must never
1228
+ * be read as zero.
1229
+ *
1230
+ * @generated from message MarketStats
1231
+ */
1232
+ export type MarketStats = Message<"MarketStats"> & {
1233
+ /**
1234
+ * @generated from field: MarketStatsKey key = 1;
1235
+ */
1236
+ key?: MarketStatsKey;
1237
+ /**
1238
+ * False when the key names no known market. Every other field is then
1239
+ * absent. True with the live fields absent means a known market with no
1240
+ * print in the last 24h.
1241
+ *
1242
+ * @generated from field: bool found = 2;
1243
+ */
1244
+ found: boolean;
1245
+ /**
1246
+ * @generated from field: optional Timestamp liveAsOf = 3;
1247
+ */
1248
+ liveAsOf?: Timestamp;
1249
+ /**
1250
+ * @generated from field: optional Timestamp slowAsOf = 4;
1251
+ */
1252
+ slowAsOf?: Timestamp;
1253
+ /**
1254
+ * 24h, the same values StreamMarkets returns for this market.
1255
+ *
1256
+ * @generated from field: optional double lastPrice = 10;
1257
+ */
1258
+ lastPrice?: number;
1259
+ /**
1260
+ * @generated from field: optional double priceChange24h = 11;
1261
+ */
1262
+ priceChange24h?: number;
1263
+ /**
1264
+ * In the venue's quote currency; volume24hUsd is the comparable one.
1265
+ *
1266
+ * @generated from field: optional double volume24h = 12;
1267
+ */
1268
+ volume24h?: number;
1269
+ /**
1270
+ * @generated from field: optional double volume24hUsd = 13;
1271
+ */
1272
+ volume24hUsd?: number;
1273
+ /**
1274
+ * @generated from field: optional double volumeChange24h = 14;
1275
+ */
1276
+ volumeChange24h?: number;
1277
+ /**
1278
+ * Hourly closes over the last 24h, oldest first. Only with includePrices.
1279
+ *
1280
+ * @generated from field: repeated double prices = 15;
1281
+ */
1282
+ prices: number[];
1283
+ /**
1284
+ * Change in USD open interest, so on linear contracts it includes the
1285
+ * price move.
1286
+ *
1287
+ * @generated from field: optional double oiChange24h = 16;
1288
+ */
1289
+ oiChange24h?: number;
1290
+ /**
1291
+ * Latest open interest in USD.
1292
+ *
1293
+ * @generated from field: optional double openInterestUsd = 20;
1294
+ */
1295
+ openInterestUsd?: number;
1296
+ /**
1297
+ * Latest funding rate, normalised to an 8h interval whatever the venue's
1298
+ * own interval.
1299
+ *
1300
+ * @generated from field: optional double fundingRate = 21;
1301
+ */
1302
+ fundingRate?: number;
1303
+ /**
1304
+ * The venue's own funding interval.
1305
+ *
1306
+ * @generated from field: optional int64 fundingIntervalMs = 22;
1307
+ */
1308
+ fundingIntervalMs?: bigint;
1309
+ /**
1310
+ * Crypto: the coin's market cap. Stocks: the issuer's.
1311
+ *
1312
+ * @generated from field: optional double marketcap = 23;
1313
+ */
1314
+ marketcap?: number;
1315
+ /**
1316
+ * @generated from field: optional double fdv = 24;
1317
+ */
1318
+ fdv?: number;
1319
+ /**
1320
+ * @generated from field: optional double circulatingSupply = 25;
1321
+ */
1322
+ circulatingSupply?: number;
1323
+ /**
1324
+ * @generated from field: optional double totalSupply = 26;
1325
+ */
1326
+ totalSupply?: number;
1327
+ /**
1328
+ * @generated from field: optional double maxSupply = 27;
1329
+ */
1330
+ maxSupply?: number;
1331
+ /**
1332
+ * Stocks only.
1333
+ *
1334
+ * @generated from field: optional double sharesOutstanding = 28;
1335
+ */
1336
+ sharesOutstanding?: number;
1337
+ /**
1338
+ * @generated from field: optional double priceChange10m = 40;
1339
+ */
1340
+ priceChange10m?: number;
1341
+ /**
1342
+ * @generated from field: optional double priceChange1h = 41;
1343
+ */
1344
+ priceChange1h?: number;
1345
+ /**
1346
+ * @generated from field: optional double priceChange7d = 42;
1347
+ */
1348
+ priceChange7d?: number;
1349
+ /**
1350
+ * @generated from field: optional double low7d = 43;
1351
+ */
1352
+ low7d?: number;
1353
+ /**
1354
+ * @generated from field: optional double high7d = 44;
1355
+ */
1356
+ high7d?: number;
1357
+ /**
1358
+ * @generated from field: optional double volume10mUsd = 45;
1359
+ */
1360
+ volume10mUsd?: number;
1361
+ /**
1362
+ * @generated from field: optional double volume1hUsd = 46;
1363
+ */
1364
+ volume1hUsd?: number;
1365
+ /**
1366
+ * Aggressor buy volume minus sell volume, in USD. Trades without an
1367
+ * aggressor side (CME side-less prints, venues that publish none) count in
1368
+ * neither side.
1369
+ *
1370
+ * @generated from field: optional double volumeDelta10mUsd = 47;
1371
+ */
1372
+ volumeDelta10mUsd?: number;
1373
+ /**
1374
+ * @generated from field: optional double volumeDelta1hUsd = 48;
1375
+ */
1376
+ volumeDelta1hUsd?: number;
1377
+ /**
1378
+ * @generated from field: optional double volumeDelta24hUsd = 49;
1379
+ */
1380
+ volumeDelta24hUsd?: number;
1381
+ /**
1382
+ * Same basis as oiChange24h.
1383
+ *
1384
+ * @generated from field: optional double oiChange1h = 50;
1385
+ */
1386
+ oiChange1h?: number;
1387
+ /**
1388
+ * Mean of the hourly funding rate over 24h, normalised to 8h like
1389
+ * fundingRate.
1390
+ *
1391
+ * @generated from field: optional double fundingRateAvg24h = 51;
1392
+ */
1393
+ fundingRateAvg24h?: number;
1394
+ /**
1395
+ * fundingRate annualised: fundingRate x 3 x 365.
1396
+ *
1397
+ * @generated from field: optional double fundingApr = 52;
1398
+ */
1399
+ fundingApr?: number;
1400
+ /**
1401
+ * Long and short liquidations over 24h in USD, and their sum.
1402
+ *
1403
+ * @generated from field: optional double liquidations24hUsd = 53;
1404
+ */
1405
+ liquidations24hUsd?: number;
1406
+ /**
1407
+ * @generated from field: optional double longLiquidations24hUsd = 54;
1408
+ */
1409
+ longLiquidations24hUsd?: number;
1410
+ /**
1411
+ * @generated from field: optional double shortLiquidations24hUsd = 55;
1412
+ */
1413
+ shortLiquidations24hUsd?: number;
1414
+ /**
1415
+ * Performance against the UTC daily close 1 week, 1, 3, 6 and 12 months
1416
+ * ago, and the last close of the previous year. On session venues (stocks,
1417
+ * CME) the daily close is the UTC day's last print, extended hours
1418
+ * included, not the official session close.
1419
+ *
1420
+ * @generated from field: optional double perf1w = 56;
1421
+ */
1422
+ perf1w?: number;
1423
+ /**
1424
+ * @generated from field: optional double perf1m = 57;
1425
+ */
1426
+ perf1m?: number;
1427
+ /**
1428
+ * @generated from field: optional double perf3m = 58;
1429
+ */
1430
+ perf3m?: number;
1431
+ /**
1432
+ * @generated from field: optional double perf6m = 59;
1433
+ */
1434
+ perf6m?: number;
1435
+ /**
1436
+ * @generated from field: optional double perfYtd = 60;
1437
+ */
1438
+ perfYtd?: number;
1439
+ /**
1440
+ * @generated from field: optional double perf1y = 61;
1441
+ */
1442
+ perf1y?: number;
1443
+ /**
1444
+ * @generated from field: optional double high52w = 62;
1445
+ */
1446
+ high52w?: number;
1447
+ /**
1448
+ * @generated from field: optional double low52w = 63;
1449
+ */
1450
+ low52w?: number;
1451
+ /**
1452
+ * Prediction markets. Buy and sell volume over 24h in the venue's quote
1453
+ * currency, on Polymarket and HIP-4; the rest Polymarket only.
1454
+ *
1455
+ * @generated from field: optional double buyVolume24h = 70;
1456
+ */
1457
+ buyVolume24h?: number;
1458
+ /**
1459
+ * @generated from field: optional double sellVolume24h = 71;
1460
+ */
1461
+ sellVolume24h?: number;
1462
+ /**
1463
+ * @generated from field: optional int64 uniqueTraders = 72;
1464
+ */
1465
+ uniqueTraders?: bigint;
1466
+ /**
1467
+ * All-time volume.
1468
+ *
1469
+ * @generated from field: optional double totalVolume = 73;
1470
+ */
1471
+ totalVolume?: number;
1472
+ /**
1473
+ * @generated from field: optional Timestamp endDate = 74;
1474
+ */
1475
+ endDate?: Timestamp;
1476
+ /**
1477
+ * @generated from field: optional bool closed = 75;
1478
+ */
1479
+ closed?: boolean;
1480
+ };
1481
+ /**
1482
+ * Describes the message MarketStats.
1483
+ * Use `create(MarketStatsSchema)` to create a new message.
1484
+ */
1485
+ export declare const MarketStatsSchema: GenMessage<MarketStats>;
1144
1486
  /**
1145
1487
  * @generated from message GetOptionChainRequest
1146
1488
  */
@@ -2380,6 +2722,10 @@ export type RPCResponse = Message<"RPCResponse"> & {
2380
2722
  * @generated from field: repeated EconomicSeriesMetadata economicSeriesMetadatas = 40;
2381
2723
  */
2382
2724
  economicSeriesMetadatas: EconomicSeriesMetadata[];
2725
+ /**
2726
+ * @generated from field: repeated MarketStats marketStats = 41;
2727
+ */
2728
+ marketStats: MarketStats[];
2383
2729
  };
2384
2730
  /**
2385
2731
  * Describes the message RPCResponse.
@@ -5641,6 +5987,16 @@ export declare const Gateway: GenService<{
5641
5987
  input: typeof StreamMarketsRequestSchema;
5642
5988
  output: typeof GetMarketsResponseSchema;
5643
5989
  };
5990
+ /**
5991
+ * StreamMarketStats returns per-market stats for the named markets.
5992
+ *
5993
+ * @generated from rpc Gateway.StreamMarketStats
5994
+ */
5995
+ streamMarketStats: {
5996
+ methodKind: "server_streaming";
5997
+ input: typeof StreamMarketStatsRequestSchema;
5998
+ output: typeof MarketStatsResponseSchema;
5999
+ };
5644
6000
  /**
5645
6001
  * @generated from rpc Gateway.GetSectors
5646
6002
  */