Model Details

Mandatory Time Periods

1 - 501

Optional Time Periods

502 - 5,000

Request Header

Authorization
string
required

The authorization token for API requests. This should be a valid Bearer token.

Parameter Fields

ticker
string
required
interval
string
required
historical_data_from
string
required
date_to_forecast
string
required
Combine different time intervals to discover potential trading opportunities and find optimal entry points.

Historical Data Availability

TimeframeData Range
1 minuteLast 120 days
5 minutesLast 600 days
1 hourSince October 1, 2020
DailySince January 1, 1990
WeeklySince January 1, 1990

Response Fields

datetime
string

Trade opportunity timestamp

trade_identified
string

Example - API Request

# Import necessary libraries

import requests  
import json  

# Define base URL and access token for the API
BASE_URL = ""  
ACCESS_TOKEN = ""  

# Query parameters for the API request
params = {
    "ticker": "MSFT",
    "interval": "5m",
    "historical_data_from": "2020-08-03 13:30:00",
    "date_to_forecast": "2024-08-04 19:00:00"
}

# Headers for the API request
headers = {
    "Authorization": f"Bearer {ACCESS_TOKEN}"
}

# API endpoint
api_url = f"{BASE_URL}/genesis/trade-identifier-df"

# Make a GET request to the API and parse the JSON response
result = requests.get(api_url).json()

Example - API Response

{
"2024-08-21 15:05:00": {
      "trade_identified": "Long"
    },
"2024-08-30 19:00:00": {
      "trade_identified": "Short"
    }
}