Skip to content

feat: sync SDK with Espresso API updates#47

Merged
HinsonSIDAN merged 4 commits intomainfrom
SDK-sync
Jan 11, 2026
Merged

feat: sync SDK with Espresso API updates#47
HinsonSIDAN merged 4 commits intomainfrom
SDK-sync

Conversation

@yyy-tom
Copy link
Contributor

@yyy-tom yyy-tom commented Jan 5, 2026

BREAKING CHANGES:

  • cancelAllOrders() now requires symbol parameter
  • Place order request: quantity (number) → base_quantity/quote_quantity (string)
  • Place order request: price changed from number to string
  • getAggregatedPrice: pair → symbol parameter
  • Deposit/withdrawal records now return paginated response

API endpoint updates:

  • Order build/submit: /order/ → /orders/
  • Cancel order: DELETE build+submit → POST /order/{id}/cancel
  • Cancel all: DELETE build+submit → POST /order/cancel-all
  • Get order by ID: /accounts/order/{id} → /account/order?id={id}
  • Aggregated price: /market/graph/{pair} → /market/aggregate/{symbol}

New endpoints added:

  • GET/POST/PUT /accounts/spot-account
  • GET /accounts/max-deposit
  • GET /accounts/open-orders
  • GET /accounts/trade-orders
  • GET /accounts/trades

Deprecated methods (kept for backwards compatibility):

  • buildCancelOrderTransaction, submitCancelOrderTransaction
  • buildCancelAllOrdersTransaction, submitCancelAllOrdersTransaction
  • getOrderRecords, getOrderRecord

yyy-tom and others added 4 commits January 5, 2026 15:20
 BREAKING CHANGES:
   - cancelAllOrders() now requires symbol parameter
   - Place order request: quantity (number) → base_quantity/quote_quantity (string)
   - Place order request: price changed from number to string
   - getAggregatedPrice: pair → symbol parameter
   - Deposit/withdrawal records now return paginated response

   API endpoint updates:
   - Order build/submit: /order/ → /orders/
   - Cancel order: DELETE build+submit → POST /order/{id}/cancel
   - Cancel all: DELETE build+submit → POST /order/cancel-all
   - Get order by ID: /accounts/order/{id} → /account/order?id={id}
   - Aggregated price: /market/graph/{pair} → /market/aggregate/{symbol}

   New endpoints added:
   - GET/POST/PUT /accounts/spot-account
   - GET /accounts/max-deposit
   - GET /accounts/open-orders
   - GET /accounts/trade-orders
   - GET /accounts/trades

   Deprecated methods (kept for backwards compatibility):
   - buildCancelOrderTransaction, submitCancelOrderTransaction
   - buildCancelAllOrdersTransaction, submitCancelAllOrdersTransaction
   - getOrderRecords, getOrderRecord
Aligns TypeScript SDK with Rust SDK schema fix for order status.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@HinsonSIDAN HinsonSIDAN merged commit e60e28e into main Jan 11, 2026
4 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