Skip to content

Commit

Permalink
improve folders organization
Browse files Browse the repository at this point in the history
  • Loading branch information
itxtoledo committed Aug 10, 2023
1 parent 28b5783 commit 25d20d1
Show file tree
Hide file tree
Showing 63 changed files with 230 additions and 276 deletions.
2 changes: 1 addition & 1 deletion examples/bisq.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { bisq } from "../src/index";
import { bisq } from "../src/exchanges";

const ex = new bisq();

Expand Down
2 changes: 1 addition & 1 deletion examples/flowbtc.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { flowbtc } from "../src/index";
import { flowbtc } from "../src/exchanges";

const ex = new flowbtc();

Expand Down
2 changes: 1 addition & 1 deletion examples/fluyez.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { fluyez } from "../src/index";
import { fluyez } from "../src/exchanges";

const ex = new fluyez();

Expand Down
2 changes: 1 addition & 1 deletion examples/foxbit.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { foxbit } from "../src/index";
import { foxbit } from "../src/exchanges";

const ex = new foxbit();

Expand Down
2 changes: 1 addition & 1 deletion examples/mercadobitcoin.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { mercadobitcoin } from "../src/index";
import { mercadobitcoin } from "../src/exchanges";

const ex = new mercadobitcoin();

Expand Down
3 changes: 2 additions & 1 deletion examples/pagcripto.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import "dotenv/config";
import { pagcripto, FetcherHandler } from "../src/index";
import { FetcherHandler } from "../src/index";
import { pagcripto } from "../src/exchanges";
import { MyFetcher } from "../test/utils/MyFetcher";
// import { OrderSide } from "../src/types/common";

Expand Down
6 changes: 0 additions & 6 deletions examples/walltime.ts

This file was deleted.

5 changes: 4 additions & 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": "2.1.0",
"version": "2.1.1",
"repository": "[email protected]:coinsambacom/js-exchanges-connector.git",
"author": "Gustavo <[email protected]>",
"license": "MIT",
Expand Down Expand Up @@ -44,6 +44,7 @@
"@jest/globals": "^29.6.2",
"@types/debug": "^4.1.7",
"@types/jest": "^29.5.3",
"@types/lodash": "^4.14.197",
"@types/node": "^17.0.14",
"@types/ws": "^8.5.3",
"@typescript-eslint/eslint-plugin": "^5.10.2",
Expand All @@ -67,6 +68,8 @@
},
"dependencies": {
"fast-sort": "^3.1.3",
"lodash": "^4.17.21",
"lodash.isnumber": "^3.0.3",
"ws": "^8.8.1"
}
}
File renamed without changes.
2 changes: 1 addition & 1 deletion src/connectors/bisq.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 } from "../types/common";
import { IOrderbook, ITicker } from "../utils/DTOs";

interface IBisqTickerRes {
last: string;
Expand Down
2 changes: 1 addition & 1 deletion src/connectors/bitbay.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 } from "../types/common";
import { IOrderbook, ITicker } from "../utils/DTOs";

export class bitbay<T = any> extends Exchange<T> {
constructor(args?: IExchangeImplementationConstructorArgs<T>) {
Expand Down
2 changes: 1 addition & 1 deletion 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 } from "../types/common";
import { IOrderbook, ITicker } from "../utils/DTOs";

interface IBitblueTickerRes {
stats: {
Expand Down
2 changes: 1 addition & 1 deletion src/connectors/bitcointoyou.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {
Exchange,
IExchangeImplementationConstructorArgs,
} from "../interfaces/exchange";
import { ITicker } from "../types/common";
import { ITicker } from "../utils/DTOs";

export class bitcointoyou<T = any> extends Exchange<T> {
constructor(args?: IExchangeImplementationConstructorArgs<T>) {
Expand Down
2 changes: 1 addition & 1 deletion 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 } from "../types/common";
import { IOrderbook, ITicker } from "../utils/DTOs";

interface IBitcoinTradeTickersRes {
data: {
Expand Down
2 changes: 1 addition & 1 deletion src/connectors/bitmonedero.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 } from "../types/common";
import { IOrderbook, ITicker } from "../utils/DTOs";

export class bitmonedero<T = any> extends Exchange<T> {
constructor(args?: IExchangeImplementationConstructorArgs<T>) {
Expand Down
2 changes: 1 addition & 1 deletion 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 } from "../types/common";
import { IOrderbook, ITicker } from "../utils/DTOs";

interface IIBitnuvemOrderbookRes {
asks: [number, number][];
Expand Down
10 changes: 3 additions & 7 deletions src/connectors/bitpreco.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
import {
Exchange,
IExchangeImplementationConstructorArgs,
} from "../interfaces/exchange";
import {
IBalance,
IOrderbook,
ITicker,
SignerArguments,
SignerReturn,
} from "../types/common";
import { FetcherRequisitionMethods } from "../utils/FetcherHandler";
} from "../interfaces/exchange";
import { IBalance, IOrderbook, ITicker } from "../utils/DTOs";
import { FetcherRequisitionMethods } from "../FetcherHandler";

interface BitprecoOrderbookRes {
bids?: BitprecoOrderbookOrder[];
Expand Down
2 changes: 1 addition & 1 deletion src/connectors/bitso.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, IOrderbookOrder, ITicker } from "../types/common";
import { IOrderbook, IOrderbookOrder, ITicker } from "../utils/DTOs";

interface IBitsoOrderbookOrder {
price: string;
Expand Down
2 changes: 1 addition & 1 deletion src/connectors/bitstamp.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 } from "../types/common";
import { IOrderbook, ITicker } from "../utils/DTOs";

export class bitstamp<T = any> extends Exchange<T> {
constructor(args?: IExchangeImplementationConstructorArgs<T>) {
Expand Down
2 changes: 1 addition & 1 deletion src/connectors/bittrex.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 } from "../types/common";
import { IOrderbook, ITicker } from "../utils/DTOs";

export class bittrex<T = any> extends Exchange<T> {
constructor(args?: IExchangeImplementationConstructorArgs<T>) {
Expand Down
2 changes: 1 addition & 1 deletion src/connectors/blocktane.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {
Exchange,
IExchangeImplementationConstructorArgs,
} from "../interfaces/exchange";
import { ITicker } from "../types/common";
import { ITicker } from "../utils/DTOs";

export class blocktane<T = any> extends Exchange<T> {
constructor(args?: IExchangeImplementationConstructorArgs<T>) {
Expand Down
2 changes: 1 addition & 1 deletion src/connectors/brasilbitcoin.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 } from "../types/common";
import { IOrderbook, ITicker } from "../utils/DTOs";

export class brasilbitcoin<T = any> extends Exchange<T> {
constructor(args?: IExchangeImplementationConstructorArgs<T>) {
Expand Down
2 changes: 1 addition & 1 deletion src/connectors/brasilbitcoin_otc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {
Exchange,
IExchangeImplementationConstructorArgs,
} from "../interfaces/exchange";
import { ITicker } from "../types/common";
import { ITicker } from "../utils/DTOs";

interface IBrasilBitcoinOtcTicker {
last: number;
Expand Down
2 changes: 1 addition & 1 deletion src/connectors/brfinex.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 } from "../types/common";
import { IOrderbook, ITicker } from "../utils/DTOs";

interface IBRFinexTickerRes {
data: {
Expand Down
2 changes: 1 addition & 1 deletion 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, IOrderbookOrder, ITicker } from "../types/common";
import { IOrderbook, IOrderbookOrder, ITicker } from "../utils/DTOs";

type IBudaTickerEntry = [string, string];

Expand Down
2 changes: 1 addition & 1 deletion src/connectors/cexio.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 } from "../types/common";
import { IOrderbook, ITicker } from "../utils/DTOs";

export class cexio<T = any> extends Exchange<T> {
constructor(args?: IExchangeImplementationConstructorArgs<T>) {
Expand Down
2 changes: 1 addition & 1 deletion src/connectors/citcoin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {
Exchange,
IExchangeImplementationConstructorArgs,
} from "../interfaces/exchange";
import { IOrderbookOrder, ITicker } from "../types/common";
import { IOrderbookOrder, ITicker } from "../utils/DTOs";

interface ICitcoinTickerRes {
date: string;
Expand Down
2 changes: 1 addition & 1 deletion src/connectors/coinbase_pro.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 } from "../types/common";
import { IOrderbook, ITicker } from "../utils/DTOs";

export class coinbase_pro<T = any> extends Exchange<T> {
constructor(args?: IExchangeImplementationConstructorArgs<T>) {
Expand Down
2 changes: 1 addition & 1 deletion src/connectors/coinbene.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 } from "../types/common";
import { IOrderbook, ITicker } from "../utils/DTOs";

export class coinbene<T = any> extends Exchange<T> {
constructor(args?: IExchangeImplementationConstructorArgs<T>) {
Expand Down
2 changes: 1 addition & 1 deletion src/connectors/coinext.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { alphapoint } from "../interfaces/alphapoint";
import { IExchangeImplementationConstructorArgs } from "../interfaces/exchange";
import { ITicker } from "../types/common";
import { ITicker } from "../utils/DTOs";

export class coinext<T> extends alphapoint<T> {
public tickerUrl: string;
Expand Down
2 changes: 1 addition & 1 deletion src/connectors/coinsbank.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 } from "../types/common";
import { IOrderbook, ITicker } from "../utils/DTOs";

export class coinsbank<T = any> extends Exchange<T> {
constructor(args?: IExchangeImplementationConstructorArgs<T>) {
Expand Down
2 changes: 1 addition & 1 deletion src/connectors/cryptomarket.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, IOrderbookOrder, ITicker } from "../types/common";
import { IOrderbook, IOrderbookOrder, ITicker } from "../utils/DTOs";

interface ICryptoMarketTicker {
ask: string;
Expand Down
2 changes: 1 addition & 1 deletion 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 { IOrderbook } from "../types/common";
import { IOrderbook } from "../utils/DTOs";

interface IDecryptoOrderbookOrder {
precio: number;
Expand Down
2 changes: 1 addition & 1 deletion src/connectors/exmo.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 } from "../types/common";
import { IOrderbook, ITicker } from "../utils/DTOs";

export class exmo<T = any> extends Exchange<T> {
constructor(args?: IExchangeImplementationConstructorArgs<T>) {
Expand Down
2 changes: 1 addition & 1 deletion src/connectors/fluyez.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 } from "../types/common";
import { IOrderbook, ITicker } from "../utils/DTOs";

interface IFluyezTickerRes {
data: {
Expand Down
2 changes: 1 addition & 1 deletion src/connectors/foxbit.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { alphapoint } from "../interfaces/alphapoint";
import { IExchangeImplementationConstructorArgs } from "../interfaces/exchange";
import { ITicker } from "../types/common";
import { ITicker } from "../utils/DTOs";

interface IFoxbitAllTickers {
symbol: string;
Expand Down
2 changes: 1 addition & 1 deletion src/connectors/ftx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {
IExchangeImplementationConstructorArgs,
} from "../interfaces/exchange";

import { IOrderbookOrder, ITicker, IOrderbook } from "../types/common";
import { IOrderbookOrder, ITicker, IOrderbook } from "../utils/DTOs";

interface IFTXTicker {
name: string;
Expand Down
2 changes: 1 addition & 1 deletion src/connectors/gateio.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 } from "../types/common";
import { IOrderbook, ITicker } from "../utils/DTOs";

export class gateio<T = any> extends Exchange<T> {
constructor(args?: IExchangeImplementationConstructorArgs<T>) {
Expand Down
2 changes: 1 addition & 1 deletion src/connectors/huobi.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, IOrderbookOrder, ITicker } from "../types/common";
import { IOrderbook, IOrderbookOrder, ITicker } from "../utils/DTOs";

interface IHuobiTicker {
symbol: string;
Expand Down
2 changes: 1 addition & 1 deletion src/connectors/kraken.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, IOrderbookOrder, ITicker } from "../types/common";
import { IOrderbook, IOrderbookOrder, ITicker } from "../utils/DTOs";

interface IKrakenBaseRes {
error: [];
Expand Down
2 changes: 1 addition & 1 deletion src/connectors/kucoin.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, IOrderbookOrder, ITicker } from "../types/common";
import { IOrderbook, IOrderbookOrder, ITicker } from "../utils/DTOs";

interface KucoinBaseRes {
code: string;
Expand Down
2 changes: 1 addition & 1 deletion src/connectors/liqi.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 } from "../types/common";
import { IOrderbook, ITicker } from "../utils/DTOs";

interface ILiqiTickerRes {
symbol: string;
Expand Down
2 changes: 1 addition & 1 deletion src/connectors/mercadobitcoin.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 } from "../types/common";
import { IOrderbook, ITicker } from "../utils/DTOs";

interface IMercadoBitcoinTicker {
buy: string;
Expand Down
2 changes: 1 addition & 1 deletion src/connectors/novadax.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 } from "../types/common";
import { IOrderbook, ITicker } from "../utils/DTOs";

interface INovaDAXBaseApiResponse {
code: string;
Expand Down
Loading

0 comments on commit 25d20d1

Please sign in to comment.