Skip to content

feat(v1.5.2): new endpoints, patches per release notes#121

Merged
tiagosiebler merged 2 commits intotiagosiebler:masterfrom
JJ-Cro:update23042026
Apr 28, 2026
Merged

feat(v1.5.2): new endpoints, patches per release notes#121
tiagosiebler merged 2 commits intotiagosiebler:masterfrom
JJ-Cro:update23042026

Conversation

@JJ-Cro
Copy link
Copy Markdown
Contributor

@JJ-Cro JJ-Cro commented Apr 23, 2026


Breaking / notable typing changes

  • getCrossExFeeRate() — returns CrossExFeeRate[]; each item includes required exchange_type.
  • PushOrder.idstring (was number).
  • getFuturesOrdersByTimeRange() — returns FuturesOrderTimerange[] (not FuturesOrder[]).
  • SpotPriceTriggeredOrder.put.time_in_force — now required ('gtc' | 'ioc').
  • Earn (removed)submitEth2Swap, getEth2RateHistory, structured product methods removed; related types removed from earn request/response.
  • Dual investmentgetDualInvestmentProducts / getDualInvestmentOrders use new request interfaces instead of ad-hoc / FromToPageLimit.
  • Futures price-trigger create/amend (and delivery create) — return TriggerOrderResponse (id, id_string) instead of { id: number }.
  • CrossExRiskLimitTierquick_cal_amount is required (constructors/mocks must supply it).
  • UnifiedAccountInfo.mode — required field (from earlier batch; may affect mocks).

v4.106.44 / v4.106.48

  • SpotCurrency: category?: string[].
  • finish_as: poc + JSDoc for IOC vs post-only TIF on spot batch/order and futures order / batch amend.
  • PushOrder.id: string (UidPush withdrawal push).
  • CrossEx: fee rates per exchange; convert order response type; PERIODIC_ISOLATED on margin interest comment.
  • RestClient: getCrossExFeeRate, createCrossExConvertOrder signatures updated.

v4.106.49–v4.106.51

  • FuturesOrderTimerange + getFuturesOrdersByTimeRange.
  • FuturesOrder: order_value?, trade_value? (response-only).
  • getFuturesOrder: JSDoc — path id vs text client id.
  • Earn: ETH2 + structured product endpoints and types removed.

v4.106.52–v4.106.55

  • Futures price-trigger: amount? on create initial and on amend request.
  • Earn auto-invest: new types/request/autoinvest.ts, types/response/autoinvest.ts, exports in index.ts, RestClient methods for all /earn/autoinvest/* routes in scope.
  • Rebate: PartnerDataAggregated / PartnerDataAggregatedResponse, getPartnerAgentDataAggregated.

v4.106.56–v4.106.58

  • WithdrawalRecord: timestamp / DONE wording (no block_number > 0 completion rule).
  • CrossExRiskLimitTier: quick_cal_amount.
  • FuturesContract / FuturesDeliveryContract: contract_type?.
  • GetSubAccountBalancesReq: page?, limit?; getSubBalance uses it.

v4.106.59–v4.106.61

  • Dual earn: refund preview, refund, modify reinvest, project recommend; list plans / list orders query types; models DualOrderRefundPreview, DualProjectRecommend, etc.
  • SubAccountBalance: locking?; getSubBalance return type.
  • TriggerOrderResponse, FuturesPriceTriggeredOrder.id_string?; futures + delivery price-trigger create/amend returns.
  • Rebate list items: JSDoc — commission fields are rebate commission, not generic trade notional.
  • FuturesContract.interest_rate: JSDoc (contracts list/detail).

v4.106.70

  • GetSpotAccountBookReq.type: JSDoc for internal sub-account transfer BizTypes 150215–150219.
  • assetswap-api.yaml / quant-api.yaml: not part of this package — no code changes.

Comment thread src/RestClient.ts
Comment thread src/RestClient.ts Outdated
Comment thread src/RestClient.ts
Comment thread src/RestClient.ts Outdated
Copy link
Copy Markdown
Owner

@tiagosiebler tiagosiebler left a comment

Choose a reason for hiding this comment

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

LGTM, great work!

@tiagosiebler tiagosiebler changed the title feat/v1.5.2): new endpoints, patches per release notes feat(v1.5.2): new endpoints, patches per release notes Apr 28, 2026
@tiagosiebler tiagosiebler merged commit 633587c into tiagosiebler:master Apr 28, 2026
0 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