Repository navigation
docs(api-reference): activity as per-batch entries, orders without fills - #323
Merged
Merged
Conversation
…lls, fill fee on pod_orders_v2 Split out of #318 so the reference for what the node serves since pod#170 can land before the SDK code. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
majesticwizardcat
added a commit
that referenced
this pull request
Oct 22, 2026
The doc/api-reference changes are now #323, so this PR is the SDK code alone. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
majesticwizardcat
added a commit
that referenced
this pull request
Oct 22, 2026
* feat(ts-sdk): activity as per-batch entries, one feed per account
Reads pod#170's wire: GET /clob/activity serves {"<batch>": [{k, …}]}
newest first with a type filter and `next` passed back as `to`, and
pod_activity sends the same map one tick at a time. ActivityEntry rows
keep activityType and timeMs and gain fill, modify, termination and the
stream-only refusals; the order row is the order as /clob/orders serves
it (current state on REST, admission state on the stream), so pre-upgrade
orders read correctly without folding, and live entries update the held
order. One ActivityHistory per account holds the one subscription and
the paging state; views filter it by types and window. Order.fills is
gone, on /clob/orders too: fills are the fill rows and /clob/fills.
drainFlows filters by type again. Version 0.13.0.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
* revert(ts-sdk): Order keeps initialSize as its only size
The node will not serve placed terms for now, so Order drops size and
initialPrice and modify updates initialSize again.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
* docs: the API reference moves to #323
The doc/api-reference changes are now #323, so this PR is the SDK code alone.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
---------
Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
- Order (REST, ob_getOrders) nests fills again: PartialFill restored, ADL price noted, with_fills default empty list - ActivityOrder and the activity route say the order entry carries fills (empty on pod_activity) - REST activity: ActivityFrame example uses tok/amt/err/cp, route lists the 422 for from > to - README: order end is a JSON number; pod_activity example order entry uses the real Order fields Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
majesticwizardcat
marked this pull request as ready for review
October 23, 2026 09:44
sirodoht
approved these changes
Oct 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The API reference for what the node serves since https://code.pod.network/pod/pod/pulls/170 (merged). Docs only, split out of #318 so they can go in ahead of the SDK code.
REST (
doc/api-reference/rest/openapi.yaml,README.md)GET /clob/activity/{account}:activityis anActivityFrame, a map from batch deadline to its entry list, instead of an array tagged byactivity_typewithts.next_cursorbecomesnext, thetofor the older page (nullable digit string);cursoris gone.from/toare inclusive timestamp strings,from > tois a 422;limitcounts entries, default 500, max 2000, pages hold whole batches.activity_typestakes the nine kinds.ActivityEntryas aoneOfonkwithActivityOrder,ActivityFill,ActivityModify,ActivityTermination,ActivityBackstop,ActivityBridgeTransfer,ActivityTransfer,ActivityModifyReject,ActivityCancelReject, with the wire's short names (tok,amt,err,cp,sz,eq).GET /clob/orders/{account}:Order.fillsstays, the nestedPartialFilllist that https://code.pod.network/pod/pod/pulls/203 keeps on every order surface;/clob/fills/{account}and the activityfillentries are the per-fill record with fee and running totals.activityis cacheable onceto≤solution_now; batch keys,nextandendare decimal strings.JSON-RPC (
doc/api-reference/json-rpc/openapi.yaml)pod_activity: each notification is the same single-key map, soActivityFramereplaces{batch, orders, events}andActivityEntryreplacesActivityEvent/ActivityMoneyEvent.pod_orders_v2: the fill event carriesf, this fill's fee, next to the running totaltf.Everything described is served by the node's main plus https://code.pod.network/pod/pod/pulls/203; nothing depends on https://code.pod.network/pod/pod/pulls/177.
🤖 Generated with Claude Code