Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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