Skip to content

Commit d971fd5

Browse files
authored
add fmv to snapshot and ws models and add new feeds (#539)
1 parent f5c4fc5 commit d971fd5

File tree

11 files changed

+2096
-724
lines changed

11 files changed

+2096
-724
lines changed

.polygon/rest.json

Lines changed: 1714 additions & 724 deletions
Large diffs are not rendered by default.

.polygon/websocket.json

Lines changed: 333 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,11 @@
4848
"/stocks/LULD"
4949
]
5050
},
51+
{
52+
"paths": [
53+
"/business/stocks/FMV"
54+
]
55+
},
5156
{
5257
"paths": [
5358
"/launchpad/stocks/AM"
@@ -84,6 +89,11 @@
8489
"/options/Q"
8590
]
8691
},
92+
{
93+
"paths": [
94+
"/business/options/FMV"
95+
]
96+
},
8797
{
8898
"paths": [
8999
"/launchpad/options/AM"
@@ -110,6 +120,11 @@
110120
"/forex/C"
111121
]
112122
},
123+
{
124+
"paths": [
125+
"/business/forex/FMV"
126+
]
127+
},
113128
{
114129
"paths": [
115130
"/launchpad/forex/AM"
@@ -146,6 +161,11 @@
146161
"/crypto/XL2"
147162
]
148163
},
164+
{
165+
"paths": [
166+
"/business/crypto/FMV"
167+
]
168+
},
149169
{
150170
"paths": [
151171
"/launchpad/crypto/AM"
@@ -915,6 +935,79 @@
915935
]
916936
}
917937
},
938+
"/business/stocks/FMV": {
939+
"get": {
940+
"summary": "Fair Market Value",
941+
"description": "Real-time fair market value for a given stock ticker symbol.\n",
942+
"parameters": [
943+
{
944+
"name": "ticker",
945+
"in": "query",
946+
"description": "Specify a stock ticker or use * to subscribe to all stock tickers.\nYou can also use a comma separated list to subscribe to multiple stock tickers.\nYou can retrieve available stock tickers from our [Stock Tickers API](https://polygon.io/docs/stocks/get_v3_reference_tickers).\n",
947+
"required": true,
948+
"schema": {
949+
"type": "string",
950+
"pattern": "/^([a-zA-Z]+)$/"
951+
},
952+
"example": "*"
953+
}
954+
],
955+
"responses": {
956+
"200": {
957+
"description": "The WebSocket message for a fair market value event.",
958+
"content": {
959+
"application/json": {
960+
"schema": {
961+
"type": "object",
962+
"properties": {
963+
"ev": {
964+
"type": "string",
965+
"enum": [
966+
"FMV"
967+
],
968+
"description": "The event type."
969+
},
970+
"fmv": {
971+
"description": "Fair market value is only available on Business plans. It is our proprietary algorithm to generate a real-time, accurate, fair market value of a tradable security. For more information, <a rel=\"nofollow\" target=\"_blank\" href=\"https://polygon.io/contact\">contact us</a>.\n"
972+
},
973+
"sym": {
974+
"description": "The ticker symbol for the given security."
975+
},
976+
"t": {
977+
"description": "The nanosecond timestamp."
978+
}
979+
}
980+
},
981+
"example": {
982+
"ev": "FMV",
983+
"val": 189.22,
984+
"sym": "AAPL",
985+
"t": 1678220098130
986+
}
987+
}
988+
}
989+
}
990+
},
991+
"x-polygon-entitlement-data-type": {
992+
"name": "indicative-price",
993+
"description": "Indicative Price"
994+
},
995+
"x-polygon-entitlement-market-type": {
996+
"name": "stocks",
997+
"description": "Stocks data"
998+
},
999+
"x-polygon-entitlement-allowed-timeframes": [
1000+
{
1001+
"name": "delayed",
1002+
"description": "15 minute delayed data"
1003+
},
1004+
{
1005+
"name": "realtime",
1006+
"description": "Real Time Data"
1007+
}
1008+
]
1009+
}
1010+
},
9181011
"/launchpad/stocks/AM": {
9191012
"get": {
9201013
"summary": "Aggregates (Per Minute)",
@@ -1608,6 +1701,79 @@
16081701
]
16091702
}
16101703
},
1704+
"/business/options/FMV": {
1705+
"get": {
1706+
"summary": "Fair Market Value",
1707+
"description": "Real-time fair market value for a given options ticker symbol.\n",
1708+
"parameters": [
1709+
{
1710+
"name": "ticker",
1711+
"in": "query",
1712+
"description": "Specify an option contract. You're only allowed to subscribe to 1,000 option contracts per connection.\nYou can also use a comma separated list to subscribe to multiple option contracts.\nYou can retrieve active options contracts from our [Options Contracts API](https://polygon.io/docs/options/get_v3_reference_options_contracts).\n",
1713+
"required": true,
1714+
"schema": {
1715+
"type": "string",
1716+
"pattern": "/^(([a-zA-Z]+|[0-9])+)$/"
1717+
},
1718+
"example": "O:SPY241220P00720000"
1719+
}
1720+
],
1721+
"responses": {
1722+
"200": {
1723+
"description": "The WebSocket message for a fair market value event.",
1724+
"content": {
1725+
"application/json": {
1726+
"schema": {
1727+
"type": "object",
1728+
"properties": {
1729+
"ev": {
1730+
"type": "string",
1731+
"enum": [
1732+
"FMV"
1733+
],
1734+
"description": "The event type."
1735+
},
1736+
"fmv": {
1737+
"description": "Fair market value is only available on Business plans. It is our proprietary algorithm to generate a real-time, accurate, fair market value of a tradable security. For more information, <a rel=\"nofollow\" target=\"_blank\" href=\"https://polygon.io/contact\">contact us</a>.\n"
1738+
},
1739+
"sym": {
1740+
"description": "The ticker symbol for the given security."
1741+
},
1742+
"t": {
1743+
"description": "The nanosecond timestamp."
1744+
}
1745+
}
1746+
},
1747+
"example": {
1748+
"ev": "FMV",
1749+
"val": 7.2,
1750+
"sym": "O:TSLA210903C00700000",
1751+
"t": 1401715883806000000
1752+
}
1753+
}
1754+
}
1755+
}
1756+
},
1757+
"x-polygon-entitlement-data-type": {
1758+
"name": "indicative-price",
1759+
"description": "Indicative Price"
1760+
},
1761+
"x-polygon-entitlement-market-type": {
1762+
"name": "options",
1763+
"description": "Options data"
1764+
},
1765+
"x-polygon-entitlement-allowed-timeframes": [
1766+
{
1767+
"name": "delayed",
1768+
"description": "15 minute delayed data"
1769+
},
1770+
{
1771+
"name": "realtime",
1772+
"description": "Real Time Data"
1773+
}
1774+
]
1775+
}
1776+
},
16111777
"/launchpad/options/AM": {
16121778
"get": {
16131779
"summary": "Aggregates (Per Minute)",
@@ -2005,6 +2171,79 @@
20052171
]
20062172
}
20072173
},
2174+
"/business/forex/FMV": {
2175+
"get": {
2176+
"summary": "Fair Market Value",
2177+
"description": "Real-time fair market value for a given forex ticker symbol.\n",
2178+
"parameters": [
2179+
{
2180+
"name": "ticker",
2181+
"in": "query",
2182+
"description": "Specify a forex pair in the format {from}/{to} or use * to subscribe to all forex pairs.\nYou can also use a comma separated list to subscribe to multiple forex pairs.\nYou can retrieve active forex tickers from our [Forex Tickers API](https://polygon.io/docs/forex/get_v3_reference_tickers).\n",
2183+
"required": true,
2184+
"schema": {
2185+
"type": "string",
2186+
"pattern": "/^(?<from>([A-Z]{3})\\/?<to>([A-Z]{3}))$/"
2187+
},
2188+
"example": "*"
2189+
}
2190+
],
2191+
"responses": {
2192+
"200": {
2193+
"description": "The WebSocket message for a fair market value event.",
2194+
"content": {
2195+
"application/json": {
2196+
"schema": {
2197+
"type": "object",
2198+
"properties": {
2199+
"ev": {
2200+
"type": "string",
2201+
"enum": [
2202+
"FMV"
2203+
],
2204+
"description": "The event type."
2205+
},
2206+
"fmv": {
2207+
"description": "Fair market value is only available on Business plans. It is our proprietary algorithm to generate a real-time, accurate, fair market value of a tradable security. For more information, <a rel=\"nofollow\" target=\"_blank\" href=\"https://polygon.io/contact\">contact us</a>.\n"
2208+
},
2209+
"sym": {
2210+
"description": "The ticker symbol for the given security."
2211+
},
2212+
"t": {
2213+
"description": "The nanosecond timestamp."
2214+
}
2215+
}
2216+
},
2217+
"example": {
2218+
"ev": "FMV",
2219+
"val": 1.0631,
2220+
"sym": "C:EURUSD",
2221+
"t": 1678220098130
2222+
}
2223+
}
2224+
}
2225+
}
2226+
},
2227+
"x-polygon-entitlement-data-type": {
2228+
"name": "indicative-price",
2229+
"description": "Indicative Price"
2230+
},
2231+
"x-polygon-entitlement-market-type": {
2232+
"name": "fx",
2233+
"description": "Forex data"
2234+
},
2235+
"x-polygon-entitlement-allowed-timeframes": [
2236+
{
2237+
"name": "delayed",
2238+
"description": "15 minute delayed data"
2239+
},
2240+
{
2241+
"name": "realtime",
2242+
"description": "Real Time Data"
2243+
}
2244+
]
2245+
}
2246+
},
20082247
"/launchpad/forex/AM": {
20092248
"get": {
20102249
"summary": "Aggregates (Per Minute)",
@@ -2646,6 +2885,79 @@
26462885
]
26472886
}
26482887
},
2888+
"/business/crypto/FMV": {
2889+
"get": {
2890+
"summary": "Fair Market Value",
2891+
"description": "Real-time fair market value for a given crypto ticker symbol.\n",
2892+
"parameters": [
2893+
{
2894+
"name": "ticker",
2895+
"in": "query",
2896+
"description": "Specify a crypto pair in the format {from}-{to} or use * to subscribe to all crypto pairs.\nYou can also use a comma separated list to subscribe to multiple crypto pairs.\nYou can retrieve active crypto tickers from our [Crypto Tickers API](https://polygon.io/docs/crypto/get_v3_reference_tickers).\n",
2897+
"required": true,
2898+
"schema": {
2899+
"type": "string",
2900+
"pattern": "/^(?<from>([A-Z]*)-(?<to>[A-Z]{3}))$/"
2901+
},
2902+
"example": "*"
2903+
}
2904+
],
2905+
"responses": {
2906+
"200": {
2907+
"description": "The WebSocket message for a fair market value event.",
2908+
"content": {
2909+
"application/json": {
2910+
"schema": {
2911+
"type": "object",
2912+
"properties": {
2913+
"ev": {
2914+
"type": "string",
2915+
"enum": [
2916+
"FMV"
2917+
],
2918+
"description": "The event type."
2919+
},
2920+
"fmv": {
2921+
"description": "Fair market value is only available on Business plans. It is our proprietary algorithm to generate a real-time, accurate, fair market value of a tradable security. For more information, <a rel=\"nofollow\" target=\"_blank\" href=\"https://polygon.io/contact\">contact us</a>.\n"
2922+
},
2923+
"sym": {
2924+
"description": "The ticker symbol for the given security."
2925+
},
2926+
"t": {
2927+
"description": "The nanosecond timestamp."
2928+
}
2929+
}
2930+
},
2931+
"example": {
2932+
"ev": "FMV",
2933+
"val": 33021.9,
2934+
"sym": "X:BTC-USD",
2935+
"t": 1610462007425
2936+
}
2937+
}
2938+
}
2939+
}
2940+
},
2941+
"x-polygon-entitlement-data-type": {
2942+
"name": "indicative-price",
2943+
"description": "Indicative Price"
2944+
},
2945+
"x-polygon-entitlement-market-type": {
2946+
"name": "crypto",
2947+
"description": "Crypto data"
2948+
},
2949+
"x-polygon-entitlement-allowed-timeframes": [
2950+
{
2951+
"name": "delayed",
2952+
"description": "15 minute delayed data"
2953+
},
2954+
{
2955+
"name": "realtime",
2956+
"description": "Real Time Data"
2957+
}
2958+
]
2959+
}
2960+
},
26492961
"/launchpad/crypto/AM": {
26502962
"get": {
26512963
"summary": "Aggregates (Per Minute)",
@@ -4621,6 +4933,27 @@
46214933
"description": "The nanosecond timestamp."
46224934
}
46234935
}
4936+
},
4937+
"BusinessWebsocketFairMarketValue": {
4938+
"type": "object",
4939+
"properties": {
4940+
"ev": {
4941+
"type": "string",
4942+
"enum": [
4943+
"FMV"
4944+
],
4945+
"description": "The event type."
4946+
},
4947+
"fmv": {
4948+
"description": "Fair market value is only available on Business plans. It is our proprietary algorithm to generate a real-time, accurate, fair market value of a tradable security. For more information, <a rel=\"nofollow\" target=\"_blank\" href=\"https://polygon.io/contact\">contact us</a>.\n"
4949+
},
4950+
"sym": {
4951+
"description": "The ticker symbol for the given security."
4952+
},
4953+
"t": {
4954+
"description": "The nanosecond timestamp."
4955+
}
4956+
}
46244957
}
46254958
},
46264959
"parameters": {

0 commit comments

Comments
 (0)