Skip to content

Commit

Permalink
bump version and fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
itxtoledo committed Apr 1, 2022
1 parent 0372986 commit 8c2f659
Show file tree
Hide file tree
Showing 46 changed files with 98 additions and 114 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@coinsamba/js-exchanges-connector",
"description": "Collection of JavaScript implementations of cryptocurrency exchange APIs",
"version": "1.0.4",
"version": "1.0.5",
"repository": "[email protected]:coinsambacom/js-exchanges-connector.git",
"author": "Gustavo <[email protected]>",
"license": "MIT",
Expand Down
4 changes: 2 additions & 2 deletions src/connectors/alterbank.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {
Exchange,
IExchangeImplementationConstructorArgs,
} from "../interfaces/exchange";
import { IOrderbook, ITicker, IExchangeBase } from "../types/common";
import { IOrderbook, ITicker } from "../types/common";
import { ConnectorError, ERROR_TYPES } from "../utils/ConnectorError";

interface IAlterbankTickerRes {
Expand All @@ -12,7 +12,7 @@ interface IAlterbankTickerRes {
volume: string;
}

export class alterbank<T> extends Exchange<T> implements IExchangeBase {
export class alterbank<T> extends Exchange<T> {
constructor(args?: IExchangeImplementationConstructorArgs<T>) {
super({
id: "alterbank",
Expand Down
4 changes: 2 additions & 2 deletions src/connectors/bipa.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {
Exchange,
IExchangeImplementationConstructorArgs,
} from "../interfaces/exchange";
import { IOrderbook, ITicker, IExchangeBase } from "../types/common";
import { IOrderbook, ITicker } from "../types/common";

interface IBipaTickerRes {
data: {
Expand All @@ -11,7 +11,7 @@ interface IBipaTickerRes {
};
}

export class bipa<T> extends Exchange<T> implements IExchangeBase {
export class bipa<T> extends Exchange<T> {
constructor(args?: IExchangeImplementationConstructorArgs<T>) {
super({
id: "bipa",
Expand Down
9 changes: 2 additions & 7 deletions src/connectors/biscoint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,7 @@ import {
Exchange,
IExchangeImplementationConstructorArgs,
} from "../interfaces/exchange";
import {
IExchangeBase,
IOrderbook,
IOrderbookOrder,
ITicker,
} from "../types/common";
import { IOrderbook, IOrderbookOrder, ITicker } from "../types/common";
import { ConnectorError, ERROR_TYPES } from "../utils/ConnectorError";

interface IBiscointTickerRes {
Expand All @@ -20,7 +15,7 @@ interface IBiscointTickerRes {
};
}

export class biscoint<T> extends Exchange<T> implements IExchangeBase {
export class biscoint<T> extends Exchange<T> {
constructor(args?: IExchangeImplementationConstructorArgs<T>) {
super({
id: "biscoint",
Expand Down
4 changes: 2 additions & 2 deletions src/connectors/bitbay.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import {
Exchange,
IExchangeImplementationConstructorArgs,
} from "../interfaces/exchange";
import { IOrderbook, ITicker, IExchangeBase } from "../types/common";
import { IOrderbook, ITicker } from "../types/common";

export class bitbay<T> extends Exchange<T> implements IExchangeBase {
export class bitbay<T> extends Exchange<T> {
constructor(args?: IExchangeImplementationConstructorArgs<T>) {
super({
id: "bitbay",
Expand Down
4 changes: 2 additions & 2 deletions src/connectors/bitblue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {
Exchange,
IExchangeImplementationConstructorArgs,
} from "../interfaces/exchange";
import { IOrderbook, ITicker, IExchangeBase } from "../types/common";
import { IOrderbook, ITicker } from "../types/common";

interface IBitblueTickerRes {
stats: {
Expand All @@ -25,7 +25,7 @@ interface IBitblueOrderbookRes {
};
}

export class bitblue<T> extends Exchange<T> implements IExchangeBase {
export class bitblue<T> extends Exchange<T> {
constructor(args?: IExchangeImplementationConstructorArgs<T>) {
super({
id: "bitblue",
Expand Down
4 changes: 2 additions & 2 deletions src/connectors/bitcointoyou.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import {
Exchange,
IExchangeImplementationConstructorArgs,
} from "../interfaces/exchange";
import { IExchangeBase, ITicker } from "../types/common";
import { ITicker } from "../types/common";

export class bitcointoyou<T> extends Exchange<T> implements IExchangeBase {
export class bitcointoyou<T> extends Exchange<T> {
constructor(args?: IExchangeImplementationConstructorArgs<T>) {
super({
id: "bitcointoyou",
Expand Down
4 changes: 2 additions & 2 deletions src/connectors/bitcointrade.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {
Exchange,
IExchangeImplementationConstructorArgs,
} from "../interfaces/exchange";
import { IOrderbook, ITicker, IExchangeBase } from "../types/common";
import { IOrderbook, ITicker } from "../types/common";

interface IBitcoinTradeTickerRes {
data: {
Expand All @@ -25,7 +25,7 @@ interface IBitcoinTradeOrderBookRes {
};
}

export class bitcointrade<T> extends Exchange<T> implements IExchangeBase {
export class bitcointrade<T> extends Exchange<T> {
constructor(args?: IExchangeImplementationConstructorArgs<T>) {
super({
id: "bitcointrade",
Expand Down
4 changes: 2 additions & 2 deletions src/connectors/bitmonedero.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import {
Exchange,
IExchangeImplementationConstructorArgs,
} from "../interfaces/exchange";
import { IOrderbook, ITicker, IExchangeBase } from "../types/common";
import { IOrderbook, ITicker } from "../types/common";

export class bitmonedero<T> extends Exchange<T> implements IExchangeBase {
export class bitmonedero<T> extends Exchange<T> {
constructor(args?: IExchangeImplementationConstructorArgs<T>) {
super({
id: "bitmonedero",
Expand Down
4 changes: 2 additions & 2 deletions src/connectors/bitnuvem.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {
Exchange,
IExchangeImplementationConstructorArgs,
} from "../interfaces/exchange";
import { IOrderbook, ITicker, IExchangeBase } from "../types/common";
import { IOrderbook, ITicker } from "../types/common";

interface IIBitnuvemOrderbookRes {
asks: [number, number][];
Expand All @@ -18,7 +18,7 @@ interface IBitnuvemTickerRes {
};
}

export class bitnuvem<T> extends Exchange<T> implements IExchangeBase {
export class bitnuvem<T> extends Exchange<T> {
constructor(args?: IExchangeImplementationConstructorArgs<T>) {
super({
id: "bitnuvem",
Expand Down
4 changes: 2 additions & 2 deletions src/connectors/bitpreco.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import {
Exchange,
IExchangeImplementationConstructorArgs,
} from "../interfaces/exchange";
import { IOrderbook, ITicker, IExchangeBase } from "../types/common";
import { IOrderbook, ITicker } from "../types/common";

export class bitpreco<T> extends Exchange<T> implements IExchangeBase {
export class bitpreco<T> extends Exchange<T> {
constructor(args?: IExchangeImplementationConstructorArgs<T>) {
super({
id: "bitpreco",
Expand Down
4 changes: 2 additions & 2 deletions src/connectors/bitso.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import {
Exchange,
IExchangeImplementationConstructorArgs,
} from "../interfaces/exchange";
import { IOrderbook, ITicker, IExchangeBase } from "../types/common";
import { IOrderbook, ITicker } from "../types/common";

export class bitso<T> extends Exchange<T> implements IExchangeBase {
export class bitso<T> extends Exchange<T> {
constructor(args?: IExchangeImplementationConstructorArgs<T>) {
super({
id: "bitso",
Expand Down
4 changes: 2 additions & 2 deletions src/connectors/bitstamp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import {
Exchange,
IExchangeImplementationConstructorArgs,
} from "../interfaces/exchange";
import { IOrderbook, ITicker, IExchangeBase } from "../types/common";
import { IOrderbook, ITicker } from "../types/common";

export class bitstamp<T> extends Exchange<T> implements IExchangeBase {
export class bitstamp<T> extends Exchange<T> {
constructor(args?: IExchangeImplementationConstructorArgs<T>) {
super({
id: "bitstamp",
Expand Down
4 changes: 2 additions & 2 deletions src/connectors/bittrex.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import {
Exchange,
IExchangeImplementationConstructorArgs,
} from "../interfaces/exchange";
import { IOrderbook, ITicker, IExchangeBase } from "../types/common";
import { IOrderbook, ITicker } from "../types/common";

export class bittrex<T> extends Exchange<T> implements IExchangeBase {
export class bittrex<T> extends Exchange<T> {
constructor(args?: IExchangeImplementationConstructorArgs<T>) {
super({
id: "bittrex",
Expand Down
4 changes: 2 additions & 2 deletions src/connectors/blocktane.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import {
Exchange,
IExchangeImplementationConstructorArgs,
} from "../interfaces/exchange";
import { IExchangeBase, ITicker } from "../types/common";
import { ITicker } from "../types/common";

export class blocktane<T> extends Exchange<T> implements IExchangeBase {
export class blocktane<T> extends Exchange<T> {
constructor(args?: IExchangeImplementationConstructorArgs<T>) {
super({
id: "blocktane",
Expand Down
4 changes: 2 additions & 2 deletions src/connectors/brasilbitcoin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import {
Exchange,
IExchangeImplementationConstructorArgs,
} from "../interfaces/exchange";
import { IOrderbook, ITicker, IExchangeBase } from "../types/common";
import { IOrderbook, ITicker } from "../types/common";

export class brasilbitcoin<T> extends Exchange<T> implements IExchangeBase {
export class brasilbitcoin<T> extends Exchange<T> {
constructor(args?: IExchangeImplementationConstructorArgs<T>) {
super({
id: "brasilbitcoin",
Expand Down
4 changes: 2 additions & 2 deletions src/connectors/buda.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {
Exchange,
IExchangeImplementationConstructorArgs,
} from "../interfaces/exchange";
import { IOrderbook, ITicker, IExchangeBase } from "../types/common";
import { IOrderbook, ITicker } from "../types/common";

interface IBudaTickerRes {
ticker: {
Expand All @@ -20,7 +20,7 @@ interface IBudaOrderbookRes {
};
}

export class buda<T> extends Exchange<T> implements IExchangeBase {
export class buda<T> extends Exchange<T> {
constructor(args?: IExchangeImplementationConstructorArgs<T>) {
super({
id: "buda",
Expand Down
4 changes: 2 additions & 2 deletions src/connectors/cexio.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import {
Exchange,
IExchangeImplementationConstructorArgs,
} from "../interfaces/exchange";
import { IOrderbook, ITicker, IExchangeBase } from "../types/common";
import { IOrderbook, ITicker } from "../types/common";

export class cexio<T> extends Exchange<T> implements IExchangeBase {
export class cexio<T> extends Exchange<T> {
constructor(args?: IExchangeImplementationConstructorArgs<T>) {
super({
id: "cexio",
Expand Down
4 changes: 2 additions & 2 deletions src/connectors/citcoin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import {
Exchange,
IExchangeImplementationConstructorArgs,
} from "../interfaces/exchange";
import { IExchangeBase, ITicker } from "../types/common";
import { ITicker } from "../types/common";

export class citcoin<T> extends Exchange<T> implements IExchangeBase {
export class citcoin<T> extends Exchange<T> {
constructor(args?: IExchangeImplementationConstructorArgs<T>) {
super({
id: "citcoin",
Expand Down
4 changes: 2 additions & 2 deletions src/connectors/coinbase_pro.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import {
Exchange,
IExchangeImplementationConstructorArgs,
} from "../interfaces/exchange";
import { IOrderbook, ITicker, IExchangeBase } from "../types/common";
import { IOrderbook, ITicker } from "../types/common";

export class coinbase_pro<T> extends Exchange<T> implements IExchangeBase {
export class coinbase_pro<T> extends Exchange<T> {
constructor(args?: IExchangeImplementationConstructorArgs<T>) {
super({
id: "coinbase_pro",
Expand Down
4 changes: 2 additions & 2 deletions src/connectors/coinbene.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import {
Exchange,
IExchangeImplementationConstructorArgs,
} from "../interfaces/exchange";
import { IOrderbook, ITicker, IExchangeBase } from "../types/common";
import { IOrderbook, ITicker } from "../types/common";

export class coinbene<T> extends Exchange<T> implements IExchangeBase {
export class coinbene<T> extends Exchange<T> {
constructor(args?: IExchangeImplementationConstructorArgs<T>) {
super({
id: "coinbene",
Expand Down
4 changes: 2 additions & 2 deletions src/connectors/coinsbank.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import {
Exchange,
IExchangeImplementationConstructorArgs,
} from "../interfaces/exchange";
import { IOrderbook, ITicker, IExchangeBase } from "../types/common";
import { IOrderbook, ITicker } from "../types/common";

export class coinsbank<T> extends Exchange<T> implements IExchangeBase {
export class coinsbank<T> extends Exchange<T> {
constructor(args?: IExchangeImplementationConstructorArgs<T>) {
super({
id: "coinsbank",
Expand Down
4 changes: 2 additions & 2 deletions src/connectors/cryptomarket.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import {
Exchange,
IExchangeImplementationConstructorArgs,
} from "../interfaces/exchange";
import { IOrderbook, ITicker, IExchangeBase } from "../types/common";
import { IOrderbook, ITicker } from "../types/common";

export class cryptomarket<T> extends Exchange<T> implements IExchangeBase {
export class cryptomarket<T> extends Exchange<T> {
constructor(args?: IExchangeImplementationConstructorArgs<T>) {
super({
id: "cryptomarket",
Expand Down
4 changes: 2 additions & 2 deletions src/connectors/decrypto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {
Exchange,
IExchangeImplementationConstructorArgs,
} from "../interfaces/exchange";
import { IExchangeBase, IOrderbook } from "../types/common";
import { IOrderbook } from "../types/common";

interface IDecryptoOrderbookOrder {
precio: number;
Expand All @@ -13,7 +13,7 @@ interface IDecryptoOrderbookRes {
bids: IDecryptoOrderbookOrder[];
}

export class decrypto<T> extends Exchange<T> implements IExchangeBase {
export class decrypto<T> extends Exchange<T> {
constructor(args?: IExchangeImplementationConstructorArgs<T>) {
super({
id: "decrypto",
Expand Down
4 changes: 2 additions & 2 deletions src/connectors/exmo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import {
Exchange,
IExchangeImplementationConstructorArgs,
} from "../interfaces/exchange";
import { IOrderbook, ITicker, IExchangeBase } from "../types/common";
import { IOrderbook, ITicker } from "../types/common";

export class exmo<T> extends Exchange<T> implements IExchangeBase {
export class exmo<T> extends Exchange<T> {
constructor(args?: IExchangeImplementationConstructorArgs<T>) {
super({
id: "exmo",
Expand Down
4 changes: 2 additions & 2 deletions src/connectors/foxbit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import {
Exchange,
IExchangeImplementationConstructorArgs,
} from "../interfaces/exchange";
import { IExchangeBase, ITicker } from "../types/common";
import { ITicker } from "../types/common";

export class foxbit<T> extends Exchange<T> implements IExchangeBase {
export class foxbit<T> extends Exchange<T> {
constructor(args?: IExchangeImplementationConstructorArgs<T>) {
super({
id: "foxbit",
Expand Down
4 changes: 2 additions & 2 deletions src/connectors/ftx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import {
Exchange,
IExchangeImplementationConstructorArgs,
} from "../interfaces/exchange";
import { IExchangeBase, ITicker } from "../types/common";
import { ITicker } from "../types/common";

export class ftx<T> extends Exchange<T> implements IExchangeBase {
export class ftx<T> extends Exchange<T> {
constructor(args?: IExchangeImplementationConstructorArgs<T>) {
super({
id: "ftx",
Expand Down
4 changes: 2 additions & 2 deletions src/connectors/gateio.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import {
Exchange,
IExchangeImplementationConstructorArgs,
} from "../interfaces/exchange";
import { IOrderbook, ITicker, IExchangeBase } from "../types/common";
import { IOrderbook, ITicker } from "../types/common";

export class gateio<T> extends Exchange<T> implements IExchangeBase {
export class gateio<T> extends Exchange<T> {
constructor(args?: IExchangeImplementationConstructorArgs<T>) {
super({
id: "gateio",
Expand Down
Loading

0 comments on commit 8c2f659

Please sign in to comment.