Skip to content

feat: added afp latest update and timeseries#564

Open
Jack-Burge55 wants to merge 1 commit into
masterfrom
rnd-21261
Open

feat: added afp latest update and timeseries#564
Jack-Burge55 wants to merge 1 commit into
masterfrom
rnd-21261

Conversation

@Jack-Burge55
Copy link
Copy Markdown

RELATED TICKETS

  • jira links here

! Do not post related PRs here, unless they are open source !

CHANGELOG

  • describe code changes

TESTS

  • describe your test strategy

COMMENTS

  • any other business

Copilot AI review requested due to automatic review settings May 20, 2026 14:04
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds initial support for the Anywhere Freight Pricing (AFP) module to the SDK, wiring new API paths, endpoint classes, documentation pages, and live tests.

Changes:

  • Added AFP endpoint constants and exported two new SDK endpoints: latest update timestamp + price timeseries (with a dedicated result container).
  • Extended docs generation/navigation for AFP and introduced a small CSS tweak to prevent long headings overflowing.
  • Added live API tests for the new AFP endpoints (plus scaffold modules for additional AFP endpoints).

Reviewed changes

Copilot reviewed 19 out of 19 changed files in this pull request and generated 11 comments.

Show a summary per file
File Description
vortexasdk/endpoints/endpoints.py Adds AFP endpoint path constants.
vortexasdk/endpoints/anywhere_freight_pricing_latest_update_timestamp.py New AFP “latest update timestamp” endpoint implementation (GET).
vortexasdk/endpoints/anywhere_freight_pricing_price_timeseries.py New AFP “price timeseries” endpoint implementation (POST search).
vortexasdk/endpoints/anywhere_freight_pricing_price_timeseries_result.py Result wrapper + to_df() flattening for AFP timeseries response.
vortexasdk/endpoints/anywhere_freight_pricing_get_price_details.py Scaffold (currently empty) AFP endpoint module.
vortexasdk/endpoints/anywhere_freight_pricing_post_price_details.py Scaffold (currently empty) AFP endpoint module.
vortexasdk/endpoints/anywhere_freight_pricing_top_ports_origin.py Scaffold (currently empty) AFP endpoint module.
vortexasdk/endpoints/anywhere_freight_pricing_top_ports_destination.py Scaffold (currently empty) AFP endpoint module.
vortexasdk/endpoints/anywhere_freight_pricing_vessel_classes_details.py Scaffold (currently empty) AFP endpoint module.
vortexasdk/endpoints/__init__.py Exports the two implemented AFP endpoints.
vortexasdk/__init__.py Re-exports the two implemented AFP endpoints at package root.
tests/endpoints/test_anywhere_freight_pricing_price_timeseries.py Live API test coverage for AFP price timeseries + to_df().
tests/endpoints/test_anywhere_freight_pricing_latest_update_timestamp.py Live API test for AFP latest update timestamp.
pydocmd.yml Adds AFP docs generation entries.
mkdocs.yml Adds AFP docs navigation and references new extra_css.
docs/scripts/serve_docs.sh Copies docs CSS into build dir for local serving.
docs/css/custom.css New CSS to wrap long headings.
README.md Small text change (currently introduces a typo).
CONTRIBUTING.md Updates “run tests” instructions to use pytest.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread README.md
setup cost.

The SDK sits as a thin python wrapper around
The SDK!! sits as a thin python wrapper around
Comment thread mkdocs.yml
Comment on lines +88 to +89
extra_css:
- css/custom.css
Comment on lines 6 to 9
mkdir -p ./_build/pydocmd/examples
mkdir -p ./_build/pydocmd/css
cp -r docs/css/* ./_build/pydocmd/css/
python docs/autogen.py
@@ -0,0 +1,7 @@
from tests.testcases import TestCaseUsingRealAPI
from vortexasdk import AnywhereFreightPricingLatestUpdateTimestamp

Comment on lines +56 to +61
if not response.ok:
logger.error(response.reason)
raise ValueError(
f"[{response.status_code} {response.reason}] "
f"Failed to fetch latest update timestamp"
)
class AnywhereFreightPricingGetPriceDetails:
"""Anywhere Freight Pricing Get Price Details endpoint."""

pass
class AnywhereFreightPricingPostPriceDetails:
"""Anywhere Freight Pricing Post Price Details endpoint."""

pass
class AnywhereFreightPricingTopPortsOrigin:
"""Anywhere Freight Pricing Top Ports Origin endpoint."""

pass
class AnywhereFreightPricingTopPortsDestination:
"""Anywhere Freight Pricing Top Ports Destination endpoint."""

pass
class AnywhereFreightPricingVesselClassesDetails:
"""Anywhere Freight Pricing Vessel Classes Details endpoint."""

pass
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants