Skip to content

Commit

Permalink
chore: update certs and add expiration dates
Browse files Browse the repository at this point in the history
  • Loading branch information
ninabarbakadze committed Sep 6, 2023
1 parent a42c872 commit bfd0c0c
Show file tree
Hide file tree
Showing 16 changed files with 28 additions and 23 deletions.
4 changes: 2 additions & 2 deletions src/exchange_adapters/binance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import { Exchange } from '../utils'
export class BinanceAdapter extends BaseExchangeAdapter implements ExchangeAdapter {
baseApiUrl = 'https://api.binance.com/api/v3'
readonly _exchangeName: Exchange = Exchange.BINANCE
// GeoTrust RSA CA 2018
// *.binance.com - validity not after: 17/02/2024, 00:59:59 CET
readonly _certFingerprint256 =
'8C:C3:4E:11:C1:67:04:58:24:AD:E6:1C:49:07:A6:44:0E:DB:2C:43:98:E9:9C:11:2A:85:9D:66:1F:8E:2B:C7'
'93:07:DE:DD:AF:3A:78:77:1D:B1:B7:68:3E:9F:18:8E:28:83:AE:A1:77:58:87:D4:5C:F6:F9:C8:71:1A:72:49'

private static readonly tokenSymbolMap = BinanceAdapter.standardTokenSymbolMap

Expand Down
4 changes: 2 additions & 2 deletions src/exchange_adapters/binance_us.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { BinanceAdapter } from './binance'
export class BinanceUSAdapter extends BinanceAdapter implements ExchangeAdapter {
baseApiUrl = 'https://api.binance.us/api/v3'
readonly _exchangeName = Exchange.BINANCEUS
// GeoTrust RSA CA 2018
// *.binance.com - validity not after: 17/02/2024, 00:59:59 CET
readonly _certFingerprint256 =
'8C:C3:4E:11:C1:67:04:58:24:AD:E6:1C:49:07:A6:44:0E:DB:2C:43:98:E9:9C:11:2A:85:9D:66:1F:8E:2B:C7'
'93:07:DE:DD:AF:3A:78:77:1D:B1:B7:68:3E:9F:18:8E:28:83:AE:A1:77:58:87:D4:5C:F6:F9:C8:71:1A:72:49'
}
4 changes: 2 additions & 2 deletions src/exchange_adapters/bitget.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ export class BitgetAdapter extends BaseExchangeAdapter {
baseApiUrl = 'https://api.bitget.com/api'

readonly _exchangeName = Exchange.BITGET
// cloudflare cert
// bitget.com - validity not after: 19/07/2024, 01:59:59 CEST
readonly _certFingerprint256 =
'3A:BB:E6:3D:AF:75:6C:50:16:B6:B8:5F:52:01:5F:D8:E8:AC:BE:27:7C:50:87:B1:27:A6:05:63:A8:41:ED:8A'
'D3:E0:89:44:CC:C6:CD:F9:74:FB:A0:6D:2F:A3:8F:CF:DA:BF:76:C6:11:05:49:54:B4:58:CC:1F:AB:6B:29:3E'

async fetchTicker(): Promise<Ticker> {
return this.parseTicker(
Expand Down
1 change: 1 addition & 0 deletions src/exchange_adapters/bitmart.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { Exchange } from '../utils'
export class BitMartAdapter extends BaseExchangeAdapter implements ExchangeAdapter {
baseApiUrl = 'https://api-cloud.bitmart.com'
readonly _exchangeName = Exchange.BITMART
// *.bitmart.com - validity not after: 16/01/2024, 07:29:21 CET
readonly _certFingerprint256 =
'9D:44:FC:FB:7F:D3:14:1E:3C:E7:DB:B1:BF:E2:60:6A:D2:96:C6:7C:10:C5:A9:1F:58:D3:58:C0:19:82:85:5A'
private static readonly tokenSymbolMap = BitMartAdapter.standardTokenSymbolMap
Expand Down
4 changes: 2 additions & 2 deletions src/exchange_adapters/bitso.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import { Exchange } from '../utils'
export class BitsoAdapter extends BaseExchangeAdapter implements ExchangeAdapter {
baseApiUrl = 'https://api.bitso.com/api/v3'
readonly _exchangeName = Exchange.BITSO
// Cloudflare Inc ECC CA-3
// bitso.com - validity not after: 24/04/2024, 01:59:59 CEST
readonly _certFingerprint256 =
'3A:BB:E6:3D:AF:75:6C:50:16:B6:B8:5F:52:01:5F:D8:E8:AC:BE:27:7C:50:87:B1:27:A6:05:63:A8:41:ED:8A'
'C3:BB:BC:A5:E0:10:2F:02:2C:46:A2:69:C2:EF:F7:29:D8:76:23:7E:69:AA:4B:1E:92:23:56:34:2A:3E:DB:91'

private static readonly tokenSymbolMap = BitsoAdapter.standardTokenSymbolMap

Expand Down
1 change: 1 addition & 0 deletions src/exchange_adapters/bitstamp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { Exchange } from '../utils'
export class BitstampAdapter extends BaseExchangeAdapter implements ExchangeAdapter {
baseApiUrl = 'https://www.bitstamp.net/api/v2'
readonly _exchangeName = Exchange.BITSTAMP
// www.bitstamp.net - validity not after: 11/04/2024, 01:59:59 CEST
readonly _certFingerprint256 =
'B2:FC:1C:C5:2A:4A:B4:B0:26:4E:C4:32:B8:F4:F0:34:87:66:2B:FD:CE:A0:35:47:0D:F1:0B:1B:97:68:2B:1A'

Expand Down
4 changes: 2 additions & 2 deletions src/exchange_adapters/bittrex.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import { Exchange } from '../utils'
export class BittrexAdapter extends BaseExchangeAdapter {
baseApiUrl = 'https://api.bittrex.com/v3'
readonly _exchangeName = Exchange.BITTREX
// Cloudflare Inc ECC CA-3
// sni.cloudflaressl.com - validity not after: 29/04/2024, 01:59:59 CEST
readonly _certFingerprint256 =
'3A:BB:E6:3D:AF:75:6C:50:16:B6:B8:5F:52:01:5F:D8:E8:AC:BE:27:7C:50:87:B1:27:A6:05:63:A8:41:ED:8A'
'2C:50:CC:AA:9B:2E:BB:B7:E0:7B:3D:0A:5A:09:1D:33:4F:B2:AB:F2:C4:D3:76:5E:9E:AA:C8:0E:99:A3:30:F6'

private static readonly tokenSymbolMap = BittrexAdapter.standardTokenSymbolMap

Expand Down
2 changes: 1 addition & 1 deletion src/exchange_adapters/coinbase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { CeloContract } from '@celo/contractkit'

export class CoinbaseAdapter extends BaseExchangeAdapter implements ExchangeAdapter {
baseApiUrl = 'https://api.pro.coinbase.com'
// Cloudflare Inc ECC CA-3
// pro.coinbase.com - validity not after: 11/05/2024, 01:59:59 CEST
readonly _certFingerprint256 =
'3A:BB:E6:3D:AF:75:6C:50:16:B6:B8:5F:52:01:5F:D8:E8:AC:BE:27:7C:50:87:B1:27:A6:05:63:A8:41:ED:8A'

Expand Down
4 changes: 2 additions & 2 deletions src/exchange_adapters/gemini.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ export class GeminiAdapter extends BaseExchangeAdapter {
baseApiUrl = 'https://api.gemini.com/v1/'

readonly _exchangeName = Exchange.GEMINI
// Amazon cert
// exchange.gemini.com - validity not after: 01/08/2024, 01:59:59 CEST
readonly _certFingerprint256 =
'F5:5F:9F:FC:B8:3C:73:45:32:61:60:1C:7E:04:4D:B1:5A:0F:03:4B:93:C0:58:30:F2:86:35:EF:88:9C:F6:70'
'AD:D8:46:BA:A8:98:AA:55:D6:76:4A:7C:87:B2:5B:A2:9D:FC:AC:53:78:AB:E9:70:2B:6B:BF:2D:AF:A2:7C:D9'

async fetchTicker(): Promise<Ticker> {
return this.parseTicker(
Expand Down
4 changes: 2 additions & 2 deletions src/exchange_adapters/kraken.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ export class KrakenAdapter extends BaseExchangeAdapter implements ExchangeAdapte

private static readonly tokenSymbolMap = KrakenAdapter.standardTokenSymbolMap

// Krakens's GTS CA 1P5 fingerprint.
// api.kraken.com - validity not after: 31/10/2023, 07:00:28 CET
readonly _certFingerprint256 =
'97:D4:20:03:E1:32:55:29:46:09:7F:20:EF:95:5F:5B:1C:D5:70:AA:43:72:D7:80:03:3A:65:EF:BE:69:75:8D'
'9D:13:08:93:7F:E0:7B:D0:05:F0:6A:15:64:E6:9A:99:17:5D:19:FC:D1:FB:43:03:43:FF:0D:14:2E:71:E3:C6'

protected generatePairSymbol(): string {
const base = KrakenAdapter.tokenSymbolMap.get(this.config.baseCurrency)
Expand Down
3 changes: 2 additions & 1 deletion src/exchange_adapters/kucoin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@ import { Exchange } from '../utils'
export class KuCoinAdapter extends BaseExchangeAdapter implements ExchangeAdapter {
baseApiUrl = 'https://api.kucoin.com'
readonly _exchangeName = Exchange.KUCOIN
// api.kucoin.com - validity not after: 09/02/2024, 00:59:59 CET
readonly _certFingerprint256 =
'3A:BB:E6:3D:AF:75:6C:50:16:B6:B8:5F:52:01:5F:D8:E8:AC:BE:27:7C:50:87:B1:27:A6:05:63:A8:41:ED:8A'
'29:C6:B0:C0:DE:73:3C:CA:0B:57:7E:AF:C8:8F:19:D4:5E:15:51:24:76:6C:89:6D:D5:53:FC:B5:9C:FB:75:B9'

private static readonly tokenSymbolMap = KuCoinAdapter.standardTokenSymbolMap

Expand Down
3 changes: 2 additions & 1 deletion src/exchange_adapters/mercado.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@ import { Exchange } from '../utils'
export class MercadoAdapter extends BaseExchangeAdapter implements ExchangeAdapter {
baseApiUrl = 'https://api.mercadobitcoin.net/api/v4'
readonly _exchangeName = Exchange.MERCADO
// sni.cloudflaressl.com - validity not after: 15/05/2024, 01:59:59 CEST
readonly _certFingerprint256 =
'3A:BB:E6:3D:AF:75:6C:50:16:B6:B8:5F:52:01:5F:D8:E8:AC:BE:27:7C:50:87:B1:27:A6:05:63:A8:41:ED:8A'
'7F:6A:C9:B9:72:50:32:78:06:49:38:B1:FC:85:0D:DA:FB:C8:90:1B:FD:A1:E1:B2:17:77:D8:E4:AD:26:0E:3E'

private static readonly tokenSymbolMap = MercadoAdapter.standardTokenSymbolMap

Expand Down
2 changes: 1 addition & 1 deletion src/exchange_adapters/novadax.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { Exchange } from '../utils'
export class NovaDaxAdapter extends BaseExchangeAdapter implements ExchangeAdapter {
baseApiUrl = 'https://api.novadax.com/v1/market'
readonly _exchangeName = Exchange.NOVADAX
// NovaDAX's certificate fingerprint.
// novadax.com - validity not after: 23/11/2023, 08:35:21 CET
readonly _certFingerprint256 =
'AE:22:03:A7:22:09:FD:6D:BA:3E:0B:BC:39:C8:67:5B:23:6E:32:A7:F5:95:EC:0E:6B:E1:8C:3B:D7:D3:1A:43'

Expand Down
4 changes: 2 additions & 2 deletions src/exchange_adapters/okcoin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import { Exchange } from '../utils'
export class OKCoinAdapter extends BaseExchangeAdapter {
baseApiUrl = 'https://www.okcoin.com/api'

// Cloudflare Inc ECC CA-3
// sni.cloudflaressl.com - validity not after: 29/04/2024, 01:59:59 CEST
readonly _certFingerprint256 =
'3A:BB:E6:3D:AF:75:6C:50:16:B6:B8:5F:52:01:5F:D8:E8:AC:BE:27:7C:50:87:B1:27:A6:05:63:A8:41:ED:8A'
'30:EB:DD:1F:AD:08:6E:6B:23:D1:94:03:99:BE:B7:CB:15:A5:F1:F8:AB:74:75:FF:B0:00:39:B7:73:9A:FE:BB'

readonly _exchangeName = Exchange.OKCOIN

Expand Down
3 changes: 2 additions & 1 deletion src/exchange_adapters/okx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@ import { Exchange } from '../utils'
export class OKXAdapter extends BaseExchangeAdapter implements ExchangeAdapter {
baseApiUrl = 'https://www.okx.com/api/v5'
readonly _exchangeName = Exchange.OKX
// www.okx.com - validity not after: 02/11/2023, 00:59:59 CET
readonly _certFingerprint256 =
'3A:BB:E6:3D:AF:75:6C:50:16:B6:B8:5F:52:01:5F:D8:E8:AC:BE:27:7C:50:87:B1:27:A6:05:63:A8:41:ED:8A'
'2A:31:F1:82:DB:EA:F4:E0:C7:B0:9F:60:25:0A:D3:F3:85:04:AE:9B:92:F1:B9:8E:C8:22:1F:E7:7B:C3:A6:66'

private static readonly tokenSymbolMap = OKXAdapter.standardTokenSymbolMap

Expand Down
4 changes: 2 additions & 2 deletions src/exchange_adapters/whitebit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import { Exchange } from '../utils'
export class WhitebitAdapter extends BaseExchangeAdapter {
baseApiUrl = 'https://whitebit.com/api/v4/public/'
readonly _exchangeName = Exchange.WHITEBIT
// Cloudflare Inc ECC CA-3
// whitebit.com - validity not after: 19/09/2023, 01:59:59 CEST
readonly _certFingerprint256 =
'3A:BB:E6:3D:AF:75:6C:50:16:B6:B8:5F:52:01:5F:D8:E8:AC:BE:27:7C:50:87:B1:27:A6:05:63:A8:41:ED:8A'
'35:31:EB:D0:4D:0E:51:2F:99:F2:38:05:41:25:B9:E8:93:40:78:E7:7C:E4:4E:C3:14:A6:8C:D6:AD:6D:DC:FC'

private static readonly tokenSymbolMap = this.standardTokenSymbolMap

Expand Down

0 comments on commit bfd0c0c

Please sign in to comment.