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
+3 -1
View File
@@ -31,13 +31,15 @@ import type {
Ticker,
CreateOrderParams,
OrderSide,
} from "../types";
import type {
GrvtSignedOrder,
GrvtSignature,
GrvtUnsignedOrder,
GrvtTimeInForce,
GrvtOrderMetadataInput,
GrvtTriggerMetadata,
} from "../types";
} from "./types";
const DEFAULT_ACCOUNT_POLL_INTERVAL_MS = 5000;
const DEFAULT_ORDERS_POLL_INTERVAL_MS = 2500;