refactor: split types.ts into per-exchange type modules

- Extract GRVT-specific types to grvt/types.ts
- Extract Aster-spot/futures types to aster/types.ts
- types.ts now contains only universal/platform-agnostic types
- Reduced from 632 to ~135 lines
This commit is contained in:
discountry
2026-04-06 18:16:25 +08:00
parent fda6bcad1d
commit fb906be27c
5 changed files with 461 additions and 458 deletions
+6 -4
View File
@@ -6,6 +6,11 @@ import type {
Depth,
Kline,
Order,
Ticker,
CreateOrderParams,
PositionSide,
} from "../types";
import type {
AsterSpotAccount,
AsterSpotAggTrade,
AsterSpotBookTicker,
@@ -18,18 +23,15 @@ import type {
AsterSpotTicker24h,
AsterSpotTrade,
AsterSpotUserTrade,
Ticker,
AsterFuturesExchangeInfo,
AsterFuturesSymbolInfo,
CancelSpotOrderParams,
CreateOrderParams,
CreateSpotOrderParams,
PositionSide,
QuerySpotOrderParams,
SpotAllOrdersParams,
SpotOpenOrdersParams,
SpotUserTradesParams,
} from "../types";
} from "./types";
import { decimalsOf } from "../../utils/math";
process.env.NODE_TLS_REJECT_UNAUTHORIZED = "0";