@numen-crypto/contract 0.2.1 → 0.2.2
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.
- package/dist/index.cjs +97 -14
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +438 -13
- package/dist/index.d.ts +438 -13
- package/dist/index.js +91 -15
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -143,18 +143,12 @@ declare const SessionInfoSchema: z.ZodObject<{
|
|
|
143
143
|
}>;
|
|
144
144
|
type SessionInfo = z.infer<typeof SessionInfoSchema>;
|
|
145
145
|
|
|
146
|
-
/** All assets that can appear as a wallet balance. NMN is internal-only. */
|
|
147
146
|
declare const ASSET_SYMBOLS: readonly ["NMN", "USDT", "BTC", "ETH", "BNB", "TRX", "SOL"];
|
|
148
147
|
declare const AssetSymbolSchema: z.ZodEnum<["NMN", "USDT", "BTC", "ETH", "BNB", "TRX", "SOL"]>;
|
|
149
148
|
type AssetSymbol = z.infer<typeof AssetSymbolSchema>;
|
|
150
|
-
/**
|
|
151
|
-
* Assets that can be deposited/withdrawn on-chain via SHKeeper.
|
|
152
|
-
* NMN is excluded — it only exists inside the platform and is acquired via swap.
|
|
153
|
-
*/
|
|
154
149
|
declare const DEPOSITABLE_ASSETS: readonly ["USDT", "BTC", "ETH", "BNB", "TRX", "SOL"];
|
|
155
150
|
declare const DepositableAssetSchema: z.ZodEnum<["USDT", "BTC", "ETH", "BNB", "TRX", "SOL"]>;
|
|
156
151
|
type DepositableAsset = z.infer<typeof DepositableAssetSchema>;
|
|
157
|
-
/** The internal token and the funding stablecoin. */
|
|
158
152
|
declare const TOKEN_ASSET: "NMN";
|
|
159
153
|
declare const FUNDING_ASSET: "USDT";
|
|
160
154
|
declare const AssetBalanceSchema: z.ZodObject<{
|
|
@@ -1380,10 +1374,6 @@ declare namespace GetTokenChartCommand {
|
|
|
1380
1374
|
|
|
1381
1375
|
declare namespace SwapCommand {
|
|
1382
1376
|
const endpointDetails: EndpointDetails;
|
|
1383
|
-
/**
|
|
1384
|
-
* For BUY, `amount` is the USDT spent. For SELL, `amount` is the NMN sold.
|
|
1385
|
-
* `maxPrice` (optional) — slippage guard; reject if the live price exceeds it.
|
|
1386
|
-
*/
|
|
1387
1377
|
const RequestSchema: z.ZodObject<{
|
|
1388
1378
|
side: z.ZodEnum<["BUY", "SELL"]>;
|
|
1389
1379
|
amount: z.ZodEffects<z.ZodString, string, string>;
|
|
@@ -1426,6 +1416,437 @@ declare namespace SwapCommand {
|
|
|
1426
1416
|
type Response = z.infer<typeof ResponseSchema>;
|
|
1427
1417
|
}
|
|
1428
1418
|
|
|
1419
|
+
declare const OrderSideSchema: z.ZodEnum<["BUY", "SELL"]>;
|
|
1420
|
+
type OrderSide = z.infer<typeof OrderSideSchema>;
|
|
1421
|
+
declare const OrderTypeSchema: z.ZodEnum<["LIMIT", "MARKET"]>;
|
|
1422
|
+
type OrderType = z.infer<typeof OrderTypeSchema>;
|
|
1423
|
+
declare const OrderStatusSchema: z.ZodEnum<["OPEN", "PARTIAL", "FILLED", "CANCELLED"]>;
|
|
1424
|
+
type OrderStatus = z.infer<typeof OrderStatusSchema>;
|
|
1425
|
+
declare const OrderSchema: z.ZodObject<{
|
|
1426
|
+
id: z.ZodString;
|
|
1427
|
+
side: z.ZodEnum<["BUY", "SELL"]>;
|
|
1428
|
+
type: z.ZodEnum<["LIMIT", "MARKET"]>;
|
|
1429
|
+
price: z.ZodString;
|
|
1430
|
+
quantity: z.ZodString;
|
|
1431
|
+
filled: z.ZodString;
|
|
1432
|
+
remaining: z.ZodString;
|
|
1433
|
+
avgPrice: z.ZodString;
|
|
1434
|
+
status: z.ZodEnum<["OPEN", "PARTIAL", "FILLED", "CANCELLED"]>;
|
|
1435
|
+
createdAt: z.ZodString;
|
|
1436
|
+
}, "strip", z.ZodTypeAny, {
|
|
1437
|
+
type: "LIMIT" | "MARKET";
|
|
1438
|
+
status: "CANCELLED" | "OPEN" | "PARTIAL" | "FILLED";
|
|
1439
|
+
id: string;
|
|
1440
|
+
createdAt: string;
|
|
1441
|
+
price: string;
|
|
1442
|
+
side: "BUY" | "SELL";
|
|
1443
|
+
quantity: string;
|
|
1444
|
+
filled: string;
|
|
1445
|
+
remaining: string;
|
|
1446
|
+
avgPrice: string;
|
|
1447
|
+
}, {
|
|
1448
|
+
type: "LIMIT" | "MARKET";
|
|
1449
|
+
status: "CANCELLED" | "OPEN" | "PARTIAL" | "FILLED";
|
|
1450
|
+
id: string;
|
|
1451
|
+
createdAt: string;
|
|
1452
|
+
price: string;
|
|
1453
|
+
side: "BUY" | "SELL";
|
|
1454
|
+
quantity: string;
|
|
1455
|
+
filled: string;
|
|
1456
|
+
remaining: string;
|
|
1457
|
+
avgPrice: string;
|
|
1458
|
+
}>;
|
|
1459
|
+
type Order = z.infer<typeof OrderSchema>;
|
|
1460
|
+
declare const OrderBookLevelSchema: z.ZodObject<{
|
|
1461
|
+
price: z.ZodString;
|
|
1462
|
+
quantity: z.ZodString;
|
|
1463
|
+
orders: z.ZodNumber;
|
|
1464
|
+
total: z.ZodString;
|
|
1465
|
+
}, "strip", z.ZodTypeAny, {
|
|
1466
|
+
total: string;
|
|
1467
|
+
price: string;
|
|
1468
|
+
quantity: string;
|
|
1469
|
+
orders: number;
|
|
1470
|
+
}, {
|
|
1471
|
+
total: string;
|
|
1472
|
+
price: string;
|
|
1473
|
+
quantity: string;
|
|
1474
|
+
orders: number;
|
|
1475
|
+
}>;
|
|
1476
|
+
type OrderBookLevel = z.infer<typeof OrderBookLevelSchema>;
|
|
1477
|
+
declare const OrderBookSchema: z.ZodObject<{
|
|
1478
|
+
price: z.ZodString;
|
|
1479
|
+
asks: z.ZodArray<z.ZodObject<{
|
|
1480
|
+
price: z.ZodString;
|
|
1481
|
+
quantity: z.ZodString;
|
|
1482
|
+
orders: z.ZodNumber;
|
|
1483
|
+
total: z.ZodString;
|
|
1484
|
+
}, "strip", z.ZodTypeAny, {
|
|
1485
|
+
total: string;
|
|
1486
|
+
price: string;
|
|
1487
|
+
quantity: string;
|
|
1488
|
+
orders: number;
|
|
1489
|
+
}, {
|
|
1490
|
+
total: string;
|
|
1491
|
+
price: string;
|
|
1492
|
+
quantity: string;
|
|
1493
|
+
orders: number;
|
|
1494
|
+
}>, "many">;
|
|
1495
|
+
bids: z.ZodArray<z.ZodObject<{
|
|
1496
|
+
price: z.ZodString;
|
|
1497
|
+
quantity: z.ZodString;
|
|
1498
|
+
orders: z.ZodNumber;
|
|
1499
|
+
total: z.ZodString;
|
|
1500
|
+
}, "strip", z.ZodTypeAny, {
|
|
1501
|
+
total: string;
|
|
1502
|
+
price: string;
|
|
1503
|
+
quantity: string;
|
|
1504
|
+
orders: number;
|
|
1505
|
+
}, {
|
|
1506
|
+
total: string;
|
|
1507
|
+
price: string;
|
|
1508
|
+
quantity: string;
|
|
1509
|
+
orders: number;
|
|
1510
|
+
}>, "many">;
|
|
1511
|
+
updatedAt: z.ZodString;
|
|
1512
|
+
}, "strip", z.ZodTypeAny, {
|
|
1513
|
+
price: string;
|
|
1514
|
+
updatedAt: string;
|
|
1515
|
+
asks: {
|
|
1516
|
+
total: string;
|
|
1517
|
+
price: string;
|
|
1518
|
+
quantity: string;
|
|
1519
|
+
orders: number;
|
|
1520
|
+
}[];
|
|
1521
|
+
bids: {
|
|
1522
|
+
total: string;
|
|
1523
|
+
price: string;
|
|
1524
|
+
quantity: string;
|
|
1525
|
+
orders: number;
|
|
1526
|
+
}[];
|
|
1527
|
+
}, {
|
|
1528
|
+
price: string;
|
|
1529
|
+
updatedAt: string;
|
|
1530
|
+
asks: {
|
|
1531
|
+
total: string;
|
|
1532
|
+
price: string;
|
|
1533
|
+
quantity: string;
|
|
1534
|
+
orders: number;
|
|
1535
|
+
}[];
|
|
1536
|
+
bids: {
|
|
1537
|
+
total: string;
|
|
1538
|
+
price: string;
|
|
1539
|
+
quantity: string;
|
|
1540
|
+
orders: number;
|
|
1541
|
+
}[];
|
|
1542
|
+
}>;
|
|
1543
|
+
type OrderBook = z.infer<typeof OrderBookSchema>;
|
|
1544
|
+
declare const PublicTradeSchema: z.ZodObject<{
|
|
1545
|
+
id: z.ZodString;
|
|
1546
|
+
side: z.ZodEnum<["BUY", "SELL"]>;
|
|
1547
|
+
price: z.ZodString;
|
|
1548
|
+
nmnAmount: z.ZodString;
|
|
1549
|
+
usdtAmount: z.ZodString;
|
|
1550
|
+
createdAt: z.ZodString;
|
|
1551
|
+
}, "strip", z.ZodTypeAny, {
|
|
1552
|
+
id: string;
|
|
1553
|
+
createdAt: string;
|
|
1554
|
+
price: string;
|
|
1555
|
+
side: "BUY" | "SELL";
|
|
1556
|
+
usdtAmount: string;
|
|
1557
|
+
nmnAmount: string;
|
|
1558
|
+
}, {
|
|
1559
|
+
id: string;
|
|
1560
|
+
createdAt: string;
|
|
1561
|
+
price: string;
|
|
1562
|
+
side: "BUY" | "SELL";
|
|
1563
|
+
usdtAmount: string;
|
|
1564
|
+
nmnAmount: string;
|
|
1565
|
+
}>;
|
|
1566
|
+
type PublicTrade = z.infer<typeof PublicTradeSchema>;
|
|
1567
|
+
|
|
1568
|
+
declare namespace PlaceOrderCommand {
|
|
1569
|
+
const endpointDetails: EndpointDetails;
|
|
1570
|
+
const RequestSchema: z.ZodEffects<z.ZodObject<{
|
|
1571
|
+
side: z.ZodEnum<["BUY", "SELL"]>;
|
|
1572
|
+
type: z.ZodDefault<z.ZodEnum<["LIMIT", "MARKET"]>>;
|
|
1573
|
+
price: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
1574
|
+
quantity: z.ZodEffects<z.ZodString, string, string>;
|
|
1575
|
+
idempotencyKey: z.ZodString;
|
|
1576
|
+
}, "strip", z.ZodTypeAny, {
|
|
1577
|
+
type: "LIMIT" | "MARKET";
|
|
1578
|
+
side: "BUY" | "SELL";
|
|
1579
|
+
idempotencyKey: string;
|
|
1580
|
+
quantity: string;
|
|
1581
|
+
price?: string | undefined;
|
|
1582
|
+
}, {
|
|
1583
|
+
side: "BUY" | "SELL";
|
|
1584
|
+
idempotencyKey: string;
|
|
1585
|
+
quantity: string;
|
|
1586
|
+
type?: "LIMIT" | "MARKET" | undefined;
|
|
1587
|
+
price?: string | undefined;
|
|
1588
|
+
}>, {
|
|
1589
|
+
type: "LIMIT" | "MARKET";
|
|
1590
|
+
side: "BUY" | "SELL";
|
|
1591
|
+
idempotencyKey: string;
|
|
1592
|
+
quantity: string;
|
|
1593
|
+
price?: string | undefined;
|
|
1594
|
+
}, {
|
|
1595
|
+
side: "BUY" | "SELL";
|
|
1596
|
+
idempotencyKey: string;
|
|
1597
|
+
quantity: string;
|
|
1598
|
+
type?: "LIMIT" | "MARKET" | undefined;
|
|
1599
|
+
price?: string | undefined;
|
|
1600
|
+
}>;
|
|
1601
|
+
type Request = z.infer<typeof RequestSchema>;
|
|
1602
|
+
const ResponseSchema: z.ZodObject<{
|
|
1603
|
+
order: z.ZodObject<{
|
|
1604
|
+
id: z.ZodString;
|
|
1605
|
+
side: z.ZodEnum<["BUY", "SELL"]>;
|
|
1606
|
+
type: z.ZodEnum<["LIMIT", "MARKET"]>;
|
|
1607
|
+
price: z.ZodString;
|
|
1608
|
+
quantity: z.ZodString;
|
|
1609
|
+
filled: z.ZodString;
|
|
1610
|
+
remaining: z.ZodString;
|
|
1611
|
+
avgPrice: z.ZodString;
|
|
1612
|
+
status: z.ZodEnum<["OPEN", "PARTIAL", "FILLED", "CANCELLED"]>;
|
|
1613
|
+
createdAt: z.ZodString;
|
|
1614
|
+
}, "strip", z.ZodTypeAny, {
|
|
1615
|
+
type: "LIMIT" | "MARKET";
|
|
1616
|
+
status: "CANCELLED" | "OPEN" | "PARTIAL" | "FILLED";
|
|
1617
|
+
id: string;
|
|
1618
|
+
createdAt: string;
|
|
1619
|
+
price: string;
|
|
1620
|
+
side: "BUY" | "SELL";
|
|
1621
|
+
quantity: string;
|
|
1622
|
+
filled: string;
|
|
1623
|
+
remaining: string;
|
|
1624
|
+
avgPrice: string;
|
|
1625
|
+
}, {
|
|
1626
|
+
type: "LIMIT" | "MARKET";
|
|
1627
|
+
status: "CANCELLED" | "OPEN" | "PARTIAL" | "FILLED";
|
|
1628
|
+
id: string;
|
|
1629
|
+
createdAt: string;
|
|
1630
|
+
price: string;
|
|
1631
|
+
side: "BUY" | "SELL";
|
|
1632
|
+
quantity: string;
|
|
1633
|
+
filled: string;
|
|
1634
|
+
remaining: string;
|
|
1635
|
+
avgPrice: string;
|
|
1636
|
+
}>;
|
|
1637
|
+
trades: z.ZodArray<z.ZodObject<{
|
|
1638
|
+
id: z.ZodString;
|
|
1639
|
+
side: z.ZodEnum<["BUY", "SELL"]>;
|
|
1640
|
+
price: z.ZodString;
|
|
1641
|
+
nmnAmount: z.ZodString;
|
|
1642
|
+
usdtAmount: z.ZodString;
|
|
1643
|
+
createdAt: z.ZodString;
|
|
1644
|
+
}, "strip", z.ZodTypeAny, {
|
|
1645
|
+
id: string;
|
|
1646
|
+
createdAt: string;
|
|
1647
|
+
price: string;
|
|
1648
|
+
side: "BUY" | "SELL";
|
|
1649
|
+
usdtAmount: string;
|
|
1650
|
+
nmnAmount: string;
|
|
1651
|
+
}, {
|
|
1652
|
+
id: string;
|
|
1653
|
+
createdAt: string;
|
|
1654
|
+
price: string;
|
|
1655
|
+
side: "BUY" | "SELL";
|
|
1656
|
+
usdtAmount: string;
|
|
1657
|
+
nmnAmount: string;
|
|
1658
|
+
}>, "many">;
|
|
1659
|
+
}, "strip", z.ZodTypeAny, {
|
|
1660
|
+
order: {
|
|
1661
|
+
type: "LIMIT" | "MARKET";
|
|
1662
|
+
status: "CANCELLED" | "OPEN" | "PARTIAL" | "FILLED";
|
|
1663
|
+
id: string;
|
|
1664
|
+
createdAt: string;
|
|
1665
|
+
price: string;
|
|
1666
|
+
side: "BUY" | "SELL";
|
|
1667
|
+
quantity: string;
|
|
1668
|
+
filled: string;
|
|
1669
|
+
remaining: string;
|
|
1670
|
+
avgPrice: string;
|
|
1671
|
+
};
|
|
1672
|
+
trades: {
|
|
1673
|
+
id: string;
|
|
1674
|
+
createdAt: string;
|
|
1675
|
+
price: string;
|
|
1676
|
+
side: "BUY" | "SELL";
|
|
1677
|
+
usdtAmount: string;
|
|
1678
|
+
nmnAmount: string;
|
|
1679
|
+
}[];
|
|
1680
|
+
}, {
|
|
1681
|
+
order: {
|
|
1682
|
+
type: "LIMIT" | "MARKET";
|
|
1683
|
+
status: "CANCELLED" | "OPEN" | "PARTIAL" | "FILLED";
|
|
1684
|
+
id: string;
|
|
1685
|
+
createdAt: string;
|
|
1686
|
+
price: string;
|
|
1687
|
+
side: "BUY" | "SELL";
|
|
1688
|
+
quantity: string;
|
|
1689
|
+
filled: string;
|
|
1690
|
+
remaining: string;
|
|
1691
|
+
avgPrice: string;
|
|
1692
|
+
};
|
|
1693
|
+
trades: {
|
|
1694
|
+
id: string;
|
|
1695
|
+
createdAt: string;
|
|
1696
|
+
price: string;
|
|
1697
|
+
side: "BUY" | "SELL";
|
|
1698
|
+
usdtAmount: string;
|
|
1699
|
+
nmnAmount: string;
|
|
1700
|
+
}[];
|
|
1701
|
+
}>;
|
|
1702
|
+
type Response = z.infer<typeof ResponseSchema>;
|
|
1703
|
+
}
|
|
1704
|
+
declare namespace CancelOrderCommand {
|
|
1705
|
+
const endpointDetails: EndpointDetails;
|
|
1706
|
+
const ResponseSchema: z.ZodObject<{
|
|
1707
|
+
cancelled: z.ZodBoolean;
|
|
1708
|
+
}, "strip", z.ZodTypeAny, {
|
|
1709
|
+
cancelled: boolean;
|
|
1710
|
+
}, {
|
|
1711
|
+
cancelled: boolean;
|
|
1712
|
+
}>;
|
|
1713
|
+
type Response = z.infer<typeof ResponseSchema>;
|
|
1714
|
+
}
|
|
1715
|
+
declare namespace ListMyOrdersCommand {
|
|
1716
|
+
const endpointDetails: EndpointDetails;
|
|
1717
|
+
const ResponseSchema: z.ZodArray<z.ZodObject<{
|
|
1718
|
+
id: z.ZodString;
|
|
1719
|
+
side: z.ZodEnum<["BUY", "SELL"]>;
|
|
1720
|
+
type: z.ZodEnum<["LIMIT", "MARKET"]>;
|
|
1721
|
+
price: z.ZodString;
|
|
1722
|
+
quantity: z.ZodString;
|
|
1723
|
+
filled: z.ZodString;
|
|
1724
|
+
remaining: z.ZodString;
|
|
1725
|
+
avgPrice: z.ZodString;
|
|
1726
|
+
status: z.ZodEnum<["OPEN", "PARTIAL", "FILLED", "CANCELLED"]>;
|
|
1727
|
+
createdAt: z.ZodString;
|
|
1728
|
+
}, "strip", z.ZodTypeAny, {
|
|
1729
|
+
type: "LIMIT" | "MARKET";
|
|
1730
|
+
status: "CANCELLED" | "OPEN" | "PARTIAL" | "FILLED";
|
|
1731
|
+
id: string;
|
|
1732
|
+
createdAt: string;
|
|
1733
|
+
price: string;
|
|
1734
|
+
side: "BUY" | "SELL";
|
|
1735
|
+
quantity: string;
|
|
1736
|
+
filled: string;
|
|
1737
|
+
remaining: string;
|
|
1738
|
+
avgPrice: string;
|
|
1739
|
+
}, {
|
|
1740
|
+
type: "LIMIT" | "MARKET";
|
|
1741
|
+
status: "CANCELLED" | "OPEN" | "PARTIAL" | "FILLED";
|
|
1742
|
+
id: string;
|
|
1743
|
+
createdAt: string;
|
|
1744
|
+
price: string;
|
|
1745
|
+
side: "BUY" | "SELL";
|
|
1746
|
+
quantity: string;
|
|
1747
|
+
filled: string;
|
|
1748
|
+
remaining: string;
|
|
1749
|
+
avgPrice: string;
|
|
1750
|
+
}>, "many">;
|
|
1751
|
+
type Response = z.infer<typeof ResponseSchema>;
|
|
1752
|
+
}
|
|
1753
|
+
declare namespace GetOrderBookCommand {
|
|
1754
|
+
const endpointDetails: EndpointDetails;
|
|
1755
|
+
const ResponseSchema: z.ZodObject<{
|
|
1756
|
+
price: z.ZodString;
|
|
1757
|
+
asks: z.ZodArray<z.ZodObject<{
|
|
1758
|
+
price: z.ZodString;
|
|
1759
|
+
quantity: z.ZodString;
|
|
1760
|
+
orders: z.ZodNumber;
|
|
1761
|
+
total: z.ZodString;
|
|
1762
|
+
}, "strip", z.ZodTypeAny, {
|
|
1763
|
+
total: string;
|
|
1764
|
+
price: string;
|
|
1765
|
+
quantity: string;
|
|
1766
|
+
orders: number;
|
|
1767
|
+
}, {
|
|
1768
|
+
total: string;
|
|
1769
|
+
price: string;
|
|
1770
|
+
quantity: string;
|
|
1771
|
+
orders: number;
|
|
1772
|
+
}>, "many">;
|
|
1773
|
+
bids: z.ZodArray<z.ZodObject<{
|
|
1774
|
+
price: z.ZodString;
|
|
1775
|
+
quantity: z.ZodString;
|
|
1776
|
+
orders: z.ZodNumber;
|
|
1777
|
+
total: z.ZodString;
|
|
1778
|
+
}, "strip", z.ZodTypeAny, {
|
|
1779
|
+
total: string;
|
|
1780
|
+
price: string;
|
|
1781
|
+
quantity: string;
|
|
1782
|
+
orders: number;
|
|
1783
|
+
}, {
|
|
1784
|
+
total: string;
|
|
1785
|
+
price: string;
|
|
1786
|
+
quantity: string;
|
|
1787
|
+
orders: number;
|
|
1788
|
+
}>, "many">;
|
|
1789
|
+
updatedAt: z.ZodString;
|
|
1790
|
+
}, "strip", z.ZodTypeAny, {
|
|
1791
|
+
price: string;
|
|
1792
|
+
updatedAt: string;
|
|
1793
|
+
asks: {
|
|
1794
|
+
total: string;
|
|
1795
|
+
price: string;
|
|
1796
|
+
quantity: string;
|
|
1797
|
+
orders: number;
|
|
1798
|
+
}[];
|
|
1799
|
+
bids: {
|
|
1800
|
+
total: string;
|
|
1801
|
+
price: string;
|
|
1802
|
+
quantity: string;
|
|
1803
|
+
orders: number;
|
|
1804
|
+
}[];
|
|
1805
|
+
}, {
|
|
1806
|
+
price: string;
|
|
1807
|
+
updatedAt: string;
|
|
1808
|
+
asks: {
|
|
1809
|
+
total: string;
|
|
1810
|
+
price: string;
|
|
1811
|
+
quantity: string;
|
|
1812
|
+
orders: number;
|
|
1813
|
+
}[];
|
|
1814
|
+
bids: {
|
|
1815
|
+
total: string;
|
|
1816
|
+
price: string;
|
|
1817
|
+
quantity: string;
|
|
1818
|
+
orders: number;
|
|
1819
|
+
}[];
|
|
1820
|
+
}>;
|
|
1821
|
+
type Response = z.infer<typeof ResponseSchema>;
|
|
1822
|
+
}
|
|
1823
|
+
declare namespace ListTradesCommand {
|
|
1824
|
+
const endpointDetails: EndpointDetails;
|
|
1825
|
+
const ResponseSchema: z.ZodArray<z.ZodObject<{
|
|
1826
|
+
id: z.ZodString;
|
|
1827
|
+
side: z.ZodEnum<["BUY", "SELL"]>;
|
|
1828
|
+
price: z.ZodString;
|
|
1829
|
+
nmnAmount: z.ZodString;
|
|
1830
|
+
usdtAmount: z.ZodString;
|
|
1831
|
+
createdAt: z.ZodString;
|
|
1832
|
+
}, "strip", z.ZodTypeAny, {
|
|
1833
|
+
id: string;
|
|
1834
|
+
createdAt: string;
|
|
1835
|
+
price: string;
|
|
1836
|
+
side: "BUY" | "SELL";
|
|
1837
|
+
usdtAmount: string;
|
|
1838
|
+
nmnAmount: string;
|
|
1839
|
+
}, {
|
|
1840
|
+
id: string;
|
|
1841
|
+
createdAt: string;
|
|
1842
|
+
price: string;
|
|
1843
|
+
side: "BUY" | "SELL";
|
|
1844
|
+
usdtAmount: string;
|
|
1845
|
+
nmnAmount: string;
|
|
1846
|
+
}>, "many">;
|
|
1847
|
+
type Response = z.infer<typeof ResponseSchema>;
|
|
1848
|
+
}
|
|
1849
|
+
|
|
1429
1850
|
declare namespace GetPartnersCommand {
|
|
1430
1851
|
const endpointDetails: EndpointDetails;
|
|
1431
1852
|
const ResponseSchema: zod.ZodObject<{
|
|
@@ -2386,7 +2807,6 @@ declare const TicketStatusSchema: z.ZodEnum<["open", "pending", "answered", "res
|
|
|
2386
2807
|
type TicketStatus = z.infer<typeof TicketStatusSchema>;
|
|
2387
2808
|
declare const TicketAuthorTypeSchema: z.ZodEnum<["user", "support"]>;
|
|
2388
2809
|
type TicketAuthorType = z.infer<typeof TicketAuthorTypeSchema>;
|
|
2389
|
-
/** Rich-text body (sanitized HTML), size-capped. */
|
|
2390
2810
|
declare const TicketBodySchema: z.ZodString;
|
|
2391
2811
|
declare const TicketAttachmentSchema: z.ZodObject<{
|
|
2392
2812
|
id: z.ZodString;
|
|
@@ -2580,7 +3000,6 @@ declare const TicketDetailSchema: z.ZodObject<{
|
|
|
2580
3000
|
}[];
|
|
2581
3001
|
}>;
|
|
2582
3002
|
type TicketDetail = z.infer<typeof TicketDetailSchema>;
|
|
2583
|
-
/** Attachment reference returned by the upload-url flow and sent when posting a message. */
|
|
2584
3003
|
declare const TicketAttachmentInputSchema: z.ZodObject<{
|
|
2585
3004
|
fileKey: z.ZodString;
|
|
2586
3005
|
fileName: z.ZodString;
|
|
@@ -3079,6 +3498,12 @@ declare const REST_API: {
|
|
|
3079
3498
|
readonly SWAP: {
|
|
3080
3499
|
readonly EXECUTE: "/swap";
|
|
3081
3500
|
};
|
|
3501
|
+
readonly EXCHANGE: {
|
|
3502
|
+
readonly ORDERBOOK: "/exchange/orderbook";
|
|
3503
|
+
readonly TRADES: "/exchange/trades";
|
|
3504
|
+
readonly ORDERS: "/exchange/orders";
|
|
3505
|
+
readonly ORDER: "/exchange/orders/:id";
|
|
3506
|
+
};
|
|
3082
3507
|
readonly PARTNERS: {
|
|
3083
3508
|
readonly OVERVIEW: "/partners";
|
|
3084
3509
|
};
|
|
@@ -3131,4 +3556,4 @@ declare const REST_API: {
|
|
|
3131
3556
|
declare const API_PREFIX = "/api";
|
|
3132
3557
|
declare const API_VERSION = "v1";
|
|
3133
3558
|
|
|
3134
|
-
export { API_PREFIX, API_VERSION, ASSET_SYMBOLS, AVATAR_CONTENT_TYPES, type AssetBalance, AssetBalanceSchema, type AssetSymbol, AssetSymbolSchema, AvatarContentTypeSchema, AvatarUploadUrlCommand, CancelWithdrawalCommand, type ChartPeriod, ChartPeriodSchema, type ChartPoint, ChartPointSchema, ClaimDailyBonusCommand, ConfirmEmailChangeCommand, ConfirmTotpCommand, ConfirmWithdrawalCommand, CreateTicketCommand, DEPOSITABLE_ASSETS, type DailyBonusClaimResult, DailyBonusClaimResultSchema, type DailyBonusDay, DailyBonusDaySchema, type DailyBonusStatus, DailyBonusStatusSchema, type DepositAddress, DepositAddressCommand, DepositAddressSchema, type DepositableAsset, DepositableAssetSchema, DisableTotpCommand, ERROR_CODE, type EarningsOverview, EarningsOverviewSchema, type EndpointDetails, type ErrorCode, type ErrorResponse, ErrorResponseSchema, FUNDING_ASSET, GetDailyBonusCommand, GetEarningsCommand, GetIncomeCommand, GetLeaderboardCommand, GetPartnersCommand, GetRanksCommand, GetSettingsCommand, GetTicketCommand, GetTokenChartCommand, GetTokenPriceCommand, GetTransactionsCommand, GetWalletCommand, type HttpMethod, type IncomeOverview, IncomeOverviewSchema, type IncomePeriod, IncomePeriodSchema, type Leaderboard, type LeaderboardEntry, LeaderboardEntrySchema, type LeaderboardPeriod, LeaderboardPeriodSchema, LeaderboardSchema, LinkGoogleCommand, type LinkProvider, LinkProviderSchema, LinkTelegramCommand, type LinkedAccount, LinkedAccountSchema, ListLinkedAccountsCommand, ListNotificationsCommand, ListTicketsCommand, ListWithdrawalsCommand, LoginCommand, LogoutCommand, MONEY_REGEX, MarkNotificationsReadCommand, MeCommand, MoneyStringSchema, type MonthlyPricePoint, MonthlyPricePointSchema, type Notification, NotificationSchema, type NotificationType, NotificationTypeSchema, PaginatedSchema, type PaginationQuery, PaginationQuerySchema, type PartnerAccrual, PartnerAccrualSchema, type PartnerLevel, PartnerLevelSchema, type PartnersOverview, PartnersOverviewSchema, PositiveMoneyStringSchema, REST_API, type RankDef, RankDefSchema, RegisterCommand, ReplyTicketCommand, RequestEmailChangeCommand, RequestWithdrawalCommand, type SessionInfo, SessionInfoSchema, SetupTotpCommand, SwapCommand, type SwapSide, SwapSideSchema, TICKET_CATEGORIES, TOKEN_ASSET, type TicketAttachment, type TicketAttachmentInput, TicketAttachmentInputSchema, TicketAttachmentSchema, TicketAttachmentUploadCommand, type TicketAuthorType, TicketAuthorTypeSchema, TicketBodySchema, type TicketCategory, TicketCategorySchema, type TicketDetail, TicketDetailSchema, type TicketMessage, TicketMessageSchema, type TicketStatus, TicketStatusSchema, type TicketSummary, TicketSummarySchema, type TokenPrice, TokenPriceSchema, type TradeResult, TradeResultSchema, type Transaction, TransactionSchema, type TransactionStatus, TransactionStatusSchema, type TransactionType, TransactionTypeSchema, UnlinkAccountCommand, UpdateProfileCommand, UpdateSettingsCommand, type UserProfile, UserProfileSchema, type UserRank, UserRankSchema, type UserSettings, UserSettingsSchema, type UserStatus, UserStatusSchema, UuidSchema, type WalletOverview, WalletOverviewSchema, type Withdrawal, WithdrawalSchema, type WithdrawalStatus, WithdrawalStatusSchema, endpoint };
|
|
3559
|
+
export { API_PREFIX, API_VERSION, ASSET_SYMBOLS, AVATAR_CONTENT_TYPES, type AssetBalance, AssetBalanceSchema, type AssetSymbol, AssetSymbolSchema, AvatarContentTypeSchema, AvatarUploadUrlCommand, CancelOrderCommand, CancelWithdrawalCommand, type ChartPeriod, ChartPeriodSchema, type ChartPoint, ChartPointSchema, ClaimDailyBonusCommand, ConfirmEmailChangeCommand, ConfirmTotpCommand, ConfirmWithdrawalCommand, CreateTicketCommand, DEPOSITABLE_ASSETS, type DailyBonusClaimResult, DailyBonusClaimResultSchema, type DailyBonusDay, DailyBonusDaySchema, type DailyBonusStatus, DailyBonusStatusSchema, type DepositAddress, DepositAddressCommand, DepositAddressSchema, type DepositableAsset, DepositableAssetSchema, DisableTotpCommand, ERROR_CODE, type EarningsOverview, EarningsOverviewSchema, type EndpointDetails, type ErrorCode, type ErrorResponse, ErrorResponseSchema, FUNDING_ASSET, GetDailyBonusCommand, GetEarningsCommand, GetIncomeCommand, GetLeaderboardCommand, GetOrderBookCommand, GetPartnersCommand, GetRanksCommand, GetSettingsCommand, GetTicketCommand, GetTokenChartCommand, GetTokenPriceCommand, GetTransactionsCommand, GetWalletCommand, type HttpMethod, type IncomeOverview, IncomeOverviewSchema, type IncomePeriod, IncomePeriodSchema, type Leaderboard, type LeaderboardEntry, LeaderboardEntrySchema, type LeaderboardPeriod, LeaderboardPeriodSchema, LeaderboardSchema, LinkGoogleCommand, type LinkProvider, LinkProviderSchema, LinkTelegramCommand, type LinkedAccount, LinkedAccountSchema, ListLinkedAccountsCommand, ListMyOrdersCommand, ListNotificationsCommand, ListTicketsCommand, ListTradesCommand, ListWithdrawalsCommand, LoginCommand, LogoutCommand, MONEY_REGEX, MarkNotificationsReadCommand, MeCommand, MoneyStringSchema, type MonthlyPricePoint, MonthlyPricePointSchema, type Notification, NotificationSchema, type NotificationType, NotificationTypeSchema, type Order, type OrderBook, type OrderBookLevel, OrderBookLevelSchema, OrderBookSchema, OrderSchema, type OrderSide, OrderSideSchema, type OrderStatus, OrderStatusSchema, type OrderType, OrderTypeSchema, PaginatedSchema, type PaginationQuery, PaginationQuerySchema, type PartnerAccrual, PartnerAccrualSchema, type PartnerLevel, PartnerLevelSchema, type PartnersOverview, PartnersOverviewSchema, PlaceOrderCommand, PositiveMoneyStringSchema, type PublicTrade, PublicTradeSchema, REST_API, type RankDef, RankDefSchema, RegisterCommand, ReplyTicketCommand, RequestEmailChangeCommand, RequestWithdrawalCommand, type SessionInfo, SessionInfoSchema, SetupTotpCommand, SwapCommand, type SwapSide, SwapSideSchema, TICKET_CATEGORIES, TOKEN_ASSET, type TicketAttachment, type TicketAttachmentInput, TicketAttachmentInputSchema, TicketAttachmentSchema, TicketAttachmentUploadCommand, type TicketAuthorType, TicketAuthorTypeSchema, TicketBodySchema, type TicketCategory, TicketCategorySchema, type TicketDetail, TicketDetailSchema, type TicketMessage, TicketMessageSchema, type TicketStatus, TicketStatusSchema, type TicketSummary, TicketSummarySchema, type TokenPrice, TokenPriceSchema, type TradeResult, TradeResultSchema, type Transaction, TransactionSchema, type TransactionStatus, TransactionStatusSchema, type TransactionType, TransactionTypeSchema, UnlinkAccountCommand, UpdateProfileCommand, UpdateSettingsCommand, type UserProfile, UserProfileSchema, type UserRank, UserRankSchema, type UserSettings, UserSettingsSchema, type UserStatus, UserStatusSchema, UuidSchema, type WalletOverview, WalletOverviewSchema, type Withdrawal, WithdrawalSchema, type WithdrawalStatus, WithdrawalStatusSchema, endpoint };
|