mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-05-14 07:26:47 +00:00
Exchanges: Remove ANX from codebase (#408)
* Remove ANX from codebase * Doc changes
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -12,8 +12,6 @@ developed by Telegram Messenger LLP
|
||||
|
||||
+ Creation of bot that can retrieve
|
||||
- Bot status
|
||||
- ANX orderbook
|
||||
- ANX ticker
|
||||
|
||||
### How to enable
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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,
|
||||
@@ -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"
|
||||
}
|
||||
]
|
||||
```
|
||||
|
||||
@@ -1,109 +0,0 @@
|
||||
{{define "exchanges anx" -}}
|
||||
{{template "header" .}}
|
||||
## ANX Exchange
|
||||
|
||||
### Current Features
|
||||
|
||||
+ REST functions
|
||||
|
||||
### Features not yet included
|
||||
|
||||
+ Long polling streaming
|
||||
|
||||
### How to enable
|
||||
|
||||
+ [Enable via configuration](https://github.com/thrasher-corp/gocryptotrader/tree/master/config#enable-exchange-via-config-example)
|
||||
|
||||
+ Individual package example below:
|
||||
|
||||
```go
|
||||
// Exchanges will be abstracted out in further updates and examples will be
|
||||
// supplied then
|
||||
```
|
||||
|
||||
### How to do REST public/private calls
|
||||
|
||||
+ If enabled via "configuration".json file the exchange will be added to the
|
||||
IBotExchange array in the ```go var bot Bot``` and you will only be able to use
|
||||
the wrapper interface functions for accessing exchange data. View routines.go
|
||||
for an example of integration usage with GoCryptoTrader. Rudimentary example
|
||||
below:
|
||||
|
||||
main.go
|
||||
```go
|
||||
var a exchange.IBotExchange
|
||||
|
||||
for i := range bot.Exchanges {
|
||||
if bot.Exchanges[i].GetName() == "ANX" {
|
||||
a = bot.Exchanges[i]
|
||||
}
|
||||
}
|
||||
|
||||
// Public calls - wrapper functions
|
||||
|
||||
// Fetches current ticker information
|
||||
tick, err := a.FetchTicker()
|
||||
if err != nil {
|
||||
// Handle error
|
||||
}
|
||||
|
||||
// Fetches current orderbook information
|
||||
ob, err := a.FetchOrderbook()
|
||||
if err != nil {
|
||||
// Handle error
|
||||
}
|
||||
|
||||
// Private calls - wrapper functions - make sure your APIKEY and APISECRET are
|
||||
// set and AuthenticatedAPISupport is set to true
|
||||
|
||||
// Fetches current account information
|
||||
accountInfo, err := a.GetAccountInfo()
|
||||
if err != nil {
|
||||
// Handle error
|
||||
}
|
||||
```
|
||||
|
||||
+ If enabled via individually importing package, rudimentary example below:
|
||||
|
||||
```go
|
||||
// Public calls
|
||||
|
||||
// Fetches current ticker information
|
||||
ticker, err := a.GetTicker()
|
||||
if err != nil {
|
||||
// Handle error
|
||||
}
|
||||
|
||||
// Fetches current orderbook information
|
||||
ob, err := a.GetOrderBook()
|
||||
if err != nil {
|
||||
// Handle error
|
||||
}
|
||||
|
||||
// Private calls - make sure your APIKEY and APISECRET are set and
|
||||
// AuthenticatedAPISupport is set to true
|
||||
|
||||
// GetUserInfo returns account info
|
||||
accountInfo, err := a.GetUserInfo(...)
|
||||
if err != nil {
|
||||
// Handle error
|
||||
}
|
||||
|
||||
// Submits an order and the exchange and returns its tradeID
|
||||
tradeID, err := a.Trade(...)
|
||||
if err != nil {
|
||||
// Handle error
|
||||
}
|
||||
```
|
||||
|
||||
### How to do LongPolling public/private calls
|
||||
|
||||
```go
|
||||
// Exchanges will be abstracted out in further updates and examples will be
|
||||
// supplied then
|
||||
```
|
||||
|
||||
### Please click GoDocs chevron above to view current GoDoc information for this package
|
||||
{{template "contributions"}}
|
||||
{{template "donations"}}
|
||||
{{end}}
|
||||
@@ -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 |
|
||||
|
||||
@@ -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(¤cyPairOverride, "currency", "", "the currency to run tests against (where applicable)")
|
||||
|
||||
@@ -34,11 +34,6 @@
|
||||
},
|
||||
"exchanges": {
|
||||
"alphapoint": {},
|
||||
"anx": {
|
||||
"key": "Key",
|
||||
"secret": "Secret",
|
||||
"otpSecret": "-"
|
||||
},
|
||||
"binance": {
|
||||
"key": "Key",
|
||||
"secret": "Secret",
|
||||
|
||||
Reference in New Issue
Block a user