MCPcopy Index your code
hub / github.com/ccxt/ccxt / parseMarket

Method parseMarket

java/lib/src/main/java/io/github/ccxt/exchanges/OkxCore.java:1727–1925  ·  view source on GitHub ↗
(Object market)

Source from the content-addressed store, hash-verified

1725 }
1726
1727 public Object parseMarket(Object market)
1728 {
1729 //
1730 // {
1731 // "alias": "", // this_week, next_week, quarter, next_quarter
1732 // "baseCcy": "BTC",
1733 // "category": "1",
1734 // "ctMult": "",
1735 // "ctType": "", // inverse, linear
1736 // "ctVal": "",
1737 // "ctValCcy": "",
1738 // "expTime": "",
1739 // "instId": "BTC-USDT", // BTC-USD-210521, CSPR-USDT-SWAP, BTC-USD-210517-44000-C
1740 // "instType": "SPOT", // SPOT, FUTURES, SWAP, OPTION
1741 // "lever": "10",
1742 // "listTime": "1548133413000",
1743 // "lotSz": "0.00000001",
1744 // "minSz": "0.00001",
1745 // "optType": "",
1746 // "quoteCcy": "USDT",
1747 // "settleCcy": "",
1748 // "state": "live",
1749 // "stk": "",
1750 // "tickSz": "0.1",
1751 // "uly": ""
1752 // }
1753 //
1754 // {
1755 // "alias": "",
1756 // "baseCcy": "",
1757 // "category": "1",
1758 // "ctMult": "0.1",
1759 // "ctType": "",
1760 // "ctVal": "1",
1761 // "ctValCcy": "BTC",
1762 // "expTime": "1648195200000",
1763 // "instId": "BTC-USD-220325-194000-P",
1764 // "instType": "OPTION",
1765 // "lever": "",
1766 // "listTime": "1631262612280",
1767 // "contTdSwTime": "1631262812280",
1768 // "lotSz": "1",
1769 // "minSz": "1",
1770 // "optType": "P",
1771 // "quoteCcy": "",
1772 // "settleCcy": "BTC",
1773 // "state": "live",
1774 // "stk": "194000",
1775 // "tickSz": "0.0005",
1776 // "uly": "BTC-USD"
1777 // }
1778 //
1779 // for swap "preopen" markets, only `instId` and `instType` are present
1780 //
1781 // instId: "ETH-USD_UM-SWAP",
1782 // instType: "SWAP",
1783 // state: "preopen",
1784 //

Callers

nothing calls this directly

Calls 15

isTrueMethod · 0.95
isEqualMethod · 0.95
splitMethod · 0.95
addMethod · 0.95
stringMaxMethod · 0.95
stringGtMethod · 0.95
safeInteger2Method · 0.80
safeStringMethod · 0.45
safeStringLowerMethod · 0.45
safeCurrencyCodeMethod · 0.45
safeIntegerMethod · 0.45
yymmddMethod · 0.45

Tested by

no test coverage detected