Skip to content

redact update - #16

Merged
rsoury merged 9 commits into
masterfrom
feat/fiet-341
Sep 6, 2025
Merged

redact update#16
rsoury merged 9 commits into
masterfrom
feat/fiet-341

Conversation

@xlassix

@xlassix xlassix commented Sep 3, 2025

Copy link
Copy Markdown
Collaborator

No description provided.

Comment thread src/index.ts Outdated
Comment thread src/index.ts Outdated
Comment thread src/index.ts Outdated
Comment thread src/server.ts
try {
// Fetch balance from the specified CEX
const balance = (await broker.fetchFreeBalance({
const balance = await broker.fetchFreeBalance({

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Oddly here, the result of fetchFreeBalance is a Balance struct.
https://github.com/usherlabs/ccxt/blob/cde501ea4d784f2c2b4809c526135719af8ad0e7/js/src/base/Exchange.d.ts#L684

How does this resolve to an array of balances?

Can we add some explaination in comments for this?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

The balance struct is incorrect
Creating a test bench to show you what I mean

@rsoury rsoury Sep 6, 2025

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The referenced Github Issue (ccxt/ccxt#26327) appears to show that FetchBalance can return a mapping.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

approval need to correct this
usherlabs/ccxt#7

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This fix doesn't really solve the root cause of the types issue.

It just moves the any deeper into the tech stack (from CEX Broker to CCXT) — https://github.com/usherlabs/ccxt/pull/7/files#diff-217b1af2b2442a19286fc9dbdd67c6d6e3a71dd5efd78bb489d6fec0e15be25fR7430

As detailed in comment, seems to be reported here: ccxt/ccxt#26327

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

yes, that was corrected in usherlabs/ccxt#7

…ands. ensure redact works per metadata instruction.
@rsoury
rsoury merged commit ed36f25 into master Sep 6, 2025
1 of 2 checks passed
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