Stock and Options API

The Stock and Options API offers market data for analysis and informed trading.

About the API:  

The Stock and Options API provides users with access to a wide range of financial data, specifically focused on stocks and options. With a variety of functionalities and endpoints designed to meet the specific needs of investors and traders, this API offers a complete solution for accessing and analyzing fundamental market data.

It allows users to retrieve detailed information about a specific stock or ETF (exchange-traded fund) through the "ticker" parameter. This parameter allows users to specify the ticker symbol of the stock or ETF they wish to query, allowing them to access a wide range of data related to that financial institution.

Using this endpoint, users can obtain a wide variety of data, including, but not limited to, the current share price, trading volume, closing price and more. This data is essential for evaluating the performance of a stock or ETF, identifying market trends, and making informed investment and trading decisions.

Both API endpoints are designed to be easy to use and provide data in an easy-to-consume JSON format. This allows users to easily integrate the data into their existing applications and systems, facilitating real-time data-driven analysis and decision making.

In summary, the Stock and Options API provides users with access to a wide range of financial data related to stocks and options. With specific functionality to access detailed stock and ETF data, as well as options strategies such as the straddle, this API is an invaluable tool for investors and traders looking to make informed and strategic decisions in the financial markets.

 

What this API receives and what your API provides (input/output)?

It will receive parameters and provide you with a JSON.

 

What are the most common uses cases of this API?

  1. Market analysis: Use the API to analyze market data to identify trends and patterns.

    Trading strategy development: Develop and backtest trading strategies using historical data and market indicators provided by the API.

    Risk management: Monitor key risk metrics, such as volatility, open interest and option cracks, to effectively manage portfolio risk.

    Portfolio optimization: Optimize portfolio allocation, diversification and risk-adjusted returns based on historical performance data.

    Algorithmic Trading: Implement algorithmic trading strategies by accessing real-time market data and executing trades programmatically.

 

Are there any limitations to your plans?

  • Basic Plan: 5 requests per minute.

    Pro Plan: 20 requests per minute.

    Pro Plus Plan: 20 requests per minute.

    Premium Plan: 20 requests per minute.

    Elite Plan: 20 requests per minute.

    Ultimate Plan: 20 requests per minute.

API Documentation

Endpoints


To use this endpoint you must indicate a ticket in the parameter.



                                                                            
GET https://zylalabs.com/api/4094/stock+and+options+api/4946/stock+and+options
                                                                            
                                                                        

Test Endpoint

API EXAMPLE RESPONSE

       
                                                                                                        
                                                                                                                                                                                                                            {"stock": {"avgTotalVolume": 64666029, "calculationPrice": "tops", "close": 186.63, "closeSource": "official", "closeTime": 1715621670624, "currency": "USD", "delayedPrice": null, "delayedPriceTime": null, "extendedChange": null, "extendedChangePercent": null, "extendedPrice": null, "extendedPriceTime": null, "highSource": "IEX real time price", "highTime": 1715621148081, "lastTradeTime": 1715621670624, "latestSource": "InterData real time price", "latestTime": "1:34:30 PM", "latestUpdate": 1715621670624, "latestVolume": 39535453, "lowSource": null, "lowTime": null, "marketCap": 2861799723660, "oddLotDelayedPrice": null, "oddLotDelayedPriceTime": null, "open": null, "openTime": 1715607000699, "openSource": "official", "peRatio": 29.02, "previousVolume": 50759496, "primaryExchange": "NASDAQ", "symbol": "AAPL", "volume": 860101, "week52High": 198.57, "week52Low": 163.63, "ytdChange": -0.024664647151549278, "isUSMarketOpen": true, "shortName": "Apple Inc", "regularMarketPrice": 186.63, "regularMarketOpen": 185.59, "regularMarketDayHigh": 186.915, "regularMarketDayLow": null, "regularMarketPreviousClose": 183.05, "regularMarketChange": 3.58, "regularMarketChangePercent": 0.01956, "bid": 186.59, "ask": 187, "askSize": 123, "bidSize": 200, "lastUpdated": "05/13/2024", "marketPercent": 0.021755182620520373, "realtimePrice": 186.63, "realtimeSize": 100}, "options": [{"2024-05-17": {"calls": [{"symbol": "AAPL240517C00005000", "strike": 5.0, "last": 177.71, "bid": 181.5, "ask": 182.15, "open interest": 1.0, "volume": 50.0, "change": 0.0, "percentChange": 0.0, "iv": 14.1406}, {"symbol": "AAPL240517C00010000", "strike": 10.0, "last": 172.72, "bid": 176.35, "ask": 177.05, "open interest": 1.0, "volume": 1.0, "change": 0.0, "percentChange": 0.0, "iv": 9.75}, {"symbol": "AAPL240517C00020000", "strike": 20.0, "last": 164.5, "bid": 166.4, "ask": 167.05, "open interest": 100.0, "volume": 100.0, "change": 0.0, "percentChange": 0.0, "iv": 7.5781}, {"symbol": "AAPL240517C00025000", "strike": 25.0, "last": 159.4, "bid": 161.45, "ask": 162.15, "open interest": 46.0, "volume": 45.0, "change": 0.0, "percentChange": 0.0, "iv": 7.2969}, {"symbol": "AAPL240517C00035000", "strike": 35.0, "last": 139.72, "bid": 151.4, "ask": 152.05, "open interest": 1.0, "volume": 0.0, "change": 0.0, "percentChange": 0.0, "iv": 5.6641}, {"symbol": "AAPL240517C00045000", "strike": 45.0, "last": 139.5, "bid": 141.5, "ask": 142.0, "open interest": 11.0, "volume": 11.0, "change": 0.0, "percentChange": 0.0, "iv": 4.9609}, {"symbol": "AAPL240517C00050000", "strike": 50.0, "last": 124.44, "bid": 119.6, "ask": 120.35, "open interest": 6.0, "volume": 1.0, "change": 0.0, "percentChange": 0.0, "iv": 0.0}, {"symbol": "AAPL240517C00055000", "strike": 55.0, "last": 120.96, "bid": 114.65, "ask": 115.4, "open interest": 4.0, "volume": 1.0, "change": 0.0, "percentChange": 0.0, "iv": 0.0}, {"symbol": "AAPL240517C00065000", "strike": 65.0, "last": 118.8, "bid": 121.45, "ask": 122.25, "open interest": 0.0, "volume": 1.0, "change": 0.0, "percentChange": 0.0, "iv": 4.0195}, {"symbol": "AAPL240517C00070000", "strike": 70.0, "last": 107.92, "bid": 112.65, "ask": 113.45, "open interest": 0.0, "volume": 5.0, "change": 0.0, "percentChange": 0.0, "iv": 0.0}, {"symbol": "AAPL240517C00075000", "strike": 75.0, "last": 98.38, "bid": 111.5, "ask": 112.1, "open interest": 1.0, "volume": 1.0, "change": 0.0, "percentChange": 0.0, "iv": 3.3906}, {"symbol": "AAPL240517C00080000", "strike": 80.0, "last": 90.97, "bid": 106.45, "ask": 107.1, "open interest": 5.0, "volume": 2.0, "change": 0.0, "percentChange": 0.0, "iv": 3.1016}, {"symbol": "AAPL240517C00085000", "strike": 85.0, "last": 99.3, "bid": 101.5, "ask": 102.1, "open interest": 148.0, "volume": 2.0, "change": 0.0, "percentChange": 0.0, "iv": 2.9531}, {"symbol": "AAPL240517C00090000", "strike": 90.0, "last": 92.77, "bid": 96.5, "ask": 96.95, "open interest": 8.0, "volume": 6.0, "change": 0.0, "percentChange": 0.0, "iv": 2.5625}, {"symbol": "AAPL240517C00095000", "strike": 95.0, "last": 88.85, "bid": 91.35, "ask": 92.0, "open interest": 163.0, "volume": 90.0, "change": 0.0, "percentChange": 0.0, "iv": 2.1875}, {"symbol": "AAPL240517C00100000", "strike": 100.0, "last": 84.26, "bid": 86.5, "ask": 87.1, "open interest": 6.0, "volume": 11.0, "change": 0.0, "percentChange": 0.0, "iv": 2.3906}, {"symbol": "AAPL240517C00105000", "strike": 105.0, "last": 79.55, "bid": 81.45, "ask": 82.15, "open interest": 61.0, "volume": 3.0, "change": 0.0, "percentChange": 0.0, "iv": 2.2188}, {"symbol": "AAPL240517C00110000", "strike": 110.0, "last": 76.35, "bid": 76.45, "ask": 77.15, "open interest": 9.0, "volume": 4.0, "change": 1.2999954, "percentChange": 1.73, "iv": 2.0586}, {"symbol": "AAPL240517C00115000", "strike": 115.0, "last": 68.69, "bid": 71.5, "ask": 71.95, "open interest": 11.0, "volume": 2.0, "change": 0.0, "percentChange": 0.0, "iv": 1.7617}, {"symbol": "AAPL240517C00120000", "strike": 120.0, "last": 64.33, "bid": 66.6, "ask": 67.3, "open interest": 27.0, "volume": 6.0, "change": 0.0, "percentChange": 0.0, "iv": 1.9277}, {"symbol": "AAPL240517C00125000", "strike": 125.0, "last": 47.45, "bid": 61.5, "ask": 62.3, "open interest": 3.0, "volume": 4.0, "change": 0.0, "percentChange": 0.0, "iv": 1.7227}, {"symbol": "AAPL240517C00130000", "strike": 130.0, "last": 52.69, "bid": 56.55, "ask": 57.15, "open interest": 15.0, "volume": 14.0, "change": 0.0, "percentChange": 0.0, "iv": 1.5254}, {"symbol": "AAPL240517C00135000", "strike": 135.0, "last": 47.84, "bid": 51.7, "ask": 52.3, "open interest": 4.0, "volume": 3.0, "change": 0.0, "percentChange": 0.0, "iv": 1.5117}, {"symbol": "AAPL240517C00140000", "strike": 140.0, "last": 46.55, "bid": 46.55, "ask": 47.1, "open interest": 159.0, "volume": 10.0, "change": 3.3199997, "percentChange": 7.68, "iv": 1.2266}, {"symbol": "AAPL240517C00145000", "strike": 145.0, "last": 38.25, "bid": 41.55, "ask": 42.3, "open interest": 59.0, "volume": 38.0, "change": 0.0, "percentChange": 0.0, "iv": 1.1748}, {"symbol": "AAPL240517C00150000", "strike": 150.0, "last": 36.8, "bid": 36.55, "ask": 37.05, "open interest": 489.0, "volume": 77.0, "change": 3.7799988, "percentChange": 11.45, "iv": 0.9473}, {"symbol": "AAPL240517C00152500", "strike": 152.5, "last": 32.45, "bid": 34.1, "ask": 34.7, "open interest": 29.0, "volume": 1.0, "change": 0.0, "percentChange": 0.0, "iv": 0.959}, {"symbol": "AAPL240517C00155000", "strike": 155.0, "last": 31.58, "bid": 31.7, "ask": 32.2, "open interest": 77.0, "volume": 4.0, "change": 2.0499992, "percentChange": 6.94, "iv": 0.9229}, {"symbol": "AAPL240517C00157500", "strike": 157.5, "last": 25.0, "bid": 29.0, "ask": 29.75, "open interest": 2.0, "volume": 6.0, "change": 0.0, "percentChange": 0.0, "iv": 0.8145}, {"symbol": "AAPL240517C00160000", "strike": 160.0, "last": 26.45, "bid": 26.55, "ask": 27.2, "open interest": 542.0, "volume": 372.0, "change": 3.08, "percentChange": 13.18, "iv": 0.751}, {"symbol": "AAPL240517C00162500", "strike": 162.5, "last": 23.15, "bid": 24.35, "ask": 24.8, "open interest": 288.0, "volume": 12.0, "change": 3.1999989, "percentChange": 16.04, "iv": 0.7783}, {"symbol": "AAPL240517C00165000", "strike": 165.0, "last": 22.0, "bid": 21.85, "ask": 22.0, "open interest": 1929.0, "volume": 107.0, "change": 3.67, "percentChange": 20.02, "iv": 0.6494}, {"symbol": "AAPL240517C00167500", "strike": 167.5, "last": 18.95, "bid": 19.2, "ask": 19.5, "open interest": 1698.0, "volume": 26.0, "change": 3.1800003, "percentChange": 20.16, "iv": 0.5508}, {"symbol": "AAPL240517C00170000", "strike": 170.0, "last": 16.95, "bid": 16.85, "ask": 17.1, "open interest": 17685.0, "volume": 551.0, "change": 3.7000008, "percentChange": 27.92, "iv": 0.5391}, {"symbol": "AAPL240517C00172500", "strike": 172.5, "last": 14.31, "bid": 14.35, "ask": 14.55, "open interest": 5117.0, "volume": 236.0, "change": 3.4300003, "percentChange": 31.53, "iv": 0.4961}, {"symbol": "AAPL240517C00175000", "strike": 175.0, "last": 11.95, "bid": 11.95, "ask": 12.0, "open interest": 37064.0, "volume": 2798.0, "change": 3.5500002, "percentChange": 42.01, "iv": 0.4121}, {"symbol": "AAPL240517C00177500", "strike": 177.5, "last": 9.5, "bid": 9.4, "ask": 9.65, "open interest": 15029.0, "volume": 969.0, "change": 3.5, "percentChange": 58.33, "iv": 0.3789}, {"symbol": "AAPL240517C00180000", "strike": 180.0, "last": 7.1, "bid": 7.0, "ask": 7.2, "open interest": 47765.0, "volume": 3281.0, "change": 3.3, "percentChange": 86.84, "iv": 0.3125}, {"symbol": "AAPL240517C00182500", "strike": 182.5, "last": 4.8, "bid": 4.75, "ask": 4.85, "open interest": 18413.0, "volume": 6025.0, "change": 2.7800002, "percentChange": 136.95, "iv": 0.2544}, {"symbol": "AAPL240517C00185000", "strike": 185.0, "last": 2.79, "bid": 2.8, "ask": 2.83, "open interest": 50528.0, "volume": 51483.0, "change": 1.9, "percentChange": 213.48, "iv": 0.2195}, {"symbol": "AAPL240517C00187500", "strike": 187.5, "last": 1.35, "bid": 1.34, "ask": 1.36, "open interest": 21240.0, "volume": 68041.0, "change": 1.0, "percentChange": 285.71, "iv": 0.2017}, {"symbol": "AAPL240517C00190000", "strike": 190.0, "last": 0.54, "bid": 0.54, "ask": 0.54, "open interest": 54857.0, "volume": 51109.0, "change": 0.41000003, "percentChange": 292.86, "iv": 0.1963}, {"symbol": "AAPL240517C00192500", "strike": 192.5, "last": 0.21, "bid": 0.2, "ask": 0.21, "open interest": 5387.0, "volume": 17700.0, "change": 0.14999999, "percentChange": 250.0, "iv": 0.2046}, {"symbol": "AAPL240517C00195000", "strike": 195.0, "last": 0.08, "bid": 0.07, "ask": 0.08, "open interest": 30894.0, "volume": 9318.0, "change": 0.049999997, "percentChange": 166.67, "iv": 0.2158}, {"symbol": "AAPL240517C00197500", "strike": 197.5, "last": 0.04, "bid": 0.03, "ask": 0.04, "open interest": 5029.0, "volume": 6191.0, "change": 0.02, "percentChange": 200.0, "iv": 0.2363}, {"symbol": "AAPL240517C00200000", "strike": 200.0, "last": 0.02, "bid": 0.02, "ask": 0.03, "open interest": 37428.0, "volume": 4480.0, "change": 0.0, "percentChange": 0.0, "iv...
                                                                                                                                                                                                                    
                                                                                                    

Stock and Options - CODE SNIPPETS


curl --location --request GET 'https://zylalabs.com/api/4094/stock+and+options+api/4946/stock+and+options&ticker=Required' --header 'Authorization: Bearer YOUR_API_KEY' 


    

API Access Key & Authentication

After signing up, every developer is assigned a personal API access key, a unique combination of letters and digits provided to access to our API endpoint. To authenticate with the Stock and Options API REST API, simply include your bearer token in the Authorization header.
Headers
Header Description
Authorization [Required] Should be Bearer access_key. See "Your API Access Key" above when you are subscribed.

Simple Transparent Pricing

No long term commitments. One click upgrade/downgrade or cancellation. No questions asked.

πŸš€ Enterprise

Starts at
$ 10,000/Year


  • Custom Volume
  • Specialized Customer Support
  • Real-Time API Monitoring

Customer favorite features

  • βœ”οΈŽ Only Pay for Successful Requests
  • βœ”οΈŽ Free 7-Day Trial
  • βœ”οΈŽ Multi-Language Support
  • βœ”οΈŽ One API Key, All APIs.
  • βœ”οΈŽ Intuitive Dashboard
  • βœ”οΈŽ Comprehensive Error Handling
  • βœ”οΈŽ Developer-Friendly Docs
  • βœ”οΈŽ Postman Integration
  • βœ”οΈŽ Secure HTTPS Connections
  • βœ”οΈŽ Reliable Uptime

To use this API, users must specify a stock quote symbol.

The Stocks and Options API provides access to stock and options data traded on various exchanges. It offers a wide range of functionalities tailored to the needs of investors, traders and financial professionals.

There are different plans suits everyone including a free trial for small amount of requests, but it’s rate is limit to prevent abuse of the service.

Zyla provides a wide range of integration methods for almost all programming languages. You can use these codes to integrate with your project as you need.

You may need to use a Stocks and Options API for a variety of reasons, including market analysis, trading strategy development, risk management and portfolio optimization.

Zyla API Hub is like a big store for APIs, where you can find thousands of them all in one place. We also offer dedicated support and real-time monitoring of all APIs. Once you sign up, you can pick and choose which APIs you want to use. Just remember, each API needs its own subscription. But if you subscribe to multiple ones, you'll use the same key for all of them, making things easier for you.

Prices are listed in USD (United States Dollar), EUR (Euro), CAD (Canadian Dollar), AUD (Australian Dollar), and GBP (British Pound). We accept all major debit and credit cards. Our payment system uses the latest security technology and is powered by Stripe, one of the world’s most reliable payment companies. If you have any trouble paying by card, just contact us at [email protected]

Additionally, if you already have an active subscription in any of these currencies (USD, EUR, CAD, AUD, GBP), that currency will remain for subsequent subscriptions. You can change the currency at any time as long as you don't have any active subscriptions.

The local currency shown on the pricing page is based on the country of your IP address and is provided for reference only. The actual prices are in USD (United States Dollar). When you make a payment, the charge will appear on your card statement in USD, even if you see the equivalent amount in your local currency on our website. This means you cannot pay directly with your local currency.

Occasionally, a bank may decline the charge due to its fraud protection settings. We suggest reaching out to your bank initially to check if they are blocking our charges. Also, you can access the Billing Portal and change the card associated to make the payment. If these does not work and you need further assistance, please contact our team at [email protected]

Prices are determined by a recurring monthly or yearly subscription, depending on the chosen plan.

API calls are deducted from your plan based on successful requests. Each plan comes with a specific number of calls that you can make per month. Only successful calls, indicated by a Status 200 response, will be counted against your total. This ensures that failed or incomplete requests do not impact your monthly quota.

Zyla API Hub works on a recurring monthly subscription system. Your billing cycle will start the day you purchase one of the paid plans, and it will renew the same day of the next month. So be aware to cancel your subscription beforehand if you want to avoid future charges.

To upgrade your current subscription plan, simply go to the pricing page of the API and select the plan you want to upgrade to. The upgrade will be instant, allowing you to immediately enjoy the features of the new plan. Please note that any remaining calls from your previous plan will not be carried over to the new plan, so be aware of this when upgrading. You will be charged the full amount of the new plan.

To check how many API calls you have left for the current month, look at the β€˜X-Zyla-API-Calls-Monthly-Remaining’ header. For example, if your plan allows 1000 requests per month and you've used 100, this header will show 900.

To see the maximum number of API requests your plan allows, check the β€˜X-Zyla-RateLimit-Limit’ header. For instance, if your plan includes 1000 requests per month, this header will display 1000.

The β€˜X-Zyla-RateLimit-Reset’ header shows the number of seconds until your rate limit resets. This tells you when your request count will start fresh. For example, if it displays 3600, it means 3600 seconds are left until the limit resets.

Yes, you can cancel your plan anytime by going to your account and selecting the cancellation option on the Billing page. Please note that upgrades, downgrades, and cancellations take effect immediately. Additionally, upon cancellation, you will no longer have access to the service, even if you have remaining calls left in your quota.

You can contact us through our chat channel to receive immediate assistance. We are always online from 8 am to 5 pm (EST). If you reach us after that time, we will get back to you as soon as possible. Additionally, you can contact us via email at [email protected]

To let you experience our APIs without any commitment, we offer a 7-day free trial that allows you to make API calls at no cost during this period. Please note that you can only use this trial once, so make sure to use it with the API that interests you the most. Most of our APIs provide a free trial, but some may not support it.

After 7 days, you will be charged the full amount for the plan you were subscribed to during the trial. Therefore, it’s important to cancel before the trial period ends. Refund requests for forgetting to cancel on time are not accepted.

When you subscribe to an API trial, you can make only 25% of the calls allowed by that plan. For example, if the API plan offers 1000 calls, you can make only 250 during the trial. To access the full number of calls offered by the plan, you will need to subscribe to the full plan.

 Service Level
100%
 Response Time
337ms

Category:


Related APIs