GET /v1/scanners/p2pstrategy
Endpoints
GET /v1/scanners/p2pstrategy
P2P mechanical strategy: entries and exits for the next trading session
Description
Entries (to open at the start of the next trading session) pass every condition:
- Pos. Trans < GEX+
- Close ≥ Pos. Trans
- Previous Close < Pos. Trans
- Close < GEX+
- GEX+ > GEX− (normal structure)
- min_oi < Total OI < max_oi (defaults 10000 and 100000000)
Exits (to close at the start of the next trading session) pass every condition:
- Close > GEX+
- min_oi < Total OI < max_oi (defaults 10000 and 100000000)
Entries are screened over the GammaEdge P2P scan list; exits over the GammaEdge P2P closing list. With list=liquidity, entries and exits are screened over the GammaEdge liquidity list.
Close is the session's official 16:00 close in the close run and the spot price at the run in an intraday run (test_price_basis). Previous Close is the previous trading day's official 16:00 close. Signals are for the next trading session.
Until 09:30 ET the previous session's results are served; from 09:30, today's session (its intraday runs, then its close run). From 09:30 until today's first run publishes, data_status is awaiting_first_run with next_run_time, and no results are served.
A null value is listed in null_reasons as {ticker, field, reason}. Reasons:
- sentinel_-1: the source reported −1 (no value) for the field.
- source_nan: the source value is missing; a previous close of 0 or below also counts as missing.
- source_inf: the source value is infinite.
- not_applicable: a derived field (a distance, percentage or risk/reward value) is null because one of its inputs is null.
- structure_abnormal: GEX+ is not above GEX−, so Pos. Trans, Neg. Trans and Zero GEX are not served and the row is not an entry.
Input parameters
| Parameter |
In |
Type |
Default |
Nullable |
Description |
| list |
query |
string |
standard |
No |
standard: entries over the GammaEdge P2P scan list, exits over the GammaEdge P2P closing list. liquidity: both over the GammaEdge liquidity list. |
| max_oi |
query |
integer |
100000000 |
No |
Total open interest must be below this (exclusive); above min_oi. |
| min_oi |
query |
integer |
10000 |
No |
Total open interest must be above this (exclusive). Any whole number above 0. |
| run_time |
query |
string |
|
No |
HH:MM ET. Serves the session's scheduled run at or before this time (runs: 16:30 ET every session), falling back to the latest earlier published run; never a later run. Default: the latest scheduled run, or an on-demand run only when its data timestamp is newer. If no scheduled run is published, the latest on-demand run is used. |
Request headers
| Header |
Required |
Description |
X-API-Key |
Required |
Your API key, sent on every request. |
X-Correlation-ID |
Optional |
Request ID for tracing. If omitted, the server assigns one and returns it in the X-Correlation-ID response header. |
Response 200 OK
application/json
{
"status": "completed",
"strategy": "p2p_mechanical",
"data_status": "complete",
"next_run_time": null,
"data_session_date": "2026-10-22",
"for_trading_session": "2026-10-23",
"run_time": "16:30",
"run_type": "scheduled",
"data_file_timestamp": "2026-10-22T16:30:00-04:00",
"available_runs": [
{
"run_time": "16:30",
"run_type": "scheduled",
"status": "published"
}
],
"session_status": "final",
"finalized_at": "2026-10-22T16:41:00-04:00",
"test_price_basis": "close",
"lists": {
"entries": {
"name": "p2p_scan_list",
"last_modified": "2026-10-18T11:47:12-04:00",
"etag": "\"5d41402abc4b2a76b9719d911017c592\""
},
"exits": {
"name": "p2p_closing_list",
"last_modified": "2026-10-18T11:47:12-04:00",
"etag": "\"7d793037a0760186574b0282f2f435e7\""
},
"liquidity": {
"name": "liquidity_list",
"last_modified": "2024-03-07T10:12:40-05:00",
"etag": "\"9e107d9d372bb6826bd81d3542a419d6\""
}
},
"criteria": {
"entries": [
"Pos. Trans < GEX+",
"Close ≥ Pos. Trans",
"Previous Close < Pos. Trans",
"Close < GEX+",
"GEX+ > GEX− (normal structure)",
"min_oi < Total OI < max_oi (here 10000 and 100000000)"
],
"exits": [
"Close > GEX+",
"min_oi < Total OI < max_oi (here 10000 and 100000000)"
],
"universe": "Entries are screened over the GammaEdge P2P scan list; exits over the GammaEdge P2P closing list.",
"price": "Close is the session's official 16:00 close in the close run and the spot price at the run in an intraday run (test_price_basis). Previous Close is the previous trading day's official 16:00 close. Signals are for the next trading session."
},
"entries": [
{
"ticker": "AAPL",
"close": 231.4,
"test_price": 231.4,
"pos_trans": 228.5,
"plus_gex": 240.0,
"neg_trans": 220.0,
"minus_gex": 215.0,
"zero_gex": 225.0,
"pct_to_pos_trans": -1.25,
"pct_to_plus_gex": 3.72,
"pct_to_neg_trans": -4.93,
"pct_to_minus_gex": -7.09,
"pct_to_zero_gex": -2.77,
"dist_above_pos_trans_pct": 1.25,
"dist_to_plus_gex_pct": 3.72,
"total_oi": 1250000.0,
"structure_normal": true,
"scan_count": 1,
"scans": [
"newrhpbulldb"
],
"downside": -1.25,
"upside": 3.72,
"risk_reward": 2.46
}
],
"exits": [
{
"ticker": "DVN",
"close": 36.1,
"test_price": 36.1,
"pos_trans": 34.0,
"plus_gex": 35.5,
"neg_trans": 33.0,
"minus_gex": 32.5,
"zero_gex": 33.5,
"pct_to_pos_trans": -5.82,
"pct_to_plus_gex": -1.66,
"pct_to_neg_trans": -8.59,
"pct_to_minus_gex": -9.97,
"pct_to_zero_gex": -7.2,
"dist_above_pos_trans_pct": 5.82,
"dist_to_plus_gex_pct": -1.66,
"total_oi": 420000.0,
"structure_normal": true
}
],
"null_reasons": [
{
"ticker": "INTC",
"field": "plus_gex",
"reason": "sentinel_-1"
}
],
"coverage": {
"not_computed": [
"JBLU",
"O"
]
}
}
Schema of the response body
{
"properties": {
"status": {
"type": "string",
"title": "Status",
"description": "completed"
},
"strategy": {
"type": "string",
"title": "Strategy",
"description": "p2p_mechanical"
},
"data_status": {
"type": "string",
"title": "Data Status",
"description": "complete: the response carries a run. awaiting_first_run: from 09:30 ET until today's first run publishes; no run, lists or results are served, and next_run_time says when the next run is due"
},
"next_run_time": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Next Run Time",
"description": "The next scheduled run, ET (HH:MM); awaiting_first_run only"
},
"data_session_date": {
"type": "string",
"title": "Data Session Date",
"description": "Session whose data was screened (YYYY-MM-DD)"
},
"for_trading_session": {
"type": "string",
"title": "For Trading Session",
"description": "Session the signals are for (YYYY-MM-DD)"
},
"run_time": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Run Time",
"description": "The run served, ET; null while awaiting the first run"
},
"run_type": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Run Type",
"description": "scheduled or on_demand; null while awaiting the first run"
},
"data_file_timestamp": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Data File Timestamp",
"description": "When the run's data was computed, ISO 8601 ET; null while awaiting the first run"
},
"available_runs": {
"items": {
"$ref": "#/components/schemas/P2PAvailableRunModel"
},
"type": "array",
"title": "Available Runs",
"description": "Every run of that session and its status"
},
"session_status": {
"type": "string",
"title": "Session Status",
"description": "live, provisional, final or premarket"
},
"finalized_at": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Finalized At",
"description": "When the session's close run was published, ISO 8601 ET"
},
"test_price_basis": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Test Price Basis",
"description": "close: the run tests the official 16:00 close; intraday: an intraday run tests the spot price at the run. Null while awaiting the first run"
},
"lists": {
"anyOf": [
{
"$ref": "#/components/schemas/P2PLists"
},
{
"type": "null"
}
],
"description": "The lists the run used; null while awaiting the first run"
},
"criteria": {
"$ref": "#/components/schemas/P2PCriteria"
},
"entries": {
"items": {
"$ref": "#/components/schemas/P2PEntryRow"
},
"type": "array",
"title": "Entries",
"description": "Sorted by scan_count (most first), then ticker; may be empty"
},
"exits": {
"items": {
"$ref": "#/components/schemas/P2PExitRow"
},
"type": "array",
"title": "Exits",
"description": "Sorted by ticker; may be empty"
},
"null_reasons": {
"items": {
"$ref": "#/components/schemas/P2PNullReasonModel"
},
"type": "array",
"title": "Null Reasons"
},
"coverage": {
"$ref": "#/components/schemas/P2PCoverage"
}
},
"type": "object",
"required": [
"status",
"strategy",
"data_status",
"data_session_date",
"for_trading_session",
"available_runs",
"session_status",
"criteria",
"entries",
"exits",
"null_reasons",
"coverage"
],
"title": "P2PStrategyResponse",
"description": "Entries (above the positive transition) and exits (above GEX+) for the next trading session, from one run."
}
| Name |
Description |
Schema |
| X-Correlation-ID |
Request ID for tracing: the value you sent in X-Correlation-ID, or one the server generated. Returned on every response the API produces; some edge errors (e.g. rate limiting) may omit it. |
string |
Schemas
ErrorResponse
| Name |
Type |
Description |
| command_name |
|
Command the request mapped to (e.g. 'centab') |
| error_code |
string |
Consumer-facing 7000000-family error code |
| error_message |
string |
Generic, source-agnostic error message |
| status |
string |
Always 'failed' for an error body |
| target |
|
Offending request field for 7000000 (e.g. 'ticker') |
P2PAvailableRunModel
| Name |
Type |
Description |
| run_time |
string |
Run time, ET (HH:MM; HH:MM:SS for an on-demand run) |
| run_type |
string |
scheduled or on_demand |
| status |
string |
published, scheduled (not yet due or still landing) or failed (deadline passed) |
P2PCoverage
| Name |
Type |
Description |
| not_computed |
Array<string> |
List symbols the run did not compute |
P2PCriteria
| Name |
Type |
Description |
| entries |
Array<string> |
Every entry condition, in plain language |
| exits |
Array<string> |
Every exit condition, in plain language |
| price |
string |
What the price in the conditions is |
| universe |
string |
The lists entries and exits are screened over |
P2PEntryRow
| Name |
Type |
Description |
| close |
number |
The run's price: the official 16:00 close in the close run, the spot price in an intraday run |
| dist_above_pos_trans_pct |
|
100 × (close − positive transition) / close. Currently equal to −pct_to_pos_trans. |
| dist_to_plus_gex_pct |
|
100 × (GEX+ − close) / close; negative when the close is above GEX+. Currently equal to pct_to_plus_gex. |
| downside |
|
100 × (positive transition − close) / close |
| minus_gex |
|
GEX− |
| neg_trans |
|
Negative transition; null when the structure is abnormal |
| pct_to_minus_gex |
|
100 × (level − close) / close; positive when the level is above the close. Null when the level is null. |
| pct_to_neg_trans |
|
100 × (level − close) / close; positive when the level is above the close. Null when the level is null. |
| pct_to_plus_gex |
|
100 × (level − close) / close; positive when the level is above the close. Null when the level is null. |
| pct_to_pos_trans |
|
100 × (level − close) / close; positive when the level is above the close. Null when the level is null. |
| pct_to_zero_gex |
|
100 × (level − close) / close; positive when the level is above the close. Null when the level is null. |
| plus_gex |
|
GEX+ |
| pos_trans |
|
Positive transition; null when the structure is abnormal |
| risk_reward |
|
upside + downside: the sum of the two percentages, not a ratio. |
| scan_count |
integer |
How many confluence scans also select this ticker |
| scans |
Array<string> |
The confluence scans that select it |
| structure_normal |
boolean |
True when GEX+ is above GEX− |
| test_price |
number |
The price the conditions tested (test_price_basis); equals close |
| ticker |
string |
|
| total_oi |
|
Total open interest the min_oi/max_oi bounds are applied to |
| upside |
|
100 × (GEX+ − close) / close |
| zero_gex |
|
Zero GEX; null when the structure is abnormal |
P2PExitRow
| Name |
Type |
Description |
| close |
number |
The run's price: the official 16:00 close in the close run, the spot price in an intraday run |
| dist_above_pos_trans_pct |
|
100 × (close − positive transition) / close. Currently equal to −pct_to_pos_trans. |
| dist_to_plus_gex_pct |
|
100 × (GEX+ − close) / close; negative when the close is above GEX+. Currently equal to pct_to_plus_gex. |
| minus_gex |
|
GEX− |
| neg_trans |
|
Negative transition; null when the structure is abnormal |
| pct_to_minus_gex |
|
100 × (level − close) / close; positive when the level is above the close. Null when the level is null. |
| pct_to_neg_trans |
|
100 × (level − close) / close; positive when the level is above the close. Null when the level is null. |
| pct_to_plus_gex |
|
100 × (level − close) / close; positive when the level is above the close. Null when the level is null. |
| pct_to_pos_trans |
|
100 × (level − close) / close; positive when the level is above the close. Null when the level is null. |
| pct_to_zero_gex |
|
100 × (level − close) / close; positive when the level is above the close. Null when the level is null. |
| plus_gex |
|
GEX+ |
| pos_trans |
|
Positive transition; null when the structure is abnormal |
| structure_normal |
boolean |
True when GEX+ is above GEX− |
| test_price |
number |
The price the conditions tested (test_price_basis); equals close |
| ticker |
string |
|
| total_oi |
|
Total open interest the min_oi/max_oi bounds are applied to |
| zero_gex |
|
Zero GEX; null when the structure is abnormal |
P2PListRef
| Name |
Type |
Description |
| etag |
|
Content fingerprint; equal values mean an identical list |
| last_modified |
|
When the list was last changed, ISO 8601 ET |
| name |
string |
Which list: p2p_scan_list, p2p_closing_list or liquidity_list |
P2PLists
P2PNullReasonModel
| Name |
Type |
Description |
| field |
string |
|
| reason |
string |
sentinel_-1 / source_nan / source_inf: the source value was missing; not_applicable: a computed value whose input is null; structure_abnormal: nulled because GEX+ is not above GEX− |
| ticker |
string |
|
P2PStrategyResponse
| Name |
Type |
Description |
| available_runs |
Array<P2PAvailableRunModel> |
Every run of that session and its status |
| coverage |
P2PCoverage |
|
| criteria |
P2PCriteria |
|
| data_file_timestamp |
|
When the run's data was computed, ISO 8601 ET; null while awaiting the first run |
| data_session_date |
string |
Session whose data was screened (YYYY-MM-DD) |
| data_status |
string |
complete: the response carries a run. awaiting_first_run: from 09:30 ET until today's first run publishes; no run, lists or results are served, and next_run_time says when the next run is due |
| entries |
Array<P2PEntryRow> |
Sorted by scan_count (most first), then ticker; may be empty |
| exits |
Array<P2PExitRow> |
Sorted by ticker; may be empty |
| finalized_at |
|
When the session's close run was published, ISO 8601 ET |
| for_trading_session |
string |
Session the signals are for (YYYY-MM-DD) |
| lists |
|
The lists the run used; null while awaiting the first run |
| next_run_time |
|
The next scheduled run, ET (HH:MM); awaiting_first_run only |
| null_reasons |
Array<P2PNullReasonModel> |
|
| run_time |
|
The run served, ET; null while awaiting the first run |
| run_type |
|
scheduled or on_demand; null while awaiting the first run |
| session_status |
string |
live, provisional, final or premarket |
| status |
string |
completed |
| strategy |
string |
p2p_mechanical |
| test_price_basis |
|
close: the run tests the official 16:00 close; intraday: an intraday run tests the spot price at the run. Null while awaiting the first run |
Errors
| HTTP |
Meaning |
Body |
400 |
That ticker symbol doesn't look valid. Please check it and try again. |
ErrorResponse |
401 |
Your API key is missing or invalid. Please check the X-API-Key header. |
ErrorResponse |
403 |
This data isn't included in your current plan. |
ErrorResponse |
404 |
We don't have data for that ticker. Double-check the symbol. |
ErrorResponse |
422 |
We couldn't prepare this data right now. Please try again shortly. |
ErrorResponse |
500 |
Something went wrong on our end. Try again, or contact support if it persists. |
ErrorResponse |
502 |
We can't reach the market data right now. Please try again shortly. |
ErrorResponse |
503 |
The service is briefly unavailable. Please try again in a moment. |
ErrorResponse |
504 |
This request took too long. Please try again. |
ErrorResponse |
Request example
Replace any YOUR_... query values before sending.
curl --request GET "https://api.gammaedge.us/v1/scanners/p2pstrategy" \
--header "X-API-Key: $GAMMAEDGE_API_KEY"
See error handling and rate limits for retry guidance.