Skip to content

Lighter & Binance trade support with keep window - #187

Merged
hacheigriega merged 2 commits into
mainfrom
feat/lighter-trades
Oct 13, 2026
Merged

hacheigriega merged 2 commits into
mainfrom
feat/lighter-trades

Conversation

@hacheigriega

@hacheigriega hacheigriega commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

Motivation

Monaco OP may assess the health of a market by checking the number of recent trades.

Explanation of Changes

Note Lighter’s trade objects include a lot of miscellaneous fields we probably won’t need. Also, Lighter returns separate arrays for trades and liquidation_trades. While liquidation_trades is rarely used, the doc is not clear about whether it contains objects that are distinct from the objects in trades. I noticed in one occasion the two arrays contained duplicate lists of trades, but in all other observations, they contained distinct sets of trade objects.

To honor the principle of the proxy being true to its name, I left the proxy to return the arrays and their objects’ fields as they are.

The Binance module follows the same pattern to support trades data as well.

Testing

Related PRs and Issues

Related: #183

@hacheigriega hacheigriega changed the title Lighter & Binance trades type support with keep window Lighter & Binance trade type support with keep window Oct 8, 2026
@hacheigriega hacheigriega changed the title Lighter & Binance trade type support with keep window Lighter & Binance trade support with keep window Oct 8, 2026
@hacheigriega
hacheigriega marked this pull request as ready for review October 8, 2026 18:36
@hacheigriega
hacheigriega merged commit bc24d7b into main Oct 13, 2026
2 checks passed
@hacheigriega
hacheigriega deleted the feat/lighter-trades branch October 13, 2026 21:37
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