Welcome to the API documentation for the DeltaNeutral application. Please note that the demo key provided is restricted and that unrestricted apikeys are available to current customers. To obtain an API key, send an email to support@deltaneutral.com.

Setup

Endpoint: /hello Description: Test if the API is up and running. Example call: https://api.deltaneutral.net/hello

Options API

Endpoint: /eod-options-details/:underlying/:quotedate/:expiration/:maxDate/:format?/:maxRows? Description: Retrieves end-of-day options details for the specified underlying, quote date, and expiration from a database and returns the results as either JSON or CSV. Parameters:
  • underlying (required) – The symbol of the underlying asset.
  • quotedate (required) – The quote date for the options (in the format ‘yyyy-mm-dd’).
  • expiration (required) – The expiration date for the options (in the format ‘yyyy-mm-dd’).
  • maxDate (required) – The maximum date for the options data to be included (in the format ‘yyyy-mm-dd’).
  • :format (optional) – The format to return the data in. Valid options are ‘json’ and ‘csv’.
  • maxRows (optional) – The maximum number of rows to return in the response.
Example call: https://api.deltaneutral.net/eod-options-details/BABA/2023-03-06/2023-11-17/2023-04-15/json/100?apikey=DEMOAPIKEY

Stocks API

Endpoint: /daily-stock-history/:symbol/:format?/:maxRows?/:maxDate Description: Retrieves the daily historical stock data for the specified symbol from a database and returns the results as either JSON or CSV. Parameters:
  • symbol – The stock symbol (e.g., AAPL).
  • format – (Optional) The response format, either “json” or “csv”. Defaults to “json”.
  • maxRows – (Optional) The maximum number of rows to return. Defaults to no limit.
  • maxDate – (Optional) The maximum date for the data. Defaults to the latest available date.
Example call: https://api.deltaneutral.net/daily-stock-history/AAPL/json/100/2023-03-03?apikey=DEMOAPIKEY

Technical Analysis API

Endpoint: /simple-moving-average/:symbol/:maxDate/:interval Description: Retrieves the moving average for the specified symbol and interval from a database and returns the result as a JSON object. Parameters:
  • :symbol (required) – The symbol of the stock.
  • :maxDate (required) – The last date in the series.
  • :interval (required) – The time interval for the moving average in days. Valid options are between 1 and 200′.
  • :apikey (required) – Your API key.
Example call: https://api.deltaneutral.net/simple-moving-average/AAPL/2023-03-01/20?apikey=DEMOAPIKEY

Links to all APIs

Retrieving API data with Python