Skip to content

Commit 644fa15

Browse files
committed
fixed article
1 parent 69226f5 commit 644fa15

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

Article.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,7 @@ async with httpx.AsyncClient(
251251
) as client:
252252
# --- Authentication (must complete before any data requests) ---
253253
try:
254+
AUTH_TOKEN_URL = "/auth/oauth2/v1/token"
254255
token_data = await post_authentication_async(machine_id, password, app_key, AUTH_TOKEN_URL, client)
255256
print("Authentication successful. Access token obtained.")
256257

@@ -315,6 +316,7 @@ with httpx.Client(
315316
) as client:
316317
try:
317318
# Authenticate and get the access token.
319+
AUTH_TOKEN_URL = "/auth/oauth2/v1/token"
318320
auth_response = post_authentication(machine_id, password, app_key, AUTH_TOKEN_URL, client)
319321
access_token = auth_response["access_token"]
320322
print("Authentication successful! Access token obtained.\n")
@@ -441,6 +443,7 @@ async with httpx.AsyncClient(
441443
fields = ["TRDPRC_1", "BID", "ASK"]
442444
start_date = "2025-11-01T00:00:00Z"
443445
end_date = "2026-02-28T23:59:59Z"
446+
HISTORICAL_INTERDAY_SUMMARIES_URL = "/data/historical-pricing/v1/views/interday-summaries/"
444447

445448
# Build one coroutine per RIC; the semaphore inside each call
446449
# ensures at most max_concurrent_tasks run at the same time.
@@ -607,6 +610,8 @@ with httpx.Client(
607610
display(Markdown("**Start the wall-clock timer...**"))
608611
start_time = time.perf_counter()
609612

613+
HISTORICAL_INTERDAY_SUMMARIES_URL = "/data/historical-pricing/v1/views/interday-summaries/"
614+
610615
for ric in HISTORICAL_RICS:
611616
history_data = get_historical_interday_summaries(
612617
ric, access_token, HISTORICAL_INTERDAY_SUMMARIES_URL, client, interval="P1D", start=start_date, end=end_date, fields=fields

0 commit comments

Comments
 (0)