Skip to content

Commit

Permalink
add support BITGET
Browse files Browse the repository at this point in the history
  • Loading branch information
Dark25 committed Dec 14, 2024
1 parent 5c52a20 commit 470d0f2
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion exchanges.sample.json5
Original file line number Diff line number Diff line change
Expand Up @@ -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
},
}
1 change: 1 addition & 0 deletions packages/exchanges/src/client/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { ExchangeCode } from "@opentrader/types";
export const exchangeCodeMapCCXT: Record<ExchangeCode, keyof typeof ccxt> = {
[ExchangeCode.OKX]: "okx",
[ExchangeCode.BYBIT]: "bybit",
[ExchangeCode.BITGET]: "bitget",
[ExchangeCode.BINANCE]: "binance",
[ExchangeCode.KRAKEN]: "kraken",
[ExchangeCode.COINBASE]: "coinbase",
Expand Down
1 change: 1 addition & 0 deletions packages/exchanges/src/exchanges/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { exchangeCodeMapCCXT } from "../client/constants.js";
export const exchanges: Record<ExchangeCode, ReturnType<typeof createExchange>> = {
[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),
Expand Down
1 change: 1 addition & 0 deletions packages/types/src/common/enums.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit 470d0f2

Please sign in to comment.