Skip to content

Commit

Permalink
Merge pull request #83 from Dark25/dev
Browse files Browse the repository at this point in the history
Added Support BITGET
  • Loading branch information
bludnic authored Dec 14, 2024
2 parents 4c8c37c + 470d0f2 commit ba3759c
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 ba3759c

Please sign in to comment.