Skip to content

Commit

Permalink
Exchanges: Remove ANX from codebase (thrasher-corp#408)
Browse files Browse the repository at this point in the history
* Remove ANX from codebase

* Doc changes
  • Loading branch information
thrasher- authored Jan 3, 2020
1 parent f8ef6da commit 4e05ad4
Show file tree
Hide file tree
Showing 31 changed files with 42 additions and 4,585 deletions.
2 changes: 1 addition & 1 deletion CONTRIBUTORS
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ vadimzhukck | https://github.com/vadimzhukck
marcofranssen | https://github.com/marcofranssen
MadCozBadd | https://github.com/MadCozBadd
cranktakular | https://github.com/cranktakular
leilaes | https://github.com/leilaes
crackcomm | https://github.com/crackcomm
andreygrehov | https://github.com/andreygrehov
bretep | https://github.com/bretep
woshidama323 | https://github.com/woshidama323
gam-phon | https://github.com/gam-phon
cornelk | https://github.com/cornelk
if1live | https://github.com/if1live
lozdog245 | https://github.com/lozdog245
soxipy | https://github.com/soxipy
herenow | https://github.com/herenow
blombard | https://github.com/blombard
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2014-2019 The GoCryptoTrader Developers
Copyright (c) 2014-2020 The GoCryptoTrader Developers

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
13 changes: 6 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ Join our slack to discuss all things related to GoCryptoTrader! [GoCryptoTrader
| Exchange | REST API | Streaming API | FIX API |
|----------|------|-----------|-----|
| Alphapoint | Yes | Yes | NA |
| ANXPRO | Yes | No | NA |
| Binance| Yes | Yes | NA |
| Bitfinex | Yes | Yes | NA |
| Bitflyer | Yes | No | NA |
Expand Down Expand Up @@ -138,24 +137,24 @@ Binaries will be published once the codebase reaches a stable condition.

|User|Contribution Amount|
|--|--|
| [thrasher-](https://github.com/thrasher-) | 551 |
| [shazbert](https://github.com/shazbert) | 176 |
| [gloriousCode](https://github.com/gloriousCode) | 155 |
| [xtda](https://github.com/xtda) | 18 |
| [thrasher-](https://github.com/thrasher-) | 625 |
| [shazbert](https://github.com/shazbert) | 185 |
| [gloriousCode](https://github.com/gloriousCode) | 163 |
| [xtda](https://github.com/xtda) | 34 |
| [ermalguni](https://github.com/ermalguni) | 14 |
| [vadimzhukck](https://github.com/vadimzhukck) | 10 |
| [140am](https://github.com/140am) | 8 |
| [marcofranssen](https://github.com/marcofranssen) | 8 |
| [MadCozBadd](https://github.com/MadCozBadd) | 6 |
| [MadCozBadd](https://github.com/MadCozBadd) | 7 |
| [cranktakular](https://github.com/cranktakular) | 5 |
| [leilaes](https://github.com/leilaes) | 3 |
| [crackcomm](https://github.com/crackcomm) | 3 |
| [andreygrehov](https://github.com/andreygrehov) | 2 |
| [bretep](https://github.com/bretep) | 2 |
| [woshidama323](https://github.com/woshidama323) | 2 |
| [gam-phon](https://github.com/gam-phon) | 2 |
| [cornelk](https://github.com/cornelk) | 2 |
| [if1live](https://github.com/if1live) | 2 |
| [lozdog245](https://github.com/lozdog245) | 2 |
| [soxipy](https://github.com/soxipy) | 2 |
| [herenow](https://github.com/herenow) | 2 |
| [blombard](https://github.com/blombard) | 1 |
Expand Down
5 changes: 0 additions & 5 deletions cmd/documentation/communications_templates/slack.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ app and share different types of data

+ Basic communication to your slack channel information includes:
- Working status of bot
- Recent ANX ticker
- Current ANX orderbook

### How to enable

Expand Down Expand Up @@ -49,9 +47,6 @@ via Slack:
!status - Displays current working status of bot
!help - Displays help text
!settings - Displays current settings
!ticker - Displays recent ANX ticker
!portfolio - Displays portfolio data
!orderbook - Displays current ANX orderbook
```

### Please click GoDocs chevron above to view current GoDoc information for this package
Expand Down
5 changes: 0 additions & 5 deletions cmd/documentation/communications_templates/telegram.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ developed by Telegram Messenger LLP

+ Creation of bot that can retrieve
- Bot status
- ANX orderbook
- ANX ticker

### How to enable

Expand Down Expand Up @@ -49,9 +47,6 @@ via Telegram:
/status - Displays the status of the bot
/help - Displays current command list
/settings - Displays current bot settings
/ticker - Displays current ANX ticker data
/portfolio - Displays your current portfolio
/orderbooks - Displays current orderbooks for ANX`
```

### Please click GoDocs chevron above to view current GoDoc information for this package
Expand Down
4 changes: 2 additions & 2 deletions cmd/documentation/config_templates/config_readme.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ have multiple deposit accounts for different FIAT deposit currencies.
```js
"Exchanges": [
{
"Name": "ANX",
"Name": "Bitfinex",
"Enabled": true,
"Verbose": false,
"Websocket": false,
Expand Down Expand Up @@ -110,7 +110,7 @@ have multiple deposit accounts for different FIAT deposit currencies.
"SWIFTCode": "91272837",
"IBAN": "98218738671897",
"SupportedCurrencies": "USD",
"SupportedExchanges": "ANX,Kraken"
"SupportedExchanges": "Kraken,Bitstamp"
}
]
```
Expand Down
109 changes: 0 additions & 109 deletions cmd/documentation/exchanges_templates/anx.tmpl

This file was deleted.

1 change: 0 additions & 1 deletion cmd/documentation/root_templates/root_readme.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ Join our slack to discuss all things related to GoCryptoTrader! [GoCryptoTrader
| Exchange | REST API | Streaming API | FIX API |
|----------|------|-----------|-----|
| Alphapoint | Yes | Yes | NA |
| ANXPRO | Yes | No | NA |
| Binance| Yes | Yes | NA |
| Bitfinex | Yes | Yes | NA |
| Bitflyer | Yes | No | NA |
Expand Down
2 changes: 1 addition & 1 deletion cmd/exchange_wrapper_issues/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ func main() {
}

func parseCLFlags() {
flag.StringVar(&exchangesToUseOverride, "exchanges", "", "a + delimited list of exchange names to run tests against eg -exchanges=bitfinex+anx")
flag.StringVar(&exchangesToUseOverride, "exchanges", "", "a + delimited list of exchange names to run tests against eg -exchanges=bitfinex+okex")
flag.StringVar(&exchangesToExcludeOverride, "excluded-exchanges", "", "a + delimited list of exchange names to ignore when they're being temperamental eg -exchangesToExlude=lbank")
flag.StringVar(&assetTypeOverride, "asset", "", "the asset type to run tests against (where applicable)")
flag.StringVar(&currencyPairOverride, "currency", "", "the currency to run tests against (where applicable)")
Expand Down
5 changes: 0 additions & 5 deletions cmd/exchange_wrapper_issues/wrapperconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,6 @@
},
"exchanges": {
"alphapoint": {},
"anx": {
"key": "Key",
"secret": "Secret",
"otpSecret": "-"
},
"binance": {
"key": "Key",
"secret": "Secret",
Expand Down
5 changes: 0 additions & 5 deletions communications/slack/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ app and share different types of data

+ Basic communication to your slack channel information includes:
- Working status of bot
- Recent ANX ticker
- Current ANX orderbook

### How to enable

Expand Down Expand Up @@ -67,9 +65,6 @@ via Slack:
!status - Displays current working status of bot
!help - Displays help text
!settings - Displays current settings
!ticker - Displays recent ANX ticker
!portfolio - Displays portfolio data
!orderbook - Displays current ANX orderbook
```

### Please click GoDocs chevron above to view current GoDoc information for this package
Expand Down
5 changes: 0 additions & 5 deletions communications/telegram/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ developed by Telegram Messenger LLP

+ Creation of bot that can retrieve
- Bot status
- ANX orderbook
- ANX ticker

### How to enable

Expand Down Expand Up @@ -67,9 +65,6 @@ via Telegram:
/status - Displays the status of the bot
/help - Displays current command list
/settings - Displays current bot settings
/ticker - Displays current ANX ticker data
/portfolio - Displays your current portfolio
/orderbooks - Displays current orderbooks for ANX`
```

### Please click GoDocs chevron above to view current GoDoc information for this package
Expand Down
4 changes: 2 additions & 2 deletions config/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ have multiple deposit accounts for different FIAT deposit currencies.
```js
"Exchanges": [
{
"Name": "ANX",
"Name": "Bitfinex",
"Enabled": true,
"Verbose": false,
"Websocket": false,
Expand Down Expand Up @@ -128,7 +128,7 @@ have multiple deposit accounts for different FIAT deposit currencies.
"SWIFTCode": "91272837",
"IBAN": "98218738671897",
"SupportedCurrencies": "USD",
"SupportedExchanges": "ANX,Kraken"
"SupportedExchanges": "Kraken,Bitstamp"
}
]
```
Expand Down
2 changes: 1 addition & 1 deletion config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ func (c *Config) CheckClientBankAccounts() {
SWIFTCode: "91272837",
IBAN: "98218738671897",
SupportedCurrencies: "USD",
SupportedExchanges: "ANX,Kraken",
SupportedExchanges: "Kraken,Bitstamp",
},
)
return
Expand Down
6 changes: 3 additions & 3 deletions config/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import (
const (
// Default number of enabled exchanges. Modify this whenever an exchange is
// added or removed
defaultEnabledExchanges = 28
defaultEnabledExchanges = 27
testFakeExchangeName = "Stampbit"
testPair = "BTC-USD"
)
Expand Down Expand Up @@ -1111,7 +1111,7 @@ func TestGetExchangeConfig(t *testing.T) {
"GetExchangeConfig.LoadConfig Error: %s", err.Error(),
)
}
_, err = GetExchangeConfig.GetExchangeConfig("ANX")
_, err = GetExchangeConfig.GetExchangeConfig("Bitfinex")
if err != nil {
t.Errorf("GetExchangeConfig.GetExchangeConfig Error: %s",
err.Error())
Expand Down Expand Up @@ -1184,7 +1184,7 @@ func TestUpdateExchangeConfig(t *testing.T) {
t.Error("Expected error from non-existent exchange")
}

e, err = c.GetExchangeConfig("ANX")
e, err = c.GetExchangeConfig("OKEX")
if err != nil {
t.Error(err)
}
Expand Down
Loading

0 comments on commit 4e05ad4

Please sign in to comment.