Skip to content

Feat: nexchange plugin#214

Open
j0ntz wants to merge 1 commit into
masterfrom
jon/nexchange-plugin
Open

Feat: nexchange plugin#214
j0ntz wants to merge 1 commit into
masterfrom
jon/nexchange-plugin

Conversation

@j0ntz
Copy link
Copy Markdown

@j0ntz j0ntz commented Apr 17, 2026

CHANGELOG

Does this branch warrant an entry to the CHANGELOG?

  • Yes
  • No

Dependencies

Api Key should be shared privately.

Description

Recreated from #212 by external contributor @MMrj9 so that Bugbot (which skips external authors) can run. Git author attribution on the cherry-picked commit is preserved for Miguel Morujão. Original PR should be closed once this one merges.

Original description follows:

  • Added new nexchange partner plugin at src/partners/nexchange.ts.
  • Integrated the plugin into the query engine in src/queryEngine.ts.
  • Implemented Edge audit orders API ingestion (/audits/edge/orders) with support for:
    • API key auth via x-api-key
    • Legacy Authorization: ApiKey <key> auth header
    • Cursor pagination with offset fallback
    • dateFrom incremental sync using persisted latestIsoDate and lookback
  • Added tests in test/nexchange.test.ts for transaction mapping and auth header behavior.

https://app.asana.com/1/9976422036640/project/1200382638405084/task/1213650284151456?focus=true


Note

Medium Risk
Introduces a new external API ingestion path and enables it in the query engine, which could affect sync completeness/duplication and error handling behavior for that partner. Core engine changes are limited to registration, but the new pagination/date logic needs verification against real API responses.

Overview
Adds a new Nexchange partner integration that fetches /audits/edge/orders, supports x-api-key and/or legacy Authorization auth headers, paginates via cursor with offset fallback, and performs incremental sync using a persisted latestIsoDate with a 5-day lookback.

Registers nexchange in src/queryEngine.ts so it runs alongside existing partners, and adds test/nexchange.test.ts to validate StandardTx mapping (status/date/amount normalization) and header construction.

Reviewed by Cursor Bugbot for commit 5591c9e. Bugbot is set up for automated code reviews on this repo. Configure here.

Copy link
Copy Markdown

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 59abfa0. Configure here.

Comment thread src/partners/nexchange.ts
@j0ntz j0ntz force-pushed the jon/nexchange-plugin branch from d9a599c to 361b2a6 Compare April 18, 2026 00:09
@j0ntz j0ntz force-pushed the jon/nexchange-plugin branch from 361b2a6 to 5591c9e Compare April 18, 2026 00:10
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