diff --git a/exchanges.sample.json5 b/exchanges.sample.json5 index 46329fb3..8dd8d43a 100644 --- a/exchanges.sample.json5 +++ b/exchanges.sample.json5 @@ -4,6 +4,6 @@ apiKey: "exchange_api_key", secretKey: "exchange_secret_key", password: "exchange_password", - exchangeCode: "OKX", // OKX | BYBIT | BINANCE | KRAKEN | COINBASE | GATEIO + exchangeCode: "OKX", // OKX | BYBIT | BITGET | BINANCE | KRAKEN | COINBASE | GATEIO }, } diff --git a/packages/exchanges/src/client/constants.ts b/packages/exchanges/src/client/constants.ts index 969706ff..5b9b1a51 100644 --- a/packages/exchanges/src/client/constants.ts +++ b/packages/exchanges/src/client/constants.ts @@ -7,6 +7,7 @@ import { ExchangeCode } from "@opentrader/types"; export const exchangeCodeMapCCXT: Record = { [ExchangeCode.OKX]: "okx", [ExchangeCode.BYBIT]: "bybit", + [ExchangeCode.BITGET]: "bitget", [ExchangeCode.BINANCE]: "binance", [ExchangeCode.KRAKEN]: "kraken", [ExchangeCode.COINBASE]: "coinbase", diff --git a/packages/exchanges/src/exchanges/index.ts b/packages/exchanges/src/exchanges/index.ts index 247a0556..ab526b8d 100644 --- a/packages/exchanges/src/exchanges/index.ts +++ b/packages/exchanges/src/exchanges/index.ts @@ -5,6 +5,7 @@ import { exchangeCodeMapCCXT } from "../client/constants.js"; export const exchanges: Record> = { [ExchangeCode.OKX]: createExchange(ExchangeCode.OKX), [ExchangeCode.BYBIT]: createExchange(ExchangeCode.BYBIT), + [ExchangeCode.BITGET]: createExchange(ExchangeCode.BITGET), [ExchangeCode.BINANCE]: createExchange(ExchangeCode.BINANCE), [ExchangeCode.KRAKEN]: createExchange(ExchangeCode.KRAKEN), [ExchangeCode.COINBASE]: createExchange(ExchangeCode.COINBASE), diff --git a/packages/types/src/common/enums.ts b/packages/types/src/common/enums.ts index 32a34c4e..40734f8f 100644 --- a/packages/types/src/common/enums.ts +++ b/packages/types/src/common/enums.ts @@ -19,6 +19,7 @@ export const ExchangeCode = { KRAKEN: "KRAKEN", COINBASE: "COINBASE", GATEIO: "GATEIO", + BITGET: "BITGET", } as const; export type ExchangeCode = (typeof ExchangeCode)[keyof typeof ExchangeCode];