Skip to content
This repository has been archived by the owner on Sep 9, 2023. It is now read-only.

Commit

Permalink
okex: rename client to proper casing
Browse files Browse the repository at this point in the history
  • Loading branch information
bmancini55 committed Jun 21, 2021
1 parent e77c847 commit 61d2789
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { testClient } from "../TestRunner";
import { OKExClient } from "../../src/exchanges/OKExClient";
import { OkexClient } from "../../src/exchanges/OkexClient";
import { get } from "../../src/Https";

const assertions = {
Expand Down Expand Up @@ -50,7 +50,7 @@ const assertions = {
};

testClient({
clientFactory: () => new OKExClient(),
clientFactory: () => new OkexClient(),
exchangeName: "OKEx",
clientName: "OKExClient - Spot",
markets: [
Expand All @@ -75,7 +75,7 @@ testClient({
});

testClient({
clientFactory: () => new OKExClient(),
clientFactory: () => new OkexClient(),
exchangeName: "OKEx",
clientName: "OKExClient - Futures",
fetchMarkets: async () => {
Expand All @@ -93,7 +93,7 @@ testClient({
});

testClient({
clientFactory: () => new OKExClient(),
clientFactory: () => new OkexClient(),
exchangeName: "OKEx",
clientName: "OKExClient - Swap",
fetchMarkets: async () => {
Expand All @@ -111,7 +111,7 @@ testClient({
});

testClient({
clientFactory: () => new OKExClient(),
clientFactory: () => new OkexClient(),
exchangeName: "OKEx",
clientName: "OKExClient - Options",
fetchMarkets: async () => {
Expand Down
6 changes: 3 additions & 3 deletions src/exchanges/OKExClient.ts → src/exchanges/OkexClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import * as zlib from "../ZlibUtils";

const pongBuffer = Buffer.from("pong");

export type OKExClientOptions = ClientOptions & {
export type OkexClientOptions = ClientOptions & {
sendThrottleMs?: number;
};

Expand All @@ -45,7 +45,7 @@ export type OKExClientOptions = ClientOptions & {
*
* Refer to: https://www.okex.com/docs/en/#spot_ws-checksum
*/
export class OKExClient extends BasicClient {
export class OkexClient extends BasicClient {
public candlePeriod: CandlePeriod;

protected _sendMessage: CancelableFn;
Expand All @@ -55,7 +55,7 @@ export class OKExClient extends BasicClient {
wssPath = "wss:https://real.okex.com:8443/ws/v3",
watcherMs,
sendThrottleMs = 20,
}: OKExClientOptions = {}) {
}: OkexClientOptions = {}) {
super(wssPath, "OKEx", undefined, watcherMs);
this.candlePeriod = CandlePeriod._1m;
this.hasTickers = true;
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export { KucoinClient, KucoinClient as Kucoin } from "./exchanges/KucoinClient";
export { KrakenClient, KrakenClient as Kraken } from "./exchanges/KrakenClient";
export { LedgerXClient, LedgerXClient as LedgerX } from "./exchanges/LedgerXClient";
export { LiquidClient, LiquidClient as Liquid } from "./exchanges/LiquidClient";
export { OKExClient, OKExClient as OKEx } from "./exchanges/OKExClient";
export { OkexClient as OkexClient, OkexClient as OKEx } from "./exchanges/OkexClient";
export { PoloniexClient, PoloniexClient as Poloniex } from "./exchanges/PoloniexClient";
export { UpbitClient, UpbitClient as Upbit } from "./exchanges/UpbitClient";
export { ZbClient, ZbClient as Zb } from "./exchanges/ZbClient";

0 comments on commit 61d2789

Please sign in to comment.