Exchange API modification monitor (#404)

* WIP

* Variable Name Changes and other PR Changes

* Name Changes and Error Checks

* WIP

* Some new functionality added and nits fixed

* WIP on Nits

* More trello functionality added and some PR changes

* Minor changes and linter fixes

* Errors Fixed and some PR Changes

* PR Changes

* WIP

* WIP

* Addition of Config

* WIP of Readme file

* Readme WIP

* Addition of ReadMe

* Linter Issues fixed

* Minor Errors fixed

* fixed test timeout issues and added api keys check for tests

* Errors fixed

* Nits WIP

* Nits fixed

* More efficient mutex usage

* Consts cleaned up

* Readme file fixed

* linter issues fixed

* format issues:

* readme updates and nits

* remove backup file and address nits

* backup file removed for real

* OkexOkcoin updates and linter fixes

* errors fixed

* Nits

* errors fixed

* formatting issues

* race conditions fixed

* files fixed

* go mod n go sum

* WIP adding rate limits

* Added rate limits

* Remove test vars

* go mod tidy

* improving readme file and 2digits for trello auto update

* Added space

* removed space

* addressing nits

* documentation update

* more nits

* board id check

* linter fixes

* test race fixed

* test file match

* errors fixed

* nitz

* LOWERCASE flags

* more nitz

* broken wip

* flag addition fixed

* error fixed

* documentation updated for adding exchange using flags

* something

* add comment

* nitz fixed

* pr changes

* added gemini exchange

* testfile saving changes

* nitz

* fixing done

* pr changes

* nits

* WIP

* minor error fix

* wip

* wip

* WIP

* pr changes

* pr changes

* pr changes

* nits

* nits fixed

* t.Fail removed

* nitz

* disable lakeBTC

* contributors fixed

contributors fixed

ALL THE NITZ

OMG

* OMGGG

ALL THE NITZ

OMG

* name change errors fixed

* linter issues fixed

* linterzz

* Added disabling feature for exchanges

* bug fix

* small feature added

* fixed

bug fix:

no keys

* nits

* test

* test2

* test 3

* linter fixed

* testing

* testing

* remove logs

* OMG

* bugfix

* cyam88888

* nits

* error handled

* minor nits

fixed createnewcheck issue

fixed createnewcheck issue

* functionality change

some functionality changes

no api keys 4u :D

* trello names thro config

* err check
This commit is contained in:
Adam
2020-04-01 11:15:10 +11:00
committed by GitHub
parent 4cb2f4603a
commit 7dd3f13c8d
74 changed files with 3587 additions and 74 deletions

3
.gitignore vendored
View File

@@ -29,3 +29,6 @@ cmd/gctcli/gctcli
*.out
sqlboiler.toml
sqlboiler.json
# GCT API Check
backup.json

View File

@@ -4,30 +4,32 @@ thrasher- | https://github.com/thrasher-
shazbert | https://github.com/shazbert
gloriousCode | https://github.com/gloriousCode
xtda | https://github.com/xtda
ermalguni | https://github.com/ermalguni
dependabot-preview[bot] | https://github.com/apps/dependabot-preview
ermalguni | https://github.com/ermalguni
vadimzhukck | https://github.com/vadimzhukck
140am | https://github.com/140am
marcofranssen | https://github.com/marcofranssen
MadCozBadd | https://github.com/MadCozBadd
cranktakular | https://github.com/cranktakular
woshidama323 | https://github.com/woshidama323
vazha | https://github.com/vazha
crackcomm | https://github.com/crackcomm
andreygrehov | https://github.com/andreygrehov
bretep | https://github.com/bretep
woshidama323 | https://github.com/woshidama323
vazha | https://github.com/vazha
Christian-Achilli | https://github.com/Christian-Achilli
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
azhang | https://github.com/azhang
blombard | https://github.com/blombard
Christian-Achilli | https://github.com/Christian-Achilli
CodeLingoBot | https://github.com/CodeLingoBot
CodeLingoTeam | https://github.com/CodeLingoTeam
Daanikus | https://github.com/Daanikus
daniel-cohen | https://github.com/daniel-cohen
merkeld | https://github.com/merkeld
DirectX | https://github.com/DirectX
frankzougc | https://github.com/frankzougc
idoall | https://github.com/idoall

View File

@@ -138,34 +138,36 @@ Binaries will be published once the codebase reaches a stable condition.
|User|Contribution Amount|
|--|--|
| [thrasher-](https://github.com/thrasher-) | 630 |
| [shazbert](https://github.com/shazbert) | 186 |
| [gloriousCode](https://github.com/gloriousCode) | 166 |
| [xtda](https://github.com/xtda) | 38 |
| [thrasher-](https://github.com/thrasher-) | 637 |
| [shazbert](https://github.com/shazbert) | 188 |
| [gloriousCode](https://github.com/gloriousCode) | 167 |
| [xtda](https://github.com/xtda) | 42 |
| [dependabot-preview[bot]](https://github.com/apps/dependabot-preview) | 23 |
| [ermalguni](https://github.com/ermalguni) | 14 |
| [dependabot-preview[bot]](https://github.com/apps/dependabot-preview) | 12 |
| [vadimzhukck](https://github.com/vadimzhukck) | 10 |
| [140am](https://github.com/140am) | 8 |
| [marcofranssen](https://github.com/marcofranssen) | 8 |
| [MadCozBadd](https://github.com/MadCozBadd) | 7 |
| [cranktakular](https://github.com/cranktakular) | 5 |
| [woshidama323](https://github.com/woshidama323) | 3 |
| [vazha](https://github.com/vazha) | 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 |
| [vazha](https://github.com/vazha) | 2 |
| [Christian-Achilli](https://github.com/Christian-Achilli) | 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 |
| [azhang](https://github.com/azhang) | 1 |
| [blombard](https://github.com/blombard) | 1 |
| [Christian-Achilli](https://github.com/Christian-Achilli) | 1 |
| [CodeLingoBot](https://github.com/CodeLingoBot) | 1 |
| [CodeLingoTeam](https://github.com/CodeLingoTeam) | 1 |
| [Daanikus](https://github.com/Daanikus) | 1 |
| [daniel-cohen](https://github.com/daniel-cohen) | 1 |
| [merkeld](https://github.com/merkeld) | 1 |
| [DirectX](https://github.com/DirectX) | 1 |
| [frankzougc](https://github.com/frankzougc) | 1 |
| [idoall](https://github.com/idoall) | 1 |

132
cmd/apichecker/README.md Normal file
View File

@@ -0,0 +1,132 @@
# GoCryptoTrader package Apichecker
<img src="https://github.com/thrasher-corp/gocryptotrader/blob/master/web/src/assets/page-logo.png?raw=true" width="350px" height="350px" hspace="70">
[![Build Status](https://travis-ci.org/thrasher-corp/gocryptotrader.svg?branch=master)](https://travis-ci.org/thrasher-corp/gocryptotrader)
[![Software License](https://img.shields.io/badge/License-MIT-orange.svg?style=flat-square)](https://github.com/thrasher-corp/gocryptotrader/blob/master/LICENSE)
[![GoDoc](https://godoc.org/github.com/thrasher-corp/gocryptotrader?status.svg)](https://godoc.org/github.com/thrasher-corp/gocryptotrader/cmd/apichecker)
[![Coverage Status](http://codecov.io/github/thrasher-corp/gocryptotrader/coverage.svg?branch=master)](http://codecov.io/github/thrasher-corp/gocryptotrader?branch=master)
[![Go Report Card](https://goreportcard.com/badge/github.com/thrasher-corp/gocryptotrader)](https://goreportcard.com/report/github.com/thrasher-corp/gocryptotrader)
This apichecker package is part of the GoCryptoTrader codebase.
## This is still in active development
You can track ideas, planned features and what's in progress on this Trello board: [https://trello.com/b/ZAhMhpOy/gocryptotrader](https://trello.com/b/ZAhMhpOy/gocryptotrader).
Join our slack to discuss all things related to GoCryptoTrader! [GoCryptoTrader Slack](https://join.slack.com/t/gocryptotrader/shared_invite/enQtNTQ5NDAxMjA2Mjc5LTc5ZDE1ZTNiOGM3ZGMyMmY1NTAxYWZhODE0MWM5N2JlZDk1NDU0YTViYzk4NTk3OTRiMDQzNGQ1YTc4YmRlMTk)
## Current Features for apichecker
+ Checks for API updates
+ Can automatically update Trello checklist for the updates required
+ Supports trello integration
#### This tool tracks changes in exchange API documentation
#### Keeps track of all the updates using the GoCryptoTrader trello board
Be aware, this tool will:
- Automatically update the live trello board if API keys and trello information are provided.
- Automatically update the main json updates file, however a backup of the copy before the updates will be stored.
## Usage
+ To run a real check for updates, parse Trello API info as flags or add them to the updates.json file and use the following command from apichecker folder in GCT:
###### Linux/OSX
GoCryptoTrader is built using [Go Modules](https://github.com/golang/go/wiki/Modules) and requires Go 1.11 or above
Using Go Modules you now clone this repository **outside** your GOPATH
```bash
git clone https://github.com/thrasher-corp/gocryptotrader.git
cd gocryptotrader/cmd/apichecker
go build
./apichecker
```
###### Windows
```bash
git clone https://github.com/thrasher-corp/gocryptotrader.git
cd gocryptotrader\cmd\apichecker
go build && apichecker.exe
```
+ Upon addition of a new exchange, to update Trello checklist and to add the exchange to updates.json the following would need to be done:
###### HTML Scraping method:
HTMLScrapingData is a struct which contains the necessary information to scrape data from the given path website. Not all the elements of HTMLScrapingData are necessary, its all dependant on site where information is being extracted from. Regexp is used to capture necessary bits of data using r.FindString() where r is the declared regular expression. If update dates data is available, DateFormat is used to convert the dates to a more standard format which can then be used for further comparisons of which update is most recent.
```go
func TestAdd(t *testing.T) {
t.Parallel()
data := HTMLScrapingData{TokenData: "h1",
Key: "id",
Val: "revision-history",
TokenDataEnd: "table",
TextTokenData: "td",
DateFormat: "2006/01/02",
RegExp: "^20(\\d){2}/(\\d){2}/(\\d){2}$",
CheckString: "2019/11/15",
Path: "https://docs.gemini.com/rest-api/#revision-history"}
err := Add("Gemini", htmlScrape, data.Path, data, true, &testConfigData)
if err != nil {
t.Error(err)
}
}
```
###### Github SHA Check Method:
```go
func TestAdd(t *testing.T) {
t.Parallel()
data := GithubData{Repo: "LBank-exchange/lbank-official-api-docs"}
err := Add("Lbank", github, fmt.Sprintf(githubPath, data.Repo), data, false, &configData)
if err != nil {
t.Error(err)
}
}
```
###### Add using flags:
```bash
apichecker.exe -add=true -key=id -val=revision-history -tokendata=h1 -tokendataend=table -texttokendata=td -dateformat=2006/01/02 -checktype="HTML String Check" -regexp="^20(\d){2}/(\d){2}/(\d){2}$" -path="https://docs.gemini.com/rest-api/#revision-history" -exchangename=Gemini
```
+ If all the authentication variables for trello are set trello checklist will be automatically updated with the format of 'Exchange Name (integer of how many updates have been released since the exchange API was last worked on):
- To acquire your trello key and access token please login into trello using the following link and follow the steps: https://trello.com/app-key
- To acquire BoardID, ListID, CardID and ChecklistID inbuilt functions can be used such as trelloGetAllLists()
- To create a new list, card, checklist, and to populate the the checklist --create flag can be used.
- To create a new check within a checklist, an inbuilt function within apichecker can be used: trelloCreateNewCheck
- For the first time running the application & to create a list, card and checklist use the following:
```bash
apichecker.exe --create -apikey="insertkeyhere" -apitoken="inserttokenhere" -boardname="insertboardnamehere"
```
### Please click GoDocs chevron above to view current GoDoc information for this package
## Contribution
Please feel free to submit any pull requests or suggest any desired features to be added.
When submitting a PR, please abide by our coding guidelines:
+ Code must adhere to the official Go [formatting](https://golang.org/doc/effective_go.html#formatting) guidelines (i.e. uses [gofmt](https://golang.org/cmd/gofmt/)).
+ Code must be documented adhering to the official Go [commentary](https://golang.org/doc/effective_go.html#commentary) guidelines.
+ Code must adhere to our [coding style](https://github.com/thrasher-corp/gocryptotrader/blob/master/doc/coding_style.md).
+ Pull requests need to be based on and opened against the `master` branch.
## Donations
<img src="https://github.com/thrasher-corp/gocryptotrader/blob/master/web/src/assets/donate.png?raw=true" hspace="70">
If this framework helped you in any way, or you would like to support the developers working on it, please donate Bitcoin to:
***bc1qk0jareu4jytc0cfrhr5wgshsq8282awpavfahc***

1598
cmd/apichecker/apicheck.go Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,704 @@
package main
import (
"encoding/json"
"io/ioutil"
"os"
"reflect"
"testing"
"github.com/thrasher-corp/gocryptotrader/common/convert"
exchange "github.com/thrasher-corp/gocryptotrader/exchanges"
"github.com/thrasher-corp/gocryptotrader/log"
)
var (
testAPIKey = ""
testAPIToken = ""
testChecklistID = ""
testCardID = ""
testListID = ""
testBoardID = ""
testBoardName = ""
canTestMainFile = false
)
func TestMain(m *testing.M) {
setTestVars()
testMode = true
c := log.GenDefaultSettings()
c.Enabled = convert.BoolPtr(true)
log.GlobalLogConfig = &c
log.Infoln(log.Global, "set verbose to true for more detailed output")
var err error
configData, err = readFileData(jsonFile)
if err != nil {
log.Error(log.Global, err)
os.Exit(1)
}
testConfigData, err = readFileData(testJSONFile)
if err != nil {
log.Error(log.Global, err)
os.Exit(1)
}
usageData = testConfigData
setTestVars()
defer os.Exit(m.Run())
defer func() {
err := removeTestFileVars()
if err != nil {
log.Error(log.Global, err)
os.Exit(1)
}
}()
}
func areTestAPIKeysSet() bool {
return (testAPIKey != "" && testAPIToken != "")
}
func setTestVars() {
if !canUpdateTrello() {
apiKey = testAPIKey
apiToken = testAPIToken
trelloChecklistID = testChecklistID
trelloCardID = testCardID
trelloListID = testListID
trelloBoardID = testBoardID
trelloBoardName = testBoardName
return
}
}
func removeTestFileVars() error {
a, err := readFileData(testJSONFile)
if err != nil {
return err
}
a.BoardID = ""
a.CardID = ""
a.ChecklistID = ""
a.Key = ""
a.ListID = ""
a.Token = ""
file, err := json.MarshalIndent(&a, "", " ")
if err != nil {
return err
}
return ioutil.WriteFile(testJSONFile, file, 0770)
}
func canTestTrello() bool {
if testAPIKey != "" && testAPIToken != "" && testChecklistID != "" && testCardID != "" && testListID != "" && (testBoardID != "" || testBoardName != "") {
return true
}
return false
}
func TestCheckUpdates(t *testing.T) {
if !canUpdateTrello() || !canTestTrello() {
t.Skip()
}
err := checkUpdates(testJSONFile)
if err != nil {
t.Fatal(err)
}
}
func TestUpdateFile(t *testing.T) {
realConf, err := readFileData(jsonFile)
if err != nil {
t.Fatal(err)
}
configData = realConf
err = updateFile(testJSONFile)
if err != nil {
t.Fatal(err)
}
testConf, err := readFileData(testJSONFile)
if err != nil {
t.Fatal(err)
}
if !reflect.DeepEqual(realConf, testConf) {
t.Error("test file update failed")
}
}
func TestCheckExistingExchanges(t *testing.T) {
t.Parallel()
if !checkExistingExchanges("Kraken") {
t.Fatal("Kraken data not found")
}
}
func TestCheckChangeLog(t *testing.T) {
t.Parallel()
data := HTMLScrapingData{TokenData: "h1",
Key: "id",
Val: "revision-history",
TokenDataEnd: "table",
TextTokenData: "td",
DateFormat: "2006/01/02",
RegExp: `^20(\d){2}/(\d){2}/(\d){2}$`,
Path: "https://docs.gemini.com/rest-api/#revision-history"}
_, err := checkChangeLog(&data)
if err != nil {
t.Error(err)
}
}
func TestAdd(t *testing.T) {
t.Parallel()
data2 := HTMLScrapingData{TokenData: "a",
Key: "href",
Val: "./#change-change",
TokenDataEnd: "./#change-",
RegExp: `./#change-\d{8}`,
Path: "wrongpath"}
err := addExch("WrongExch", htmlScrape, data2, false)
if err == nil {
t.Log("expected an error due to invalid path being parsed in")
}
}
func TestHTMLScrapeGemini(t *testing.T) {
t.Parallel()
data := HTMLScrapingData{TokenData: "h1",
Key: "id",
Val: "revision-history",
TokenDataEnd: "table",
TextTokenData: "td",
DateFormat: "2006/01/02",
RegExp: "^20(\\d){2}/(\\d){2}/(\\d){2}$",
CheckString: "2019/11/15",
Path: "https://docs.gemini.com/rest-api/#revision-history"}
_, err := htmlScrapeDefault(&data)
if err != nil {
t.Error(err)
}
}
func TestHTMLScrapeHuobi(t *testing.T) {
t.Parallel()
data := HTMLScrapingData{TokenData: "h1",
Key: "id",
Val: "change-log",
TokenDataEnd: "h2",
TextTokenData: "td",
DateFormat: "2006.01.02 15:04",
RegExp: "^20(\\d){2}.(\\d){2}.(\\d){2} (\\d){2}:(\\d){2}$",
CheckString: "2019.12.27 19:00",
Path: "https://huobiapi.github.io/docs/spot/v1/en/#change-log"}
_, err := htmlScrapeDefault(&data)
if err != nil {
t.Error(err)
}
}
func TestHTMLScrapeCoinbasepro(t *testing.T) {
t.Parallel()
data := HTMLScrapingData{TokenData: "h1",
Key: "id",
Val: "changelog",
TokenDataEnd: "ul",
TextTokenData: "strong",
DateFormat: "01/02/06",
RegExp: "^(\\d){1,2}/(\\d){1,2}/(\\d){2}$",
CheckString: "12/16/19",
Path: "https://docs.pro.coinbase.com/#changelog"}
_, err := htmlScrapeDefault(&data)
if err != nil {
t.Error(err)
}
}
func TestHTMLScrapeBitfinex(t *testing.T) {
t.Parallel()
data := HTMLScrapingData{DateFormat: "2006-01-02",
RegExp: `section-v-(2\d{3}-\d{1,2}-\d{1,2})`,
Path: "https://docs.bitfinex.com/docs/changelog"}
_, err := htmlScrapeBitfinex(&data)
if err != nil {
t.Error(err)
}
}
func TestHTMLScrapeBitmex(t *testing.T) {
t.Parallel()
data := HTMLScrapingData{TokenData: "h4",
Key: "id",
Val: "",
TokenDataEnd: "",
TextTokenData: "",
DateFormat: "Jan-2-2006",
RegExp: `([A-Z]{1}[a-z]{2}-\d{1,2}-2\d{3})`,
Path: "https://www.bitmex.com/static/md/en-US/apiChangelog"}
_, err := htmlScrapeBitmex(&data)
if err != nil {
t.Error(err)
}
}
func TestHTMLScrapeHitBTC(t *testing.T) {
t.Parallel()
data := HTMLScrapingData{RegExp: `newest version \d{1}.\d{1}`,
Path: "https://api.hitbtc.com/"}
_, err := htmlScrapeHitBTC(&data)
if err != nil {
t.Error(err)
}
}
func TestHTMLScrapeDefault(t *testing.T) {
t.Parallel()
data := HTMLScrapingData{TokenData: "h3",
Key: "id",
Val: "change-change",
TokenDataEnd: "section",
TextTokenData: "p",
DateFormat: "2006-01-02",
RegExp: "(2\\d{3}-\\d{1,2}-\\d{1,2})",
CheckString: "2019-04-28",
Path: "https://www.okcoin.com/docs/en/#change-change"}
_, err := htmlScrapeDefault(&data)
if err != nil {
t.Error(err)
}
}
func TestHTMLScrapeBTSE(t *testing.T) {
t.Parallel()
data := HTMLScrapingData{RegExp: `^version: \d{1}.\d{1}.\d{1}`,
Path: "https://api.btcmarkets.net/openapi/info/index.yaml"}
_, err := htmlScrapeBTSE(&data)
if err != nil {
t.Error(err)
}
}
func TestHTMLScrapeBTCMarkets(t *testing.T) {
t.Parallel()
data := HTMLScrapingData{RegExp: `^version: \d{1}.\d{1}.\d{1}`,
Path: "https://api.btcmarkets.net/openapi/info/index.yaml"}
_, err := htmlScrapeBTCMarkets(&data)
if err != nil {
t.Error(err)
}
}
func TestHTMLScrapeBitflyer(t *testing.T) {
t.Parallel()
data := HTMLScrapingData{TokenData: "p",
TokenDataEnd: "h3",
TextTokenData: "code",
RegExp: `^https://api.bitflyer.com/v\d{1}/$`,
Path: "https://lightning.bitflyer.com/docs?lang=en"}
_, err := htmlScrapeBitflyer(&data)
if err != nil {
t.Error(err)
}
}
func TestHTMLScrapeANX(t *testing.T) {
t.Parallel()
data := HTMLScrapingData{RegExp: `ANX Exchange API v\d{1}`,
Path: "https://anxv3.docs.apiary.io/#reference/quickstart-catalog"}
_, err := htmlScrapeANX(&data)
if err != nil {
t.Error(err)
}
}
func TestHTMLPoloniex(t *testing.T) {
t.Parallel()
data := HTMLScrapingData{TokenData: "h1",
Key: "id",
Val: "changelog",
TokenDataEnd: "div",
TextTokenData: "h2",
DateFormat: "2006-01-02",
RegExp: `(2\d{3}-\d{1,2}-\d{1,2})`,
Path: "https://docs.poloniex.com/#changelog"}
_, err := htmlScrapePoloniex(&data)
if err != nil {
t.Error(err)
}
}
func TestHTMLItBit(t *testing.T) {
t.Parallel()
data := HTMLScrapingData{TokenData: "a",
Key: "href",
Val: "changelog",
TokenDataEnd: "div",
TextTokenData: "h2",
DateFormat: "2006-01-02",
RegExp: `^https://api.itbit.com/v\d{1}/$`,
Path: "https://api.itbit.com/docs"}
_, err := htmlScrapeItBit(&data)
if err != nil {
t.Error(err)
}
}
func TestHTMLLakeBTC(t *testing.T) {
t.Parallel()
data := HTMLScrapingData{TokenData: "div",
Key: "class",
Val: "flash-message",
TokenDataEnd: "h2",
TextTokenData: "h1",
DateFormat: "",
RegExp: `APIv\d{1}`,
Path: "https://www.lakebtc.com/s/api_v2"}
_, err := htmlScrapeLakeBTC(&data)
if err != nil {
t.Error(err)
}
}
func TestHTMLScrapeExmo(t *testing.T) {
t.Parallel()
data := HTMLScrapingData{RegExp: `Last updated on [\s\S]*, 20\d{2}`,
Path: "https://exmo.com/en/api/"}
_, err := htmlScrapeExmo(&data)
if err != nil {
t.Error(err)
}
}
func TestHTMLBitstamp(t *testing.T) {
t.Parallel()
data := HTMLScrapingData{RegExp: `refer to the v\d{1} API for future references.`,
Path: "https://www.bitstamp.net/api/"}
_, err := htmlScrapeBitstamp(&data)
if err != nil {
t.Error(err)
}
}
func TestHTMLKraken(t *testing.T) {
t.Parallel()
data := HTMLScrapingData{TokenData: "h3",
TokenDataEnd: "p",
TextTokenData: "p",
RegExp: `URL: https://api.kraken.com/\d{1}/private/Balance`,
Path: "https://www.kraken.com/features/api"}
_, err := htmlScrapeKraken(&data)
if err != nil {
t.Error(err)
}
}
func TestHTMLAlphaPoint(t *testing.T) {
t.Parallel()
data := HTMLScrapingData{TokenData: "h1",
Key: "id",
Val: "introduction",
TokenDataEnd: "blockquote",
TextTokenData: "h3",
RegExp: `revised-calls-\d{1}-\d{1}-\d{1}-gt-\d{1}-\d{1}-\d{1}`,
Path: "https://alphapoint.github.io/slate/#introduction"}
_, err := htmlScrapeAlphaPoint(&data)
if err != nil {
t.Error(err)
}
}
func TestHTMLYobit(t *testing.T) {
t.Parallel()
data := HTMLScrapingData{TokenData: "h2",
Key: "id",
Path: "https://www.yobit.net/en/api/"}
_, err := htmlScrapeYobit(&data)
if err != nil {
t.Error(err)
}
}
func TestHTMLScrapeLocalBitcoins(t *testing.T) {
t.Parallel()
data := HTMLScrapingData{TokenData: "div",
Key: "class",
Val: "col-md-12",
RegExp: `col-md-12([\s\S]*?)clearfix`,
Path: "https://localbitcoins.com/api-docs/"}
_, err := htmlScrapeLocalBitcoins(&data)
if err != nil {
t.Error(err)
}
}
func TestHTMLScrapeOk(t *testing.T) {
t.Parallel()
data := HTMLScrapingData{TokenData: "a",
Key: "href",
Val: "./#change-change",
TokenDataEnd: "./#change-",
RegExp: `./#change-\d{8}`,
Path: "https://www.okex.com/docs/en/"}
_, err := htmlScrapeOk(&data)
if err != nil {
t.Error(err)
}
}
func TestUpdate(t *testing.T) {
t.Parallel()
var exchCheck, updatedExch HTMLScrapingData
for x := range configData.Exchanges {
if configData.Exchanges[x].Name == "Exmo" {
exchCheck = *configData.Exchanges[x].Data.HTMLData
}
}
info := ExchangeInfo{Name: "Exmo",
CheckType: "HTML String Check",
Data: &CheckData{HTMLData: &HTMLScrapingData{RegExp: `Last updated on [\s\S]*, 20\d{2}`,
Path: "https://exmo.com/en/api/"},
},
}
updatedExchs := update("Exmo", configData.Exchanges, info)
for y := range updatedExchs {
if updatedExchs[y].Name == "Exmo" {
updatedExch = *updatedExchs[y].Data.HTMLData
}
}
if updatedExch == exchCheck {
t.Fatal("update failed")
}
}
func TestCheckMissingExchanges(t *testing.T) {
t.Parallel()
a := checkMissingExchanges()
if len(a) > len(exchange.Exchanges) {
t.Fatal("invalid response")
}
}
func TestNameUpdates(t *testing.T) {
t.Parallel()
tester := []struct {
Name string
Status string
ExpectedName string
ErrorExpected bool
}{
{
Name: "incorrectname",
Status: "incomplete",
ErrorExpected: true,
},
{
Name: "Gemini 2 2",
Status: "incomplete",
ErrorExpected: false,
},
{
Name: " Gemini 23",
Status: "incomplete",
ErrorExpected: true,
},
{
Name: "Gemini 123",
Status: "complete",
ExpectedName: "Gemini 1",
ErrorExpected: false,
},
{
Name: "Gemini",
Status: "complete",
ExpectedName: "Gemini 1",
ErrorExpected: false,
},
{
Name: "Gemini 24 ",
Status: "incomplete",
ErrorExpected: false,
},
}
for x := range tester {
r, err := nameStateChanges(tester[x].Name, tester[x].Status)
if r != tester[x].ExpectedName && err != nil && !tester[x].ErrorExpected {
t.Errorf("%d failed, expected %v, %v, got: %v, %v\n", x,
tester[x].ExpectedName,
tester[x].ErrorExpected,
r,
err)
}
}
}
func TestReadFileData(t *testing.T) {
t.Parallel()
_, err := readFileData(testJSONFile)
if err != nil {
t.Error(err)
}
}
func TestGetSha(t *testing.T) {
t.Parallel()
_, err := getSha("binance-exchange/binance-official-api-docs")
if err != nil {
t.Error(err)
}
}
func TestCheckBoardID(t *testing.T) {
if !areTestAPIKeysSet() {
t.Skip()
}
a, err := trelloCheckBoardID()
if err != nil {
t.Error(err)
}
if a != true {
t.Error("no match found for the given boardID")
}
}
func TestTrelloGetLists(t *testing.T) {
if !areTestAPIKeysSet() {
t.Skip()
}
_, err := trelloGetLists()
if err != nil {
t.Error(err)
}
}
func TestGetAllCards(t *testing.T) {
if !areTestAPIKeysSet() {
t.Skip()
}
_, err := trelloGetAllCards()
if err != nil {
t.Error(err)
}
}
func TestGetAllChecklists(t *testing.T) {
if !areTestAPIKeysSet() {
t.Skip()
}
_, err := trelloGetAllChecklists()
if err != nil {
t.Error(err)
}
}
func TestTrelloGetAllBoards(t *testing.T) {
if !areTestAPIKeysSet() {
t.Skip()
}
if trelloBoardID != "" || testBoardName != "" {
t.Skip()
}
_, err := trelloGetBoardID()
if err != nil {
t.Error(err)
}
}
func TestCreateNewList(t *testing.T) {
if !areTestAPIKeysSet() {
t.Skip()
}
err := trelloCreateNewList()
if err != nil {
t.Error(err)
}
}
func TestTrelloCreateNewCard(t *testing.T) {
if !areTestAPIKeysSet() {
t.Skip()
}
err := trelloCreateNewCard()
if err != nil {
t.Error(err)
}
}
func TestCreateNewChecklist(t *testing.T) {
if !areTestAPIKeysSet() {
t.Skip()
}
err := trelloCreateNewChecklist()
if err != nil {
t.Error(err)
}
}
func TestWriteAuthVars(t *testing.T) {
if canTestMainFile {
trelloCardID = "jdsfl"
err := writeAuthVars(testMode)
if err != nil {
t.Log(err)
}
}
}
func TestCreateNewCheck(t *testing.T) {
if !canTestTrello() {
t.Skip()
}
err := trelloCreateNewCheck("Gemini")
if err != nil {
t.Error(err)
}
}
func TestUpdateCheckItem(t *testing.T) {
if !canTestTrello() {
t.Skip()
}
a, err := trelloGetChecklistItems()
if err != nil {
t.Error(err)
}
var checkID string
for x := range a.CheckItems {
if a.CheckItems[x].Name == "Gemini 1" {
checkID = a.CheckItems[x].ID
}
}
err = trelloUpdateCheckItem(checkID, "Gemini 1", "incomplete")
if err != nil {
t.Error(err)
}
}
func TestGetChecklistItems(t *testing.T) {
if !canTestTrello() {
t.Skip()
}
_, err := trelloGetChecklistItems()
if err != nil {
t.Error(err)
}
}
func TestSetAuthVars(t *testing.T) {
t.Parallel()
apiKey = ""
configData.Key = ""
apiToken = ""
configData.Token = ""
setAuthVars()
if usageData.Key != "" && usageData.Token != "" {
t.Errorf("incorrect key and token values")
}
}
func TestTrelloDeleteCheckItems(t *testing.T) {
if !areTestAPIKeysSet() {
t.Skip()
}
err := trelloDeleteCheckItem("")
if err != nil {
t.Error(err)
}
}

View File

@@ -0,0 +1,100 @@
package main
// ShaResponse stores raw response from the queries
type ShaResponse struct {
ShaResp string `json:"sha"`
}
// ExchangeInfo stores exchange info
type ExchangeInfo struct {
Name string
CheckType string
Data *CheckData `json:",omitempty"`
Disabled bool
}
// CheckData is the necessary data required for checking updates
type CheckData struct {
HTMLData *HTMLScrapingData `json:",omitempty"`
GitHubData *GithubData `json:",omitempty"`
}
// HTMLScrapingData stores input required for extracting latest update data using HTML
type HTMLScrapingData struct {
TokenData string `json:",omitempty"`
Key string `json:",omitempty"`
Val string `json:",omitempty"`
TokenDataEnd string `json:",omitempty"`
TextTokenData string `json:",omitempty"`
DateFormat string `json:",omitempty"`
RegExp string `json:",omitempty"`
CheckString string `json:",omitempty"`
Path string `json:",omitempty"`
}
// GithubData stores input required for extracting latest update data
type GithubData struct {
Repo string `json:",omitempty"`
Sha string `json:",omitempty"`
}
// ListData stores trello lists' required data
type ListData struct {
ID string `json:"id"`
Name string `json:"name"`
IDBoard string `json:"idBoard"`
}
// CardFill contains data necessary to create a new card
type CardFill struct {
Name string
Desc string
Pos string
Due string
ListID string
MembersID string
LabelsID string
URLSource string
}
// ItemData stores data of items on a given checklist
type ItemData struct {
State string `json:"state"`
ID string `json:"id"`
Name string `json:"name"`
Position int64 `json:"pos"`
}
// ChecklistItemData stores items on a given checklist
type ChecklistItemData struct {
ID string `json:"id"`
Name string `json:"name"`
CheckItems []ItemData `json:"checkItems"`
}
// MembersData saves member's data which includes the boards accessible
type MembersData struct {
Name string `json:"name"`
ShortID string `json:"shortlink"`
ID string `json:"id"`
}
// Config is a format for storing update data
type Config struct {
CardID string `json:"CardID"`
ChecklistID string `json:"ChecklistID"`
ListID string `json:"ListID"`
BoardID string `json:"BoardID"`
Key string `json:"Key"`
Token string `json:"Token"`
CreateCardName string
CreateListName string
CreateChecklistName string
Exchanges []ExchangeInfo `json:"Exchanges"`
}
// TrelloData stores data on a given item (board, list, card)
type TrelloData struct {
ID string `json:"id"`
Name string `json:"name"`
}

View File

@@ -0,0 +1,430 @@
{
"CardID": "",
"ChecklistID": "",
"ListID": "",
"BoardID": "",
"Key": "",
"Token": "",
"CreateCardName": "",
"CreateListName": "",
"CreateChecklistName": "",
"Exchanges": [
{
"Name": "Huobi",
"CheckType": "HTML String Check",
"Data": {
"HTMLData": {
"TokenData": "h1",
"Key": "id",
"Val": "change-log",
"TokenDataEnd": "h2",
"TextTokenData": "td",
"DateFormat": "2006.01.02 15:04",
"RegExp": "^20(\\d){2}.(\\d){2}.(\\d){2} (\\d){2}:(\\d){2}$",
"CheckString": "2019.12.27 19:00",
"Path": "https://huobiapi.github.io/docs/spot/v1/en/#change-log"
}
},
"Disabled": false
},
{
"Name": "Coinbasepro",
"CheckType": "HTML String Check",
"Data": {
"HTMLData": {
"TokenData": "h1",
"Key": "id",
"Val": "changelog",
"TokenDataEnd": "ul",
"TextTokenData": "strong",
"DateFormat": "01/02/06",
"RegExp": "^(\\d){1,2}/(\\d){1,2}/(\\d){2}$",
"CheckString": "2/20/20",
"Path": "https://docs.pro.coinbase.com/#changelog"
}
},
"Disabled": false
},
{
"Name": "Binance",
"CheckType": "GitHub Sha Check",
"Data": {
"GitHubData": {
"Repo": "binance-exchange/binance-official-api-docs",
"Sha": "4878d48adc0075669ba85033b0e2d40c2876cf56"
}
},
"Disabled": false
},
{
"Name": "Bithumb",
"CheckType": "GitHub Sha Check",
"Data": {
"GitHubData": {
"Repo": "bithumb-pro/bithumb.pro-official-api-docs",
"Sha": "6293502c7736ab4971491978225ef4d104bdff31"
}
},
"Disabled": false
},
{
"Name": "Bittrex",
"CheckType": "GitHub Sha Check",
"Data": {
"GitHubData": {
"Repo": "Bittrex/bittrex.github.io",
"Sha": "fc1ea9c10c48aa82c4dc2c6be74887ef61b5b31b"
}
},
"Disabled": false
},
{
"Name": "CoinbeneSpot",
"CheckType": "GitHub Sha Check",
"Data": {
"GitHubData": {
"Repo": "Coinbene/API-SPOT-v2-Documents",
"Sha": "e9135a782ba6016bcf008778be368882ad7c784d"
}
},
"Disabled": false
},
{
"Name": "CoinbeneSwap",
"CheckType": "GitHub Sha Check",
"Data": {
"GitHubData": {
"Repo": "Coinbene/API-SWAP-Documents",
"Sha": "6b7871dae4d2af028a33dde956fbce101e2f9acd"
}
},
"Disabled": false
},
{
"Name": "Coinut",
"CheckType": "GitHub Sha Check",
"Data": {
"GitHubData": {
"Repo": "coinut/api",
"Sha": "6936dab4d2beba3c8245a603aebf3f545ebcf3f9"
}
},
"Disabled": false
},
{
"Name": "Gateio",
"CheckType": "GitHub Sha Check",
"Data": {
"GitHubData": {
"Repo": "gateio/gateapi-go",
"Sha": "81e2f1bb92c5406853139ae054bbda599483e127"
}
},
"Disabled": false
},
{
"Name": "Lbank",
"CheckType": "GitHub Sha Check",
"Data": {
"GitHubData": {
"Repo": "LBank-exchange/lbank-official-api-docs",
"Sha": "85e7bb83f03d4239c3aad26cabb997a1a2bbb3d1"
}
},
"Disabled": false
},
{
"Name": "BTSE",
"CheckType": "HTML String Check",
"Data": {
"HTMLData": {
"TokenData": "h1",
"Key": "id",
"Val": "btse-spot-api",
"TokenDataEnd": "blockquote",
"TextTokenData": "h1",
"RegExp": "^BTSE Spot API v(\\d){1}.(\\d){1}$",
"CheckString": "BTSE Spot API v3.0.2",
"Path": "https://www.btse.com/apiexplorer/spot/#btse-spot-api"
}
},
"Disabled": false
},
{
"Name": "Bitfinex",
"CheckType": "HTML String Check",
"Data": {
"HTMLData": {
"TokenData": "h1",
"Key": "class",
"Val": "header-scroll",
"TokenDataEnd": "p",
"DateFormat": "2006-01-02",
"RegExp": "section-v-(2\\d{3}-\\d{1,2}-\\d{1,2})",
"CheckString": "2019-08-19",
"Path": "https://docs.bitfinex.com/docs/changelog"
}
},
"Disabled": false
},
{
"Name": "ANX",
"CheckType": "HTML String Check",
"Data": {
"HTMLData": {
"RegExp": "ANX Exchange API v\\d{1}",
"CheckString": "ANX Exchange API v3",
"Path": "https://anxv3.docs.apiary.io/"
}
},
"Disabled": false
},
{
"Name": "Poloniex",
"CheckType": "HTML String Check",
"Data": {
"HTMLData": {
"TokenData": "h1",
"Key": "id",
"Val": "changelog",
"TokenDataEnd": "div",
"TextTokenData": "h2",
"DateFormat": "2006-01-02",
"RegExp": "(2\\d{3}-\\d{1,2}-\\d{1,2})",
"CheckString": "2020-03-24",
"Path": "https://docs.poloniex.com/#changelog"
}
},
"Disabled": false
},
{
"Name": "ItBit",
"CheckType": "HTML String Check",
"Data": {
"HTMLData": {
"TokenData": "a",
"Key": "href",
"RegExp": "^https://api.itbit.com/v\\d{1}/$",
"CheckString": "https://api.itbit.com/v1/",
"Path": "https://api.itbit.com/docs"
}
},
"Disabled": false
},
{
"Name": "Bitmex",
"CheckType": "HTML String Check",
"Data": {
"HTMLData": {
"TokenData": "h4",
"Key": "id",
"DateFormat": "Jan-2-2006",
"RegExp": "([A-Z]{1}[a-z]{2}-\\d{1,2}-2\\d{3})",
"CheckString": "Dec-16-2019",
"Path": "https://www.bitmex.com/static/md/en-US/apiChangelog"
}
},
"Disabled": false
},
{
"Name": "HitBTC",
"CheckType": "HTML String Check",
"Data": {
"HTMLData": {
"TokenData": "h1",
"Key": "id",
"Val": "about-companyname-api",
"TokenDataEnd": "h2",
"TextTokenData": "p",
"RegExp": "newest version \\d{1}.\\d{1}",
"CheckString": "newest version 2.0",
"Path": "https://api.hitbtc.com/"
}
},
"Disabled": false
},
{
"Name": "BTC Markets",
"CheckType": "HTML String Check",
"Data": {
"HTMLData": {
"RegExp": "^version: \\d{1}.\\d{1}.\\d{1}",
"CheckString": "version: 3.0.0",
"Path": "https://api.btcmarkets.net/openapi/info/index.yaml"
}
},
"Disabled": false
},
{
"Name": "Bitflyer",
"CheckType": "HTML String Check",
"Data": {
"HTMLData": {
"TokenData": "p",
"TokenDataEnd": "h3",
"TextTokenData": "code",
"RegExp": "^https://api.bitflyer.com/v\\d{1}/$",
"CheckString": "https://api.bitflyer.com/v1/",
"Path": "https://lightning.bitflyer.com/docs?lang=en"
}
},
"Disabled": false
},
{
"Name": "LakeBTC",
"CheckType": "HTML String Check",
"Data": {
"HTMLData": {
"TokenData": "div",
"Key": "class",
"Val": "flash-message",
"TokenDataEnd": "h2",
"TextTokenData": "h1",
"RegExp": "APIv\\d{1}",
"CheckString": "de2491b95ef1f6ea334247b13f0f14f6816fb5961cc63acc0542b07fc0336dd8",
"Path": "https://www.lakebtc.com/s/api_v2"
}
},
"Disabled": false
},
{
"Name": "Exmo",
"CheckType": "HTML String Check",
"Data": {
"HTMLData": {
"RegExp": "Last updated on [\\s\\S]*, 20\\d{2}",
"CheckString": "Last updated on December, 16th, 2019",
"Path": "https://exmo.com/en/api/"
}
},
"Disabled": false
},
{
"Name": "Kraken",
"CheckType": "HTML String Check",
"Data": {
"HTMLData": {
"TokenData": "h3",
"TokenDataEnd": "p",
"TextTokenData": "p",
"RegExp": "URL: https://api.kraken.com/\\d{1}/private/Balance",
"CheckString": "URL: https://api.kraken.com/0/private/Balance",
"Path": "https://www.kraken.com/features/api"
}
},
"Disabled": false
},
{
"Name": "Bitstamp",
"CheckType": "HTML String Check",
"Data": {
"HTMLData": {
"TokenData": "h2",
"Key": "class",
"Val": "text-subtitle mt48",
"TokenDataEnd": "h4",
"TextTokenData": "p",
"RegExp": "refer to the v\\d{1} API for future references.",
"CheckString": "refer to the v2 API for future references.",
"Path": "https://www.bitstamp.net/api/"
}
},
"Disabled": false
},
{
"Name": "AlphaPoint",
"CheckType": "HTML String Check",
"Data": {
"HTMLData": {
"TokenData": "h1",
"Key": "id",
"Val": "introduction",
"TokenDataEnd": "blockquote",
"TextTokenData": "h3",
"RegExp": "revised-calls-\\d{1}-\\d{1}-\\d{1}-gt-\\d{1}-\\d{1}-\\d{1}",
"CheckString": "revised-calls-3-3-2-gt-3-3-3",
"Path": "https://alphapoint.github.io/slate/#introduction"
}
},
"Disabled": false
},
{
"Name": "Yobit",
"CheckType": "HTML String Check",
"Data": {
"HTMLData": {
"TokenData": "h2",
"Key": "id",
"CheckString": "v3",
"Path": "https://www.yobit.net/en/api/"
}
},
"Disabled": false
},
{
"Name": "LocalBitcoins",
"CheckType": "HTML String Check",
"Data": {
"HTMLData": {
"TokenData": "div",
"Key": "class",
"Val": "col-md-12",
"RegExp": "col-md-12([\\s\\S]*?)clearfix",
"CheckString": "37a144dc619776b87c098da5a88bef7fed6c8a7cea2d4b9a38c96750726c93ff",
"Path": "https://localbitcoins.com/api-docs/"
}
},
"Disabled": false
},
{
"Name": "OkCoin International",
"CheckType": "HTML String Check",
"Data": {
"HTMLData": {
"TokenData": "a",
"Key": "href",
"Val": "./#change-change",
"TokenDataEnd": "./#change-",
"RegExp": "./#change-\\d{8}",
"CheckString": "20200229",
"Path": "https://www.okcoin.com/docs/en/#change-change"
}
},
"Disabled": false
},
{
"Name": "Okex",
"CheckType": "HTML String Check",
"Data": {
"HTMLData": {
"TokenData": "a",
"Key": "href",
"Val": "./#change-change",
"TokenDataEnd": "./#change-",
"RegExp": "./#change-\\d{8}",
"CheckString": "20200331",
"Path": "https://www.okex.com/docs/en/#change-change"
}
},
"Disabled": false
},
{
"Name": "Gemini",
"CheckType": "HTML String Check",
"Data": {
"HTMLData": {
"TokenData": "h1",
"Key": "id",
"Val": "revision-history",
"TokenDataEnd": "table",
"TextTokenData": "td",
"DateFormat": "2006/01/02",
"RegExp": "^20(\\d){2}/(\\d){2}/(\\d){2}$",
"CheckString": "2020/03/05",
"Path": "https://docs.gemini.com/rest-api/#revision-history"
}
},
"Disabled": false
}
]
}

430
cmd/apichecker/updates.json Normal file
View File

@@ -0,0 +1,430 @@
{
"CardID": "",
"ChecklistID": "",
"ListID": "",
"BoardID": "",
"Key": "",
"Token": "",
"CreateCardName": "",
"CreateListName": "",
"CreateChecklistName": "",
"Exchanges": [
{
"Name": "Huobi",
"CheckType": "HTML String Check",
"Data": {
"HTMLData": {
"TokenData": "h1",
"Key": "id",
"Val": "change-log",
"TokenDataEnd": "h2",
"TextTokenData": "td",
"DateFormat": "2006.01.02 15:04",
"RegExp": "^20(\\d){2}.(\\d){2}.(\\d){2} (\\d){2}:(\\d){2}$",
"CheckString": "2019.12.27 19:00",
"Path": "https://huobiapi.github.io/docs/spot/v1/en/#change-log"
}
},
"Disabled": false
},
{
"Name": "Coinbasepro",
"CheckType": "HTML String Check",
"Data": {
"HTMLData": {
"TokenData": "h1",
"Key": "id",
"Val": "changelog",
"TokenDataEnd": "ul",
"TextTokenData": "strong",
"DateFormat": "01/02/06",
"RegExp": "^(\\d){1,2}/(\\d){1,2}/(\\d){2}$",
"CheckString": "2/20/20",
"Path": "https://docs.pro.coinbase.com/#changelog"
}
},
"Disabled": false
},
{
"Name": "Binance",
"CheckType": "GitHub Sha Check",
"Data": {
"GitHubData": {
"Repo": "binance-exchange/binance-official-api-docs",
"Sha": "4878d48adc0075669ba85033b0e2d40c2876cf56"
}
},
"Disabled": false
},
{
"Name": "Bithumb",
"CheckType": "GitHub Sha Check",
"Data": {
"GitHubData": {
"Repo": "bithumb-pro/bithumb.pro-official-api-docs",
"Sha": "6293502c7736ab4971491978225ef4d104bdff31"
}
},
"Disabled": false
},
{
"Name": "Bittrex",
"CheckType": "GitHub Sha Check",
"Data": {
"GitHubData": {
"Repo": "Bittrex/bittrex.github.io",
"Sha": "fc1ea9c10c48aa82c4dc2c6be74887ef61b5b31b"
}
},
"Disabled": false
},
{
"Name": "CoinbeneSpot",
"CheckType": "GitHub Sha Check",
"Data": {
"GitHubData": {
"Repo": "Coinbene/API-SPOT-v2-Documents",
"Sha": "e9135a782ba6016bcf008778be368882ad7c784d"
}
},
"Disabled": false
},
{
"Name": "CoinbeneSwap",
"CheckType": "GitHub Sha Check",
"Data": {
"GitHubData": {
"Repo": "Coinbene/API-SWAP-Documents",
"Sha": "6b7871dae4d2af028a33dde956fbce101e2f9acd"
}
},
"Disabled": false
},
{
"Name": "Coinut",
"CheckType": "GitHub Sha Check",
"Data": {
"GitHubData": {
"Repo": "coinut/api",
"Sha": "6936dab4d2beba3c8245a603aebf3f545ebcf3f9"
}
},
"Disabled": false
},
{
"Name": "Gateio",
"CheckType": "GitHub Sha Check",
"Data": {
"GitHubData": {
"Repo": "gateio/gateapi-go",
"Sha": "81e2f1bb92c5406853139ae054bbda599483e127"
}
},
"Disabled": false
},
{
"Name": "Lbank",
"CheckType": "GitHub Sha Check",
"Data": {
"GitHubData": {
"Repo": "LBank-exchange/lbank-official-api-docs",
"Sha": "85e7bb83f03d4239c3aad26cabb997a1a2bbb3d1"
}
},
"Disabled": false
},
{
"Name": "BTSE",
"CheckType": "HTML String Check",
"Data": {
"HTMLData": {
"TokenData": "h1",
"Key": "id",
"Val": "btse-spot-api",
"TokenDataEnd": "blockquote",
"TextTokenData": "h1",
"RegExp": "^BTSE Spot API v(\\d){1}.(\\d){1}$",
"CheckString": "BTSE Spot API v3.0.2",
"Path": "https://www.btse.com/apiexplorer/spot/#btse-spot-api"
}
},
"Disabled": false
},
{
"Name": "Bitfinex",
"CheckType": "HTML String Check",
"Data": {
"HTMLData": {
"TokenData": "h1",
"Key": "class",
"Val": "header-scroll",
"TokenDataEnd": "p",
"DateFormat": "2006-01-02",
"RegExp": "section-v-(2\\d{3}-\\d{1,2}-\\d{1,2})",
"CheckString": "2019-08-19",
"Path": "https://docs.bitfinex.com/docs/changelog"
}
},
"Disabled": false
},
{
"Name": "ANX",
"CheckType": "HTML String Check",
"Data": {
"HTMLData": {
"RegExp": "ANX Exchange API v\\d{1}",
"CheckString": "ANX Exchange API v3",
"Path": "https://anxv3.docs.apiary.io/"
}
},
"Disabled": false
},
{
"Name": "Poloniex",
"CheckType": "HTML String Check",
"Data": {
"HTMLData": {
"TokenData": "h1",
"Key": "id",
"Val": "changelog",
"TokenDataEnd": "div",
"TextTokenData": "h2",
"DateFormat": "2006-01-02",
"RegExp": "(2\\d{3}-\\d{1,2}-\\d{1,2})",
"CheckString": "2020-03-24",
"Path": "https://docs.poloniex.com/#changelog"
}
},
"Disabled": false
},
{
"Name": "ItBit",
"CheckType": "HTML String Check",
"Data": {
"HTMLData": {
"TokenData": "a",
"Key": "href",
"RegExp": "^https://api.itbit.com/v\\d{1}/$",
"CheckString": "https://api.itbit.com/v1/",
"Path": "https://api.itbit.com/docs"
}
},
"Disabled": false
},
{
"Name": "Bitmex",
"CheckType": "HTML String Check",
"Data": {
"HTMLData": {
"TokenData": "h4",
"Key": "id",
"DateFormat": "Jan-2-2006",
"RegExp": "([A-Z]{1}[a-z]{2}-\\d{1,2}-2\\d{3})",
"CheckString": "Dec-16-2019",
"Path": "https://www.bitmex.com/static/md/en-US/apiChangelog"
}
},
"Disabled": false
},
{
"Name": "HitBTC",
"CheckType": "HTML String Check",
"Data": {
"HTMLData": {
"TokenData": "h1",
"Key": "id",
"Val": "about-companyname-api",
"TokenDataEnd": "h2",
"TextTokenData": "p",
"RegExp": "newest version \\d{1}.\\d{1}",
"CheckString": "newest version 2.0",
"Path": "https://api.hitbtc.com/"
}
},
"Disabled": false
},
{
"Name": "BTC Markets",
"CheckType": "HTML String Check",
"Data": {
"HTMLData": {
"RegExp": "^version: \\d{1}.\\d{1}.\\d{1}",
"CheckString": "version: 3.0.0",
"Path": "https://api.btcmarkets.net/openapi/info/index.yaml"
}
},
"Disabled": false
},
{
"Name": "Bitflyer",
"CheckType": "HTML String Check",
"Data": {
"HTMLData": {
"TokenData": "p",
"TokenDataEnd": "h3",
"TextTokenData": "code",
"RegExp": "^https://api.bitflyer.com/v\\d{1}/$",
"CheckString": "https://api.bitflyer.com/v1/",
"Path": "https://lightning.bitflyer.com/docs?lang=en"
}
},
"Disabled": false
},
{
"Name": "LakeBTC",
"CheckType": "HTML String Check",
"Data": {
"HTMLData": {
"TokenData": "div",
"Key": "class",
"Val": "flash-message",
"TokenDataEnd": "h2",
"TextTokenData": "h1",
"RegExp": "APIv\\d{1}",
"CheckString": "de2491b95ef1f6ea334247b13f0f14f6816fb5961cc63acc0542b07fc0336dd8",
"Path": "https://www.lakebtc.com/s/api_v2"
}
},
"Disabled": false
},
{
"Name": "Exmo",
"CheckType": "HTML String Check",
"Data": {
"HTMLData": {
"RegExp": "Last updated on [\\s\\S]*, 20\\d{2}",
"CheckString": "Last updated on December, 16th, 2019",
"Path": "https://exmo.com/en/api/"
}
},
"Disabled": false
},
{
"Name": "Kraken",
"CheckType": "HTML String Check",
"Data": {
"HTMLData": {
"TokenData": "h3",
"TokenDataEnd": "p",
"TextTokenData": "p",
"RegExp": "URL: https://api.kraken.com/\\d{1}/private/Balance",
"CheckString": "URL: https://api.kraken.com/0/private/Balance",
"Path": "https://www.kraken.com/features/api"
}
},
"Disabled": false
},
{
"Name": "Bitstamp",
"CheckType": "HTML String Check",
"Data": {
"HTMLData": {
"TokenData": "h2",
"Key": "class",
"Val": "text-subtitle mt48",
"TokenDataEnd": "h4",
"TextTokenData": "p",
"RegExp": "refer to the v\\d{1} API for future references.",
"CheckString": "refer to the v2 API for future references.",
"Path": "https://www.bitstamp.net/api/"
}
},
"Disabled": false
},
{
"Name": "AlphaPoint",
"CheckType": "HTML String Check",
"Data": {
"HTMLData": {
"TokenData": "h1",
"Key": "id",
"Val": "introduction",
"TokenDataEnd": "blockquote",
"TextTokenData": "h3",
"RegExp": "revised-calls-\\d{1}-\\d{1}-\\d{1}-gt-\\d{1}-\\d{1}-\\d{1}",
"CheckString": "revised-calls-3-3-2-gt-3-3-3",
"Path": "https://alphapoint.github.io/slate/#introduction"
}
},
"Disabled": false
},
{
"Name": "Yobit",
"CheckType": "HTML String Check",
"Data": {
"HTMLData": {
"TokenData": "h2",
"Key": "id",
"CheckString": "v3",
"Path": "https://www.yobit.net/en/api/"
}
},
"Disabled": false
},
{
"Name": "LocalBitcoins",
"CheckType": "HTML String Check",
"Data": {
"HTMLData": {
"TokenData": "div",
"Key": "class",
"Val": "col-md-12",
"RegExp": "col-md-12([\\s\\S]*?)clearfix",
"CheckString": "37a144dc619776b87c098da5a88bef7fed6c8a7cea2d4b9a38c96750726c93ff",
"Path": "https://localbitcoins.com/api-docs/"
}
},
"Disabled": false
},
{
"Name": "OkCoin International",
"CheckType": "HTML String Check",
"Data": {
"HTMLData": {
"TokenData": "a",
"Key": "href",
"Val": "./#change-change",
"TokenDataEnd": "./#change-",
"RegExp": "./#change-\\d{8}",
"CheckString": "20200229",
"Path": "https://www.okcoin.com/docs/en/#change-change"
}
},
"Disabled": false
},
{
"Name": "Okex",
"CheckType": "HTML String Check",
"Data": {
"HTMLData": {
"TokenData": "a",
"Key": "href",
"Val": "./#change-change",
"TokenDataEnd": "./#change-",
"RegExp": "./#change-\\d{8}",
"CheckString": "20200331",
"Path": "https://www.okex.com/docs/en/#change-change"
}
},
"Disabled": false
},
{
"Name": "Gemini",
"CheckType": "HTML String Check",
"Data": {
"HTMLData": {
"TokenData": "h1",
"Key": "id",
"Val": "revision-history",
"TokenDataEnd": "table",
"TextTokenData": "td",
"DateFormat": "2006/01/02",
"RegExp": "^20(\\d){2}/(\\d){2}/(\\d){2}$",
"CheckString": "2020/03/05",
"Path": "https://docs.gemini.com/rest-api/#revision-history"
}
},
"Disabled": false
}
]
}

View File

@@ -14,7 +14,7 @@ This documentation package is part of the GoCryptoTrader codebase.
## This is still in active development
You can track ideas, planned features and what's in progresss on this Trello board: [https://trello.com/b/ZAhMhpOy/gocryptotrader](https://trello.com/b/ZAhMhpOy/gocryptotrader).
You can track ideas, planned features and what's in progress on this Trello board: [https://trello.com/b/ZAhMhpOy/gocryptotrader](https://trello.com/b/ZAhMhpOy/gocryptotrader).
Join our slack to discuss all things related to GoCryptoTrader! [GoCryptoTrader Slack](https://join.slack.com/t/gocryptotrader/shared_invite/enQtNTQ5NDAxMjA2Mjc5LTc5ZDE1ZTNiOGM3ZGMyMmY1NTAxYWZhODE0MWM5N2JlZDk1NDU0YTViYzk4NTk3OTRiMDQzNGQ1YTc4YmRlMTk)

View File

@@ -0,0 +1,98 @@
{{define "cmd apichecker" -}}
{{template "header" .}}
## Current Features for {{.Name}}
+ Checks for API updates
+ Can automatically update Trello checklist for the updates required
+ Supports trello integration
#### This tool tracks changes in exchange API documentation
#### Keeps track of all the updates using the GoCryptoTrader trello board
Be aware, this tool will:
- Automatically update the live trello board if API keys and trello information are provided.
- Automatically update the main json updates file, however a backup of the copy before the updates will be stored.
## Usage
+ To run a real check for updates, parse Trello API info as flags or add them to the updates.json file and use the following command from apichecker folder in GCT:
###### Linux/OSX
GoCryptoTrader is built using [Go Modules](https://github.com/golang/go/wiki/Modules) and requires Go 1.11 or above
Using Go Modules you now clone this repository **outside** your GOPATH
```bash
git clone https://github.com/thrasher-corp/gocryptotrader.git
cd gocryptotrader/cmd/apichecker
go build
./apichecker
```
###### Windows
```bash
git clone https://github.com/thrasher-corp/gocryptotrader.git
cd gocryptotrader\cmd\apichecker
go build && apichecker.exe
```
+ Upon addition of a new exchange, to update Trello checklist and to add the exchange to updates.json the following would need to be done:
###### HTML Scraping method:
HTMLScrapingData is a struct which contains the necessary information to scrape data from the given path website. Not all the elements of HTMLScrapingData are necessary, its all dependant on site where information is being extracted from. Regexp is used to capture necessary bits of data using r.FindString() where r is the declared regular expression. If update dates data is available, DateFormat is used to convert the dates to a more standard format which can then be used for further comparisons of which update is most recent.
```go
func TestAdd(t *testing.T) {
t.Parallel()
data := HTMLScrapingData{TokenData: "h1",
Key: "id",
Val: "revision-history",
TokenDataEnd: "table",
TextTokenData: "td",
DateFormat: "2006/01/02",
RegExp: "^20(\\d){2}/(\\d){2}/(\\d){2}$",
CheckString: "2019/11/15",
Path: "https://docs.gemini.com/rest-api/#revision-history"}
err := Add("Gemini", htmlScrape, data.Path, data, true, &testConfigData)
if err != nil {
t.Error(err)
}
}
```
###### Github SHA Check Method:
```go
func TestAdd(t *testing.T) {
t.Parallel()
data := GithubData{Repo: "LBank-exchange/lbank-official-api-docs"}
err := Add("Lbank", github, fmt.Sprintf(githubPath, data.Repo), data, false, &configData)
if err != nil {
t.Error(err)
}
}
```
###### Add using flags:
```bash
apichecker.exe -add=true -key=id -val=revision-history -tokendata=h1 -tokendataend=table -texttokendata=td -dateformat=2006/01/02 -checktype="HTML String Check" -regexp="^20(\d){2}/(\d){2}/(\d){2}$" -path="https://docs.gemini.com/rest-api/#revision-history" -exchangename=Gemini
```
+ If all the authentication variables for trello are set trello checklist will be automatically updated with the format of 'Exchange Name (integer of how many updates have been released since the exchange API was last worked on):
- To acquire your trello key and access token please login into trello using the following link and follow the steps: https://trello.com/app-key
- To acquire BoardID, ListID, CardID and ChecklistID inbuilt functions can be used such as trelloGetAllLists()
- To create a new list, card, checklist, and to populate the the checklist --create flag can be used.
- To create a new check within a checklist, an inbuilt function within apichecker can be used: trelloCreateNewCheck
- For the first time running the application & to create a list, card and checklist use the following:
```bash
apichecker.exe --create -apikey="insertkeyhere" -apitoken="inserttokenhere" -boardname="insertboardnamehere"
```
### Please click GoDocs chevron above to view current GoDoc information for this package
{{template "contributions"}}
{{template "donations" .}}
{{end}}

View File

@@ -170,6 +170,16 @@ func main() {
contributors = append(contributors, []Contributor{
// idoall's contributors were forked and merged, so his contributions
// aren't automatically retrievable
{
Login: "DirectX",
URL: "https://github.com/DirectX",
Contributions: 1,
},
{
Login: "frankzougc",
URL: "https://github.com/frankzougc",
Contributions: 1,
},
{
Login: "idoall",
URL: "https://github.com/idoall",

View File

@@ -9,7 +9,7 @@ This {{.Name}} package is part of the GoCryptoTrader codebase.
## This is still in active development
You can track ideas, planned features and what's in progresss on this Trello board: [https://trello.com/b/ZAhMhpOy/gocryptotrader](https://trello.com/b/ZAhMhpOy/gocryptotrader).
You can track ideas, planned features and what's in progress on this Trello board: [https://trello.com/b/ZAhMhpOy/gocryptotrader](https://trello.com/b/ZAhMhpOy/gocryptotrader).
Join our slack to discuss all things related to GoCryptoTrader! [GoCryptoTrader Slack](https://join.slack.com/t/gocryptotrader/shared_invite/enQtNTQ5NDAxMjA2Mjc5LTc5ZDE1ZTNiOGM3ZGMyMmY1NTAxYWZhODE0MWM5N2JlZDk1NDU0YTViYzk4NTk3OTRiMDQzNGQ1YTc4YmRlMTk)
{{end}}

View File

@@ -7,7 +7,7 @@ An exchange interface wrapper for the GoCryptoTrader application.
## This is still in active development
You can track ideas, planned features and what's in progresss on this Trello board: [https://trello.com/b/ZAhMhpOy/gocryptotrader](https://trello.com/b/ZAhMhpOy/gocryptotrader).
You can track ideas, planned features and what's in progress on this Trello board: [https://trello.com/b/ZAhMhpOy/gocryptotrader](https://trello.com/b/ZAhMhpOy/gocryptotrader).
## Current {{.CapitalName}} Exchange Features

View File

@@ -14,7 +14,7 @@ This common package is part of the GoCryptoTrader codebase.
## This is still in active development
You can track ideas, planned features and what's in progresss on this Trello board: [https://trello.com/b/ZAhMhpOy/gocryptotrader](https://trello.com/b/ZAhMhpOy/gocryptotrader).
You can track ideas, planned features and what's in progress on this Trello board: [https://trello.com/b/ZAhMhpOy/gocryptotrader](https://trello.com/b/ZAhMhpOy/gocryptotrader).
Join our slack to discuss all things related to GoCryptoTrader! [GoCryptoTrader Slack](https://join.slack.com/t/gocryptotrader/shared_invite/enQtNTQ5NDAxMjA2Mjc5LTc5ZDE1ZTNiOGM3ZGMyMmY1NTAxYWZhODE0MWM5N2JlZDk1NDU0YTViYzk4NTk3OTRiMDQzNGQ1YTc4YmRlMTk)

View File

@@ -159,7 +159,10 @@ func YesOrNo(input string) bool {
func SendHTTPRequest(method, urlPath string, headers map[string]string, body io.Reader) (string, error) {
result := strings.ToUpper(method)
if result != http.MethodPost && result != http.MethodGet && result != http.MethodDelete {
if result != http.MethodOptions && result != http.MethodGet &&
result != http.MethodHead && result != http.MethodPost &&
result != http.MethodPut && result != http.MethodDelete &&
result != http.MethodTrace && result != http.MethodConnect {
return "", errors.New("invalid HTTP method specified")
}

View File

@@ -14,7 +14,7 @@ This comms package is part of the GoCryptoTrader codebase.
## This is still in active development
You can track ideas, planned features and what's in progresss on this Trello board: [https://trello.com/b/ZAhMhpOy/gocryptotrader](https://trello.com/b/ZAhMhpOy/gocryptotrader).
You can track ideas, planned features and what's in progress on this Trello board: [https://trello.com/b/ZAhMhpOy/gocryptotrader](https://trello.com/b/ZAhMhpOy/gocryptotrader).
Join our slack to discuss all things related to GoCryptoTrader! [GoCryptoTrader Slack](https://join.slack.com/t/gocryptotrader/shared_invite/enQtNTQ5NDAxMjA2Mjc5LTc5ZDE1ZTNiOGM3ZGMyMmY1NTAxYWZhODE0MWM5N2JlZDk1NDU0YTViYzk4NTk3OTRiMDQzNGQ1YTc4YmRlMTk)

View File

@@ -14,7 +14,7 @@ This base package is part of the GoCryptoTrader codebase.
## This is still in active development
You can track ideas, planned features and what's in progresss on this Trello board: [https://trello.com/b/ZAhMhpOy/gocryptotrader](https://trello.com/b/ZAhMhpOy/gocryptotrader).
You can track ideas, planned features and what's in progress on this Trello board: [https://trello.com/b/ZAhMhpOy/gocryptotrader](https://trello.com/b/ZAhMhpOy/gocryptotrader).
Join our slack to discuss all things related to GoCryptoTrader! [GoCryptoTrader Slack](https://join.slack.com/t/gocryptotrader/shared_invite/enQtNTQ5NDAxMjA2Mjc5LTc5ZDE1ZTNiOGM3ZGMyMmY1NTAxYWZhODE0MWM5N2JlZDk1NDU0YTViYzk4NTk3OTRiMDQzNGQ1YTc4YmRlMTk)

View File

@@ -14,7 +14,7 @@ This slack package is part of the GoCryptoTrader codebase.
## This is still in active development
You can track ideas, planned features and what's in progresss on this Trello board: [https://trello.com/b/ZAhMhpOy/gocryptotrader](https://trello.com/b/ZAhMhpOy/gocryptotrader).
You can track ideas, planned features and what's in progress on this Trello board: [https://trello.com/b/ZAhMhpOy/gocryptotrader](https://trello.com/b/ZAhMhpOy/gocryptotrader).
Join our slack to discuss all things related to GoCryptoTrader! [GoCryptoTrader Slack](https://join.slack.com/t/gocryptotrader/shared_invite/enQtNTQ5NDAxMjA2Mjc5LTc5ZDE1ZTNiOGM3ZGMyMmY1NTAxYWZhODE0MWM5N2JlZDk1NDU0YTViYzk4NTk3OTRiMDQzNGQ1YTc4YmRlMTk)

View File

@@ -14,7 +14,7 @@ This smsglobal package is part of the GoCryptoTrader codebase.
## This is still in active development
You can track ideas, planned features and what's in progresss on this Trello board: [https://trello.com/b/ZAhMhpOy/gocryptotrader](https://trello.com/b/ZAhMhpOy/gocryptotrader).
You can track ideas, planned features and what's in progress on this Trello board: [https://trello.com/b/ZAhMhpOy/gocryptotrader](https://trello.com/b/ZAhMhpOy/gocryptotrader).
Join our slack to discuss all things related to GoCryptoTrader! [GoCryptoTrader Slack](https://join.slack.com/t/gocryptotrader/shared_invite/enQtNTQ5NDAxMjA2Mjc5LTc5ZDE1ZTNiOGM3ZGMyMmY1NTAxYWZhODE0MWM5N2JlZDk1NDU0YTViYzk4NTk3OTRiMDQzNGQ1YTc4YmRlMTk)

View File

@@ -14,7 +14,7 @@ This smtp package is part of the GoCryptoTrader codebase.
## This is still in active development
You can track ideas, planned features and what's in progresss on this Trello board: [https://trello.com/b/ZAhMhpOy/gocryptotrader](https://trello.com/b/ZAhMhpOy/gocryptotrader).
You can track ideas, planned features and what's in progress on this Trello board: [https://trello.com/b/ZAhMhpOy/gocryptotrader](https://trello.com/b/ZAhMhpOy/gocryptotrader).
Join our slack to discuss all things related to GoCryptoTrader! [GoCryptoTrader Slack](https://join.slack.com/t/gocryptotrader/shared_invite/enQtNTQ5NDAxMjA2Mjc5LTc5ZDE1ZTNiOGM3ZGMyMmY1NTAxYWZhODE0MWM5N2JlZDk1NDU0YTViYzk4NTk3OTRiMDQzNGQ1YTc4YmRlMTk)

View File

@@ -14,7 +14,7 @@ This telegram package is part of the GoCryptoTrader codebase.
## This is still in active development
You can track ideas, planned features and what's in progresss on this Trello board: [https://trello.com/b/ZAhMhpOy/gocryptotrader](https://trello.com/b/ZAhMhpOy/gocryptotrader).
You can track ideas, planned features and what's in progress on this Trello board: [https://trello.com/b/ZAhMhpOy/gocryptotrader](https://trello.com/b/ZAhMhpOy/gocryptotrader).
Join our slack to discuss all things related to GoCryptoTrader! [GoCryptoTrader Slack](https://join.slack.com/t/gocryptotrader/shared_invite/enQtNTQ5NDAxMjA2Mjc5LTc5ZDE1ZTNiOGM3ZGMyMmY1NTAxYWZhODE0MWM5N2JlZDk1NDU0YTViYzk4NTk3OTRiMDQzNGQ1YTc4YmRlMTk)

View File

@@ -14,7 +14,7 @@ This config package is part of the GoCryptoTrader codebase.
## This is still in active development
You can track ideas, planned features and what's in progresss on this Trello board: [https://trello.com/b/ZAhMhpOy/gocryptotrader](https://trello.com/b/ZAhMhpOy/gocryptotrader).
You can track ideas, planned features and what's in progress on this Trello board: [https://trello.com/b/ZAhMhpOy/gocryptotrader](https://trello.com/b/ZAhMhpOy/gocryptotrader).
Join our slack to discuss all things related to GoCryptoTrader! [GoCryptoTrader Slack](https://join.slack.com/t/gocryptotrader/shared_invite/enQtNTQ5NDAxMjA2Mjc5LTc5ZDE1ZTNiOGM3ZGMyMmY1NTAxYWZhODE0MWM5N2JlZDk1NDU0YTViYzk4NTk3OTRiMDQzNGQ1YTc4YmRlMTk)

View File

@@ -14,7 +14,7 @@ This currency package is part of the GoCryptoTrader codebase.
## This is still in active development
You can track ideas, planned features and what's in progresss on this Trello board: [https://trello.com/b/ZAhMhpOy/gocryptotrader](https://trello.com/b/ZAhMhpOy/gocryptotrader).
You can track ideas, planned features and what's in progress on this Trello board: [https://trello.com/b/ZAhMhpOy/gocryptotrader](https://trello.com/b/ZAhMhpOy/gocryptotrader).
Join our slack to discuss all things related to GoCryptoTrader! [GoCryptoTrader Slack](https://join.slack.com/t/gocryptotrader/shared_invite/enQtNTQ5NDAxMjA2Mjc5LTc5ZDE1ZTNiOGM3ZGMyMmY1NTAxYWZhODE0MWM5N2JlZDk1NDU0YTViYzk4NTk3OTRiMDQzNGQ1YTc4YmRlMTk)

View File

@@ -14,7 +14,7 @@ This forexprovider package is part of the GoCryptoTrader codebase.
## This is still in active development
You can track ideas, planned features and what's in progresss on this Trello board: [https://trello.com/b/ZAhMhpOy/gocryptotrader](https://trello.com/b/ZAhMhpOy/gocryptotrader).
You can track ideas, planned features and what's in progress on this Trello board: [https://trello.com/b/ZAhMhpOy/gocryptotrader](https://trello.com/b/ZAhMhpOy/gocryptotrader).
Join our slack to discuss all things related to GoCryptoTrader! [GoCryptoTrader Slack](https://join.slack.com/t/gocryptotrader/shared_invite/enQtNTQ5NDAxMjA2Mjc5LTc5ZDE1ZTNiOGM3ZGMyMmY1NTAxYWZhODE0MWM5N2JlZDk1NDU0YTViYzk4NTk3OTRiMDQzNGQ1YTc4YmRlMTk)

View File

@@ -14,7 +14,7 @@ This forexprovider package is part of the GoCryptoTrader codebase.
## This is still in active development
You can track ideas, planned features and what's in progresss on this Trello board: [https://trello.com/b/ZAhMhpOy/gocryptotrader](https://trello.com/b/ZAhMhpOy/gocryptotrader).
You can track ideas, planned features and what's in progress on this Trello board: [https://trello.com/b/ZAhMhpOy/gocryptotrader](https://trello.com/b/ZAhMhpOy/gocryptotrader).
Join our slack to discuss all things related to GoCryptoTrader! [GoCryptoTrader Slack](https://join.slack.com/t/gocryptotrader/shared_invite/enQtNTQ5NDAxMjA2Mjc5LTc5ZDE1ZTNiOGM3ZGMyMmY1NTAxYWZhODE0MWM5N2JlZDk1NDU0YTViYzk4NTk3OTRiMDQzNGQ1YTc4YmRlMTk)

View File

@@ -14,7 +14,7 @@ This forexprovider package is part of the GoCryptoTrader codebase.
## This is still in active development
You can track ideas, planned features and what's in progresss on this Trello board: [https://trello.com/b/ZAhMhpOy/gocryptotrader](https://trello.com/b/ZAhMhpOy/gocryptotrader).
You can track ideas, planned features and what's in progress on this Trello board: [https://trello.com/b/ZAhMhpOy/gocryptotrader](https://trello.com/b/ZAhMhpOy/gocryptotrader).
Join our slack to discuss all things related to GoCryptoTrader! [GoCryptoTrader Slack](https://join.slack.com/t/gocryptotrader/shared_invite/enQtNTQ5NDAxMjA2Mjc5LTc5ZDE1ZTNiOGM3ZGMyMmY1NTAxYWZhODE0MWM5N2JlZDk1NDU0YTViYzk4NTk3OTRiMDQzNGQ1YTc4YmRlMTk)

View File

@@ -14,7 +14,7 @@ This forexprovider package is part of the GoCryptoTrader codebase.
## This is still in active development
You can track ideas, planned features and what's in progresss on this Trello board: [https://trello.com/b/ZAhMhpOy/gocryptotrader](https://trello.com/b/ZAhMhpOy/gocryptotrader).
You can track ideas, planned features and what's in progress on this Trello board: [https://trello.com/b/ZAhMhpOy/gocryptotrader](https://trello.com/b/ZAhMhpOy/gocryptotrader).
Join our slack to discuss all things related to GoCryptoTrader! [GoCryptoTrader Slack](https://join.slack.com/t/gocryptotrader/shared_invite/enQtNTQ5NDAxMjA2Mjc5LTc5ZDE1ZTNiOGM3ZGMyMmY1NTAxYWZhODE0MWM5N2JlZDk1NDU0YTViYzk4NTk3OTRiMDQzNGQ1YTc4YmRlMTk)

View File

@@ -14,7 +14,7 @@ This forexprovider package is part of the GoCryptoTrader codebase.
## This is still in active development
You can track ideas, planned features and what's in progresss on this Trello board: [https://trello.com/b/ZAhMhpOy/gocryptotrader](https://trello.com/b/ZAhMhpOy/gocryptotrader).
You can track ideas, planned features and what's in progress on this Trello board: [https://trello.com/b/ZAhMhpOy/gocryptotrader](https://trello.com/b/ZAhMhpOy/gocryptotrader).
Join our slack to discuss all things related to GoCryptoTrader! [GoCryptoTrader Slack](https://join.slack.com/t/gocryptotrader/shared_invite/enQtNTQ5NDAxMjA2Mjc5LTc5ZDE1ZTNiOGM3ZGMyMmY1NTAxYWZhODE0MWM5N2JlZDk1NDU0YTViYzk4NTk3OTRiMDQzNGQ1YTc4YmRlMTk)

View File

@@ -14,7 +14,7 @@ This forexprovider package is part of the GoCryptoTrader codebase.
## This is still in active development
You can track ideas, planned features and what's in progresss on this Trello board: [https://trello.com/b/ZAhMhpOy/gocryptotrader](https://trello.com/b/ZAhMhpOy/gocryptotrader).
You can track ideas, planned features and what's in progress on this Trello board: [https://trello.com/b/ZAhMhpOy/gocryptotrader](https://trello.com/b/ZAhMhpOy/gocryptotrader).
Join our slack to discuss all things related to GoCryptoTrader! [GoCryptoTrader Slack](https://join.slack.com/t/gocryptotrader/shared_invite/enQtNTQ5NDAxMjA2Mjc5LTc5ZDE1ZTNiOGM3ZGMyMmY1NTAxYWZhODE0MWM5N2JlZDk1NDU0YTViYzk4NTk3OTRiMDQzNGQ1YTc4YmRlMTk)

View File

@@ -14,7 +14,7 @@ This forexprovider package is part of the GoCryptoTrader codebase.
## This is still in active development
You can track ideas, planned features and what's in progresss on this Trello board: [https://trello.com/b/ZAhMhpOy/gocryptotrader](https://trello.com/b/ZAhMhpOy/gocryptotrader).
You can track ideas, planned features and what's in progress on this Trello board: [https://trello.com/b/ZAhMhpOy/gocryptotrader](https://trello.com/b/ZAhMhpOy/gocryptotrader).
Join our slack to discuss all things related to GoCryptoTrader! [GoCryptoTrader Slack](https://join.slack.com/t/gocryptotrader/shared_invite/enQtNTQ5NDAxMjA2Mjc5LTc5ZDE1ZTNiOGM3ZGMyMmY1NTAxYWZhODE0MWM5N2JlZDk1NDU0YTViYzk4NTk3OTRiMDQzNGQ1YTc4YmRlMTk)

View File

@@ -14,7 +14,7 @@ This exchanges package is part of the GoCryptoTrader codebase.
## This is still in active development
You can track ideas, planned features and what's in progresss on this Trello board: [https://trello.com/b/ZAhMhpOy/gocryptotrader](https://trello.com/b/ZAhMhpOy/gocryptotrader).
You can track ideas, planned features and what's in progress on this Trello board: [https://trello.com/b/ZAhMhpOy/gocryptotrader](https://trello.com/b/ZAhMhpOy/gocryptotrader).
Join our slack to discuss all things related to GoCryptoTrader! [GoCryptoTrader Slack](https://join.slack.com/t/gocryptotrader/shared_invite/enQtNTQ5NDAxMjA2Mjc5LTc5ZDE1ZTNiOGM3ZGMyMmY1NTAxYWZhODE0MWM5N2JlZDk1NDU0YTViYzk4NTk3OTRiMDQzNGQ1YTc4YmRlMTk)

View File

@@ -14,7 +14,7 @@ This alphapoint package is part of the GoCryptoTrader codebase.
## This is still in active development
You can track ideas, planned features and what's in progresss on this Trello board: [https://trello.com/b/ZAhMhpOy/gocryptotrader](https://trello.com/b/ZAhMhpOy/gocryptotrader).
You can track ideas, planned features and what's in progress on this Trello board: [https://trello.com/b/ZAhMhpOy/gocryptotrader](https://trello.com/b/ZAhMhpOy/gocryptotrader).
Join our slack to discuss all things related to GoCryptoTrader! [GoCryptoTrader Slack](https://join.slack.com/t/gocryptotrader/shared_invite/enQtNTQ5NDAxMjA2Mjc5LTc5ZDE1ZTNiOGM3ZGMyMmY1NTAxYWZhODE0MWM5N2JlZDk1NDU0YTViYzk4NTk3OTRiMDQzNGQ1YTc4YmRlMTk)

View File

@@ -14,7 +14,7 @@ This binance package is part of the GoCryptoTrader codebase.
## This is still in active development
You can track ideas, planned features and what's in progresss on this Trello board: [https://trello.com/b/ZAhMhpOy/gocryptotrader](https://trello.com/b/ZAhMhpOy/gocryptotrader).
You can track ideas, planned features and what's in progress on this Trello board: [https://trello.com/b/ZAhMhpOy/gocryptotrader](https://trello.com/b/ZAhMhpOy/gocryptotrader).
Join our slack to discuss all things related to GoCryptoTrader! [GoCryptoTrader Slack](https://join.slack.com/t/gocryptotrader/shared_invite/enQtNTQ5NDAxMjA2Mjc5LTc5ZDE1ZTNiOGM3ZGMyMmY1NTAxYWZhODE0MWM5N2JlZDk1NDU0YTViYzk4NTk3OTRiMDQzNGQ1YTc4YmRlMTk)

View File

@@ -14,7 +14,7 @@ This bitfinex package is part of the GoCryptoTrader codebase.
## This is still in active development
You can track ideas, planned features and what's in progresss on this Trello board: [https://trello.com/b/ZAhMhpOy/gocryptotrader](https://trello.com/b/ZAhMhpOy/gocryptotrader).
You can track ideas, planned features and what's in progress on this Trello board: [https://trello.com/b/ZAhMhpOy/gocryptotrader](https://trello.com/b/ZAhMhpOy/gocryptotrader).
Join our slack to discuss all things related to GoCryptoTrader! [GoCryptoTrader Slack](https://join.slack.com/t/gocryptotrader/shared_invite/enQtNTQ5NDAxMjA2Mjc5LTc5ZDE1ZTNiOGM3ZGMyMmY1NTAxYWZhODE0MWM5N2JlZDk1NDU0YTViYzk4NTk3OTRiMDQzNGQ1YTc4YmRlMTk)

View File

@@ -14,7 +14,7 @@ This bitflyer package is part of the GoCryptoTrader codebase.
## This is still in active development
You can track ideas, planned features and what's in progresss on this Trello board: [https://trello.com/b/ZAhMhpOy/gocryptotrader](https://trello.com/b/ZAhMhpOy/gocryptotrader).
You can track ideas, planned features and what's in progress on this Trello board: [https://trello.com/b/ZAhMhpOy/gocryptotrader](https://trello.com/b/ZAhMhpOy/gocryptotrader).
Join our slack to discuss all things related to GoCryptoTrader! [GoCryptoTrader Slack](https://join.slack.com/t/gocryptotrader/shared_invite/enQtNTQ5NDAxMjA2Mjc5LTc5ZDE1ZTNiOGM3ZGMyMmY1NTAxYWZhODE0MWM5N2JlZDk1NDU0YTViYzk4NTk3OTRiMDQzNGQ1YTc4YmRlMTk)

View File

@@ -14,7 +14,7 @@ This bithumb package is part of the GoCryptoTrader codebase.
## This is still in active development
You can track ideas, planned features and what's in progresss on this Trello board: [https://trello.com/b/ZAhMhpOy/gocryptotrader](https://trello.com/b/ZAhMhpOy/gocryptotrader).
You can track ideas, planned features and what's in progress on this Trello board: [https://trello.com/b/ZAhMhpOy/gocryptotrader](https://trello.com/b/ZAhMhpOy/gocryptotrader).
Join our slack to discuss all things related to GoCryptoTrader! [GoCryptoTrader Slack](https://join.slack.com/t/gocryptotrader/shared_invite/enQtNTQ5NDAxMjA2Mjc5LTc5ZDE1ZTNiOGM3ZGMyMmY1NTAxYWZhODE0MWM5N2JlZDk1NDU0YTViYzk4NTk3OTRiMDQzNGQ1YTc4YmRlMTk)

View File

@@ -14,7 +14,7 @@ This bitmex package is part of the GoCryptoTrader codebase.
## This is still in active development
You can track ideas, planned features and what's in progresss on this Trello board: [https://trello.com/b/ZAhMhpOy/gocryptotrader](https://trello.com/b/ZAhMhpOy/gocryptotrader).
You can track ideas, planned features and what's in progress on this Trello board: [https://trello.com/b/ZAhMhpOy/gocryptotrader](https://trello.com/b/ZAhMhpOy/gocryptotrader).
Join our slack to discuss all things related to GoCryptoTrader! [GoCryptoTrader Slack](https://join.slack.com/t/gocryptotrader/shared_invite/enQtNTQ5NDAxMjA2Mjc5LTc5ZDE1ZTNiOGM3ZGMyMmY1NTAxYWZhODE0MWM5N2JlZDk1NDU0YTViYzk4NTk3OTRiMDQzNGQ1YTc4YmRlMTk)

View File

@@ -14,7 +14,7 @@ This bitstamp package is part of the GoCryptoTrader codebase.
## This is still in active development
You can track ideas, planned features and what's in progresss on this Trello board: [https://trello.com/b/ZAhMhpOy/gocryptotrader](https://trello.com/b/ZAhMhpOy/gocryptotrader).
You can track ideas, planned features and what's in progress on this Trello board: [https://trello.com/b/ZAhMhpOy/gocryptotrader](https://trello.com/b/ZAhMhpOy/gocryptotrader).
Join our slack to discuss all things related to GoCryptoTrader! [GoCryptoTrader Slack](https://join.slack.com/t/gocryptotrader/shared_invite/enQtNTQ5NDAxMjA2Mjc5LTc5ZDE1ZTNiOGM3ZGMyMmY1NTAxYWZhODE0MWM5N2JlZDk1NDU0YTViYzk4NTk3OTRiMDQzNGQ1YTc4YmRlMTk)

View File

@@ -14,7 +14,7 @@ This bittrex package is part of the GoCryptoTrader codebase.
## This is still in active development
You can track ideas, planned features and what's in progresss on this Trello board: [https://trello.com/b/ZAhMhpOy/gocryptotrader](https://trello.com/b/ZAhMhpOy/gocryptotrader).
You can track ideas, planned features and what's in progress on this Trello board: [https://trello.com/b/ZAhMhpOy/gocryptotrader](https://trello.com/b/ZAhMhpOy/gocryptotrader).
Join our slack to discuss all things related to GoCryptoTrader! [GoCryptoTrader Slack](https://join.slack.com/t/gocryptotrader/shared_invite/enQtNTQ5NDAxMjA2Mjc5LTc5ZDE1ZTNiOGM3ZGMyMmY1NTAxYWZhODE0MWM5N2JlZDk1NDU0YTViYzk4NTk3OTRiMDQzNGQ1YTc4YmRlMTk)

View File

@@ -14,7 +14,7 @@ This btcmarkets package is part of the GoCryptoTrader codebase.
## This is still in active development
You can track ideas, planned features and what's in progresss on this Trello board: [https://trello.com/b/ZAhMhpOy/gocryptotrader](https://trello.com/b/ZAhMhpOy/gocryptotrader).
You can track ideas, planned features and what's in progress on this Trello board: [https://trello.com/b/ZAhMhpOy/gocryptotrader](https://trello.com/b/ZAhMhpOy/gocryptotrader).
Join our slack to discuss all things related to GoCryptoTrader! [GoCryptoTrader Slack](https://join.slack.com/t/gocryptotrader/shared_invite/enQtNTQ5NDAxMjA2Mjc5LTc5ZDE1ZTNiOGM3ZGMyMmY1NTAxYWZhODE0MWM5N2JlZDk1NDU0YTViYzk4NTk3OTRiMDQzNGQ1YTc4YmRlMTk)

View File

@@ -14,7 +14,7 @@ This btse package is part of the GoCryptoTrader codebase.
## This is still in active development
You can track ideas, planned features and what's in progresss on this Trello board: [https://trello.com/b/ZAhMhpOy/gocryptotrader](https://trello.com/b/ZAhMhpOy/gocryptotrader).
You can track ideas, planned features and what's in progress on this Trello board: [https://trello.com/b/ZAhMhpOy/gocryptotrader](https://trello.com/b/ZAhMhpOy/gocryptotrader).
Join our slack to discuss all things related to GoCryptoTrader! [GoCryptoTrader Slack](https://join.slack.com/t/gocryptotrader/shared_invite/enQtNTQ5NDAxMjA2Mjc5LTc5ZDE1ZTNiOGM3ZGMyMmY1NTAxYWZhODE0MWM5N2JlZDk1NDU0YTViYzk4NTk3OTRiMDQzNGQ1YTc4YmRlMTk)

View File

@@ -14,7 +14,7 @@ This coinbasepro package is part of the GoCryptoTrader codebase.
## This is still in active development
You can track ideas, planned features and what's in progresss on this Trello board: [https://trello.com/b/ZAhMhpOy/gocryptotrader](https://trello.com/b/ZAhMhpOy/gocryptotrader).
You can track ideas, planned features and what's in progress on this Trello board: [https://trello.com/b/ZAhMhpOy/gocryptotrader](https://trello.com/b/ZAhMhpOy/gocryptotrader).
Join our slack to discuss all things related to GoCryptoTrader! [GoCryptoTrader Slack](https://join.slack.com/t/gocryptotrader/shared_invite/enQtNTQ5NDAxMjA2Mjc5LTc5ZDE1ZTNiOGM3ZGMyMmY1NTAxYWZhODE0MWM5N2JlZDk1NDU0YTViYzk4NTk3OTRiMDQzNGQ1YTc4YmRlMTk)

View File

@@ -393,7 +393,7 @@ func (c *CoinbasePro) Subscribe(channelToSubscribe wshandler.WebsocketChannelSub
}
if channelToSubscribe.Channel == "user" || channelToSubscribe.Channel == "full" {
n := strconv.FormatInt(time.Now().Unix(), 10)
message := n + "GET" + "/users/self/verify"
message := n + http.MethodGet + "/users/self/verify"
hmac := crypto.GetHMAC(crypto.HashSHA256, []byte(message),
[]byte(c.API.Credentials.Secret))
subscribe.Signature = crypto.Base64Encode(hmac)

View File

@@ -14,7 +14,7 @@ This coinbene package is part of the GoCryptoTrader codebase.
## This is still in active development
You can track ideas, planned features and what's in progresss on this Trello board: [https://trello.com/b/ZAhMhpOy/gocryptotrader](https://trello.com/b/ZAhMhpOy/gocryptotrader).
You can track ideas, planned features and what's in progress on this Trello board: [https://trello.com/b/ZAhMhpOy/gocryptotrader](https://trello.com/b/ZAhMhpOy/gocryptotrader).
Join our slack to discuss all things related to GoCryptoTrader! [GoCryptoTrader Slack](https://join.slack.com/t/gocryptotrader/shared_invite/enQtNTQ5NDAxMjA2Mjc5LTc5ZDE1ZTNiOGM3ZGMyMmY1NTAxYWZhODE0MWM5N2JlZDk1NDU0YTViYzk4NTk3OTRiMDQzNGQ1YTc4YmRlMTk)

View File

@@ -14,7 +14,7 @@ This coinut package is part of the GoCryptoTrader codebase.
## This is still in active development
You can track ideas, planned features and what's in progresss on this Trello board: [https://trello.com/b/ZAhMhpOy/gocryptotrader](https://trello.com/b/ZAhMhpOy/gocryptotrader).
You can track ideas, planned features and what's in progress on this Trello board: [https://trello.com/b/ZAhMhpOy/gocryptotrader](https://trello.com/b/ZAhMhpOy/gocryptotrader).
Join our slack to discuss all things related to GoCryptoTrader! [GoCryptoTrader Slack](https://join.slack.com/t/gocryptotrader/shared_invite/enQtNTQ5NDAxMjA2Mjc5LTc5ZDE1ZTNiOGM3ZGMyMmY1NTAxYWZhODE0MWM5N2JlZDk1NDU0YTViYzk4NTk3OTRiMDQzNGQ1YTc4YmRlMTk)

View File

@@ -14,7 +14,7 @@ This exmo package is part of the GoCryptoTrader codebase.
## This is still in active development
You can track ideas, planned features and what's in progresss on this Trello board: [https://trello.com/b/ZAhMhpOy/gocryptotrader](https://trello.com/b/ZAhMhpOy/gocryptotrader).
You can track ideas, planned features and what's in progress on this Trello board: [https://trello.com/b/ZAhMhpOy/gocryptotrader](https://trello.com/b/ZAhMhpOy/gocryptotrader).
Join our slack to discuss all things related to GoCryptoTrader! [GoCryptoTrader Slack](https://join.slack.com/t/gocryptotrader/shared_invite/enQtNTQ5NDAxMjA2Mjc5LTc5ZDE1ZTNiOGM3ZGMyMmY1NTAxYWZhODE0MWM5N2JlZDk1NDU0YTViYzk4NTk3OTRiMDQzNGQ1YTc4YmRlMTk)

View File

@@ -14,7 +14,7 @@ This gateio package is part of the GoCryptoTrader codebase.
## This is still in active development
You can track ideas, planned features and what's in progresss on this Trello board: [https://trello.com/b/ZAhMhpOy/gocryptotrader](https://trello.com/b/ZAhMhpOy/gocryptotrader).
You can track ideas, planned features and what's in progress on this Trello board: [https://trello.com/b/ZAhMhpOy/gocryptotrader](https://trello.com/b/ZAhMhpOy/gocryptotrader).
Join our slack to discuss all things related to GoCryptoTrader! [GoCryptoTrader Slack](https://join.slack.com/t/gocryptotrader/shared_invite/enQtNTQ5NDAxMjA2Mjc5LTc5ZDE1ZTNiOGM3ZGMyMmY1NTAxYWZhODE0MWM5N2JlZDk1NDU0YTViYzk4NTk3OTRiMDQzNGQ1YTc4YmRlMTk)

View File

@@ -14,7 +14,7 @@ This gemini package is part of the GoCryptoTrader codebase.
## This is still in active development
You can track ideas, planned features and what's in progresss on this Trello board: [https://trello.com/b/ZAhMhpOy/gocryptotrader](https://trello.com/b/ZAhMhpOy/gocryptotrader).
You can track ideas, planned features and what's in progress on this Trello board: [https://trello.com/b/ZAhMhpOy/gocryptotrader](https://trello.com/b/ZAhMhpOy/gocryptotrader).
Join our slack to discuss all things related to GoCryptoTrader! [GoCryptoTrader Slack](https://join.slack.com/t/gocryptotrader/shared_invite/enQtNTQ5NDAxMjA2Mjc5LTc5ZDE1ZTNiOGM3ZGMyMmY1NTAxYWZhODE0MWM5N2JlZDk1NDU0YTViYzk4NTk3OTRiMDQzNGQ1YTc4YmRlMTk)

View File

@@ -14,7 +14,7 @@ This hitbtc package is part of the GoCryptoTrader codebase.
## This is still in active development
You can track ideas, planned features and what's in progresss on this Trello board: [https://trello.com/b/ZAhMhpOy/gocryptotrader](https://trello.com/b/ZAhMhpOy/gocryptotrader).
You can track ideas, planned features and what's in progress on this Trello board: [https://trello.com/b/ZAhMhpOy/gocryptotrader](https://trello.com/b/ZAhMhpOy/gocryptotrader).
Join our slack to discuss all things related to GoCryptoTrader! [GoCryptoTrader Slack](https://join.slack.com/t/gocryptotrader/shared_invite/enQtNTQ5NDAxMjA2Mjc5LTc5ZDE1ZTNiOGM3ZGMyMmY1NTAxYWZhODE0MWM5N2JlZDk1NDU0YTViYzk4NTk3OTRiMDQzNGQ1YTc4YmRlMTk)

View File

@@ -14,7 +14,7 @@ This huobi package is part of the GoCryptoTrader codebase.
## This is still in active development
You can track ideas, planned features and what's in progresss on this Trello board: [https://trello.com/b/ZAhMhpOy/gocryptotrader](https://trello.com/b/ZAhMhpOy/gocryptotrader).
You can track ideas, planned features and what's in progress on this Trello board: [https://trello.com/b/ZAhMhpOy/gocryptotrader](https://trello.com/b/ZAhMhpOy/gocryptotrader).
Join our slack to discuss all things related to GoCryptoTrader! [GoCryptoTrader Slack](https://join.slack.com/t/gocryptotrader/shared_invite/enQtNTQ5NDAxMjA2Mjc5LTc5ZDE1ZTNiOGM3ZGMyMmY1NTAxYWZhODE0MWM5N2JlZDk1NDU0YTViYzk4NTk3OTRiMDQzNGQ1YTc4YmRlMTk)

View File

@@ -485,7 +485,7 @@ func (h *HUOBI) wsGenerateSignature(timestamp, endpoint string) []byte {
values.Set("Timestamp", timestamp)
host := "api.huobi.pro"
payload := fmt.Sprintf("%s\n%s\n%s\n%s",
"GET", host, endpoint, values.Encode())
http.MethodGet, host, endpoint, values.Encode())
return crypto.GetHMAC(crypto.HashSHA256, []byte(payload), []byte(h.API.Credentials.Secret))
}

View File

@@ -14,7 +14,7 @@ This itbit package is part of the GoCryptoTrader codebase.
## This is still in active development
You can track ideas, planned features and what's in progresss on this Trello board: [https://trello.com/b/ZAhMhpOy/gocryptotrader](https://trello.com/b/ZAhMhpOy/gocryptotrader).
You can track ideas, planned features and what's in progress on this Trello board: [https://trello.com/b/ZAhMhpOy/gocryptotrader](https://trello.com/b/ZAhMhpOy/gocryptotrader).
Join our slack to discuss all things related to GoCryptoTrader! [GoCryptoTrader Slack](https://join.slack.com/t/gocryptotrader/shared_invite/enQtNTQ5NDAxMjA2Mjc5LTc5ZDE1ZTNiOGM3ZGMyMmY1NTAxYWZhODE0MWM5N2JlZDk1NDU0YTViYzk4NTk3OTRiMDQzNGQ1YTc4YmRlMTk)

View File

@@ -14,7 +14,7 @@ This kraken package is part of the GoCryptoTrader codebase.
## This is still in active development
You can track ideas, planned features and what's in progresss on this Trello board: [https://trello.com/b/ZAhMhpOy/gocryptotrader](https://trello.com/b/ZAhMhpOy/gocryptotrader).
You can track ideas, planned features and what's in progress on this Trello board: [https://trello.com/b/ZAhMhpOy/gocryptotrader](https://trello.com/b/ZAhMhpOy/gocryptotrader).
Join our slack to discuss all things related to GoCryptoTrader! [GoCryptoTrader Slack](https://join.slack.com/t/gocryptotrader/shared_invite/enQtNTQ5NDAxMjA2Mjc5LTc5ZDE1ZTNiOGM3ZGMyMmY1NTAxYWZhODE0MWM5N2JlZDk1NDU0YTViYzk4NTk3OTRiMDQzNGQ1YTc4YmRlMTk)

View File

@@ -14,7 +14,7 @@ This lakebtc package is part of the GoCryptoTrader codebase.
## This is still in active development
You can track ideas, planned features and what's in progresss on this Trello board: [https://trello.com/b/ZAhMhpOy/gocryptotrader](https://trello.com/b/ZAhMhpOy/gocryptotrader).
You can track ideas, planned features and what's in progress on this Trello board: [https://trello.com/b/ZAhMhpOy/gocryptotrader](https://trello.com/b/ZAhMhpOy/gocryptotrader).
Join our slack to discuss all things related to GoCryptoTrader! [GoCryptoTrader Slack](https://join.slack.com/t/gocryptotrader/shared_invite/enQtNTQ5NDAxMjA2Mjc5LTc5ZDE1ZTNiOGM3ZGMyMmY1NTAxYWZhODE0MWM5N2JlZDk1NDU0YTViYzk4NTk3OTRiMDQzNGQ1YTc4YmRlMTk)

View File

@@ -14,7 +14,7 @@ This lbank package is part of the GoCryptoTrader codebase.
## This is still in active development
You can track ideas, planned features and what's in progresss on this Trello board: [https://trello.com/b/ZAhMhpOy/gocryptotrader](https://trello.com/b/ZAhMhpOy/gocryptotrader).
You can track ideas, planned features and what's in progress on this Trello board: [https://trello.com/b/ZAhMhpOy/gocryptotrader](https://trello.com/b/ZAhMhpOy/gocryptotrader).
Join our slack to discuss all things related to GoCryptoTrader! [GoCryptoTrader Slack](https://join.slack.com/t/gocryptotrader/shared_invite/enQtNTQ5NDAxMjA2Mjc5LTc5ZDE1ZTNiOGM3ZGMyMmY1NTAxYWZhODE0MWM5N2JlZDk1NDU0YTViYzk4NTk3OTRiMDQzNGQ1YTc4YmRlMTk)

View File

@@ -14,7 +14,7 @@ This localbitcoins package is part of the GoCryptoTrader codebase.
## This is still in active development
You can track ideas, planned features and what's in progresss on this Trello board: [https://trello.com/b/ZAhMhpOy/gocryptotrader](https://trello.com/b/ZAhMhpOy/gocryptotrader).
You can track ideas, planned features and what's in progress on this Trello board: [https://trello.com/b/ZAhMhpOy/gocryptotrader](https://trello.com/b/ZAhMhpOy/gocryptotrader).
Join our slack to discuss all things related to GoCryptoTrader! [GoCryptoTrader Slack](https://join.slack.com/t/gocryptotrader/shared_invite/enQtNTQ5NDAxMjA2Mjc5LTc5ZDE1ZTNiOGM3ZGMyMmY1NTAxYWZhODE0MWM5N2JlZDk1NDU0YTViYzk4NTk3OTRiMDQzNGQ1YTc4YmRlMTk)

View File

@@ -14,7 +14,7 @@ This Mock package is part of the GoCryptoTrader codebase.
## This is still in active development
You can track ideas, planned features and what's in progresss on this Trello board: [https://trello.com/b/ZAhMhpOy/gocryptotrader](https://trello.com/b/ZAhMhpOy/gocryptotrader).
You can track ideas, planned features and what's in progress on this Trello board: [https://trello.com/b/ZAhMhpOy/gocryptotrader](https://trello.com/b/ZAhMhpOy/gocryptotrader).
Join our slack to discuss all things related to GoCryptoTrader! [GoCryptoTrader Slack](https://join.slack.com/t/gocryptotrader/shared_invite/enQtNTQ5NDAxMjA2Mjc5LTc5ZDE1ZTNiOGM3ZGMyMmY1NTAxYWZhODE0MWM5N2JlZDk1NDU0YTViYzk4NTk3OTRiMDQzNGQ1YTc4YmRlMTk)

View File

@@ -14,7 +14,7 @@ This nonce package is part of the GoCryptoTrader codebase.
## This is still in active development
You can track ideas, planned features and what's in progresss on this Trello board: [https://trello.com/b/ZAhMhpOy/gocryptotrader](https://trello.com/b/ZAhMhpOy/gocryptotrader).
You can track ideas, planned features and what's in progress on this Trello board: [https://trello.com/b/ZAhMhpOy/gocryptotrader](https://trello.com/b/ZAhMhpOy/gocryptotrader).
Join our slack to discuss all things related to GoCryptoTrader! [GoCryptoTrader Slack](https://join.slack.com/t/gocryptotrader/shared_invite/enQtNTQ5NDAxMjA2Mjc5LTc5ZDE1ZTNiOGM3ZGMyMmY1NTAxYWZhODE0MWM5N2JlZDk1NDU0YTViYzk4NTk3OTRiMDQzNGQ1YTc4YmRlMTk)

View File

@@ -14,7 +14,7 @@ This okcoin package is part of the GoCryptoTrader codebase.
## This is still in active development
You can track ideas, planned features and what's in progresss on this Trello board: [https://trello.com/b/ZAhMhpOy/gocryptotrader](https://trello.com/b/ZAhMhpOy/gocryptotrader).
You can track ideas, planned features and what's in progress on this Trello board: [https://trello.com/b/ZAhMhpOy/gocryptotrader](https://trello.com/b/ZAhMhpOy/gocryptotrader).
Join our slack to discuss all things related to GoCryptoTrader! [GoCryptoTrader Slack](https://join.slack.com/t/gocryptotrader/shared_invite/enQtNTQ5NDAxMjA2Mjc5LTc5ZDE1ZTNiOGM3ZGMyMmY1NTAxYWZhODE0MWM5N2JlZDk1NDU0YTViYzk4NTk3OTRiMDQzNGQ1YTc4YmRlMTk)

View File

@@ -14,7 +14,7 @@ This okex package is part of the GoCryptoTrader codebase.
## This is still in active development
You can track ideas, planned features and what's in progresss on this Trello board: [https://trello.com/b/ZAhMhpOy/gocryptotrader](https://trello.com/b/ZAhMhpOy/gocryptotrader).
You can track ideas, planned features and what's in progress on this Trello board: [https://trello.com/b/ZAhMhpOy/gocryptotrader](https://trello.com/b/ZAhMhpOy/gocryptotrader).
Join our slack to discuss all things related to GoCryptoTrader! [GoCryptoTrader Slack](https://join.slack.com/t/gocryptotrader/shared_invite/enQtNTQ5NDAxMjA2Mjc5LTc5ZDE1ZTNiOGM3ZGMyMmY1NTAxYWZhODE0MWM5N2JlZDk1NDU0YTViYzk4NTk3OTRiMDQzNGQ1YTc4YmRlMTk)

View File

@@ -14,7 +14,7 @@ This okex package is part of the GoCryptoTrader codebase.
## This is still in active development
You can track ideas, planned features and what's in progresss on this Trello board: [https://trello.com/b/ZAhMhpOy/gocryptotrader](https://trello.com/b/ZAhMhpOy/gocryptotrader).
You can track ideas, planned features and what's in progress on this Trello board: [https://trello.com/b/ZAhMhpOy/gocryptotrader](https://trello.com/b/ZAhMhpOy/gocryptotrader).
Join our slack to discuss all things related to GoCryptoTrader! [GoCryptoTrader Slack](https://gocryptotrader.herokuapp.com/)

View File

@@ -14,7 +14,7 @@ This orders package is part of the GoCryptoTrader codebase.
## This is still in active development
You can track ideas, planned features and what's in progresss on this Trello board: [https://trello.com/b/ZAhMhpOy/gocryptotrader](https://trello.com/b/ZAhMhpOy/gocryptotrader).
You can track ideas, planned features and what's in progress on this Trello board: [https://trello.com/b/ZAhMhpOy/gocryptotrader](https://trello.com/b/ZAhMhpOy/gocryptotrader).
Join our slack to discuss all things related to GoCryptoTrader! [GoCryptoTrader Slack](https://join.slack.com/t/gocryptotrader/shared_invite/enQtNTQ5NDAxMjA2Mjc5LTc5ZDE1ZTNiOGM3ZGMyMmY1NTAxYWZhODE0MWM5N2JlZDk1NDU0YTViYzk4NTk3OTRiMDQzNGQ1YTc4YmRlMTk)

View File

@@ -14,7 +14,7 @@ This orderbook package is part of the GoCryptoTrader codebase.
## This is still in active development
You can track ideas, planned features and what's in progresss on this Trello board: [https://trello.com/b/ZAhMhpOy/gocryptotrader](https://trello.com/b/ZAhMhpOy/gocryptotrader).
You can track ideas, planned features and what's in progress on this Trello board: [https://trello.com/b/ZAhMhpOy/gocryptotrader](https://trello.com/b/ZAhMhpOy/gocryptotrader).
Join our slack to discuss all things related to GoCryptoTrader! [GoCryptoTrader Slack](https://join.slack.com/t/gocryptotrader/shared_invite/enQtNTQ5NDAxMjA2Mjc5LTc5ZDE1ZTNiOGM3ZGMyMmY1NTAxYWZhODE0MWM5N2JlZDk1NDU0YTViYzk4NTk3OTRiMDQzNGQ1YTc4YmRlMTk)

View File

@@ -14,7 +14,7 @@ This poloniex package is part of the GoCryptoTrader codebase.
## This is still in active development
You can track ideas, planned features and what's in progresss on this Trello board: [https://trello.com/b/ZAhMhpOy/gocryptotrader](https://trello.com/b/ZAhMhpOy/gocryptotrader).
You can track ideas, planned features and what's in progress on this Trello board: [https://trello.com/b/ZAhMhpOy/gocryptotrader](https://trello.com/b/ZAhMhpOy/gocryptotrader).
Join our slack to discuss all things related to GoCryptoTrader! [GoCryptoTrader Slack](https://join.slack.com/t/gocryptotrader/shared_invite/enQtNTQ5NDAxMjA2Mjc5LTc5ZDE1ZTNiOGM3ZGMyMmY1NTAxYWZhODE0MWM5N2JlZDk1NDU0YTViYzk4NTk3OTRiMDQzNGQ1YTc4YmRlMTk)

View File

@@ -14,7 +14,7 @@ This request package is part of the GoCryptoTrader codebase.
## This is still in active development
You can track ideas, planned features and what's in progresss on this Trello board: [https://trello.com/b/ZAhMhpOy/gocryptotrader](https://trello.com/b/ZAhMhpOy/gocryptotrader).
You can track ideas, planned features and what's in progress on this Trello board: [https://trello.com/b/ZAhMhpOy/gocryptotrader](https://trello.com/b/ZAhMhpOy/gocryptotrader).
Join our slack to discuss all things related to GoCryptoTrader! [GoCryptoTrader Slack](https://join.slack.com/t/gocryptotrader/shared_invite/enQtNTQ5NDAxMjA2Mjc5LTc5ZDE1ZTNiOGM3ZGMyMmY1NTAxYWZhODE0MWM5N2JlZDk1NDU0YTViYzk4NTk3OTRiMDQzNGQ1YTc4YmRlMTk)

View File

@@ -14,7 +14,7 @@ This stats package is part of the GoCryptoTrader codebase.
## This is still in active development
You can track ideas, planned features and what's in progresss on this Trello board: [https://trello.com/b/ZAhMhpOy/gocryptotrader](https://trello.com/b/ZAhMhpOy/gocryptotrader).
You can track ideas, planned features and what's in progress on this Trello board: [https://trello.com/b/ZAhMhpOy/gocryptotrader](https://trello.com/b/ZAhMhpOy/gocryptotrader).
Join our slack to discuss all things related to GoCryptoTrader! [GoCryptoTrader Slack](https://join.slack.com/t/gocryptotrader/shared_invite/enQtNTQ5NDAxMjA2Mjc5LTc5ZDE1ZTNiOGM3ZGMyMmY1NTAxYWZhODE0MWM5N2JlZDk1NDU0YTViYzk4NTk3OTRiMDQzNGQ1YTc4YmRlMTk)

View File

@@ -14,7 +14,7 @@ This ticker package is part of the GoCryptoTrader codebase.
## This is still in active development
You can track ideas, planned features and what's in progresss on this Trello board: [https://trello.com/b/ZAhMhpOy/gocryptotrader](https://trello.com/b/ZAhMhpOy/gocryptotrader).
You can track ideas, planned features and what's in progress on this Trello board: [https://trello.com/b/ZAhMhpOy/gocryptotrader](https://trello.com/b/ZAhMhpOy/gocryptotrader).
Join our slack to discuss all things related to GoCryptoTrader! [GoCryptoTrader Slack](https://join.slack.com/t/gocryptotrader/shared_invite/enQtNTQ5NDAxMjA2Mjc5LTc5ZDE1ZTNiOGM3ZGMyMmY1NTAxYWZhODE0MWM5N2JlZDk1NDU0YTViYzk4NTk3OTRiMDQzNGQ1YTc4YmRlMTk)

View File

@@ -14,7 +14,7 @@ This yobit package is part of the GoCryptoTrader codebase.
## This is still in active development
You can track ideas, planned features and what's in progresss on this Trello board: [https://trello.com/b/ZAhMhpOy/gocryptotrader](https://trello.com/b/ZAhMhpOy/gocryptotrader).
You can track ideas, planned features and what's in progress on this Trello board: [https://trello.com/b/ZAhMhpOy/gocryptotrader](https://trello.com/b/ZAhMhpOy/gocryptotrader).
Join our slack to discuss all things related to GoCryptoTrader! [GoCryptoTrader Slack](https://join.slack.com/t/gocryptotrader/shared_invite/enQtNTQ5NDAxMjA2Mjc5LTc5ZDE1ZTNiOGM3ZGMyMmY1NTAxYWZhODE0MWM5N2JlZDk1NDU0YTViYzk4NTk3OTRiMDQzNGQ1YTc4YmRlMTk)

View File

@@ -14,7 +14,7 @@ This zb package is part of the GoCryptoTrader codebase.
## This is still in active development
You can track ideas, planned features and what's in progresss on this Trello board: [https://trello.com/b/ZAhMhpOy/gocryptotrader](https://trello.com/b/ZAhMhpOy/gocryptotrader).
You can track ideas, planned features and what's in progress on this Trello board: [https://trello.com/b/ZAhMhpOy/gocryptotrader](https://trello.com/b/ZAhMhpOy/gocryptotrader).
Join our slack to discuss all things related to GoCryptoTrader! [GoCryptoTrader Slack](https://join.slack.com/t/gocryptotrader/shared_invite/enQtNTQ5NDAxMjA2Mjc5LTc5ZDE1ZTNiOGM3ZGMyMmY1NTAxYWZhODE0MWM5N2JlZDk1NDU0YTViYzk4NTk3OTRiMDQzNGQ1YTc4YmRlMTk)

1
go.mod
View File

@@ -23,6 +23,7 @@ require (
github.com/urfave/cli v1.22.3
github.com/volatiletech/null v8.0.0+incompatible
golang.org/x/crypto v0.0.0-20190605123033-f99c8df09eb5
golang.org/x/net v0.0.0-20191002035440-2ec189313ef0
golang.org/x/sys v0.0.0-20191003212358-c178f38b412c // indirect
golang.org/x/time v0.0.0-20190308202827-9d24e82272b4
google.golang.org/genproto v0.0.0-20191002211648-c459b9ce5143

View File

@@ -14,7 +14,7 @@ This portfolio package is part of the GoCryptoTrader codebase.
## This is still in active development
You can track ideas, planned features and what's in progresss on this Trello board: [https://trello.com/b/ZAhMhpOy/gocryptotrader](https://trello.com/b/ZAhMhpOy/gocryptotrader).
You can track ideas, planned features and what's in progress on this Trello board: [https://trello.com/b/ZAhMhpOy/gocryptotrader](https://trello.com/b/ZAhMhpOy/gocryptotrader).
Join our slack to discuss all things related to GoCryptoTrader! [GoCryptoTrader Slack](https://join.slack.com/t/gocryptotrader/shared_invite/enQtNTQ5NDAxMjA2Mjc5LTc5ZDE1ZTNiOGM3ZGMyMmY1NTAxYWZhODE0MWM5N2JlZDk1NDU0YTViYzk4NTk3OTRiMDQzNGQ1YTc4YmRlMTk)

2
testdata/README.md vendored
View File

@@ -14,7 +14,7 @@ This testdata package is part of the GoCryptoTrader codebase.
## This is still in active development
You can track ideas, planned features and what's in progresss on this Trello board: [https://trello.com/b/ZAhMhpOy/gocryptotrader](https://trello.com/b/ZAhMhpOy/gocryptotrader).
You can track ideas, planned features and what's in progress on this Trello board: [https://trello.com/b/ZAhMhpOy/gocryptotrader](https://trello.com/b/ZAhMhpOy/gocryptotrader).
Join our slack to discuss all things related to GoCryptoTrader! [GoCryptoTrader Slack](https://join.slack.com/t/gocryptotrader/shared_invite/enQtNTQ5NDAxMjA2Mjc5LTc5ZDE1ZTNiOGM3ZGMyMmY1NTAxYWZhODE0MWM5N2JlZDk1NDU0YTViYzk4NTk3OTRiMDQzNGQ1YTc4YmRlMTk)

View File

@@ -14,7 +14,7 @@ This web package is part of the GoCryptoTrader codebase.
## This is still in active development
You can track ideas, planned features and what's in progresss on this Trello board: [https://trello.com/b/ZAhMhpOy/gocryptotrader](https://trello.com/b/ZAhMhpOy/gocryptotrader).
You can track ideas, planned features and what's in progress on this Trello board: [https://trello.com/b/ZAhMhpOy/gocryptotrader](https://trello.com/b/ZAhMhpOy/gocryptotrader).
Join our slack to discuss all things related to GoCryptoTrader! [GoCryptoTrader Slack](https://join.slack.com/t/gocryptotrader/shared_invite/enQtNTQ5NDAxMjA2Mjc5LTc5ZDE1ZTNiOGM3ZGMyMmY1NTAxYWZhODE0MWM5N2JlZDk1NDU0YTViYzk4NTk3OTRiMDQzNGQ1YTc4YmRlMTk)