Skip to content

Commit

Permalink
Rename gdax to coinbasepro
Browse files Browse the repository at this point in the history
  • Loading branch information
notVitaliy committed Nov 27, 2020
1 parent a98c845 commit 81b0ede
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ const secretField: Field = {
// Making typescript happy
const authTypes = typeof authField.type !== 'string' ? [...authField.type] : null

const gdaxAuthFields: Field = {
const coinbaseproAuthFields: Field = {
name: authField.name,
type: [...authTypes, secretField],
}

export const gdax: ExchangeAdapter = {
fields: [tradePollIntervalField, gdaxAuthFields],
export const coinbasepro: ExchangeAdapter = {
fields: [tradePollIntervalField, coinbaseproAuthFields],
description: 'US based digital asset exchange with trading UI, FIX API and REST API.',

scan: 'back',
Expand Down
2 changes: 1 addition & 1 deletion src/exchange/adapters/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export * from './binance'
export * from './gdax'
export * from './coinbasepro'
export * from './chaos'
4 changes: 2 additions & 2 deletions src/exchange/exchange.wrapper.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { Exchange, Trade, Order } from 'ccxt'
import { gdax, binance, chaos } from './adapters'
import { coinbasepro, binance, chaos } from './adapters'
import { ExchangeAdapter } from './adapters/base'
import { OrderWithTrades } from '@lib'
import Bottleneck from 'bottleneck'
import { logger } from '@util'

const adapters: Record<string, ExchangeAdapter> = { binance, gdax, chaos }
const adapters: Record<string, ExchangeAdapter> = { binance, coinbasepro, chaos }

export class ExchangeWrapper {
public scan: 'back' | 'forward'
Expand Down

0 comments on commit 81b0ede

Please sign in to comment.