forked from openware/gocryptotrader
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add directories to exclusion list && change default repo string (thra…
…sher-corp#387) * Add directories to exclusion list && change default repo string * Add in .idea folder to directory exclusion list * cleaned * Added support for calling the tool outside of its file * fix formatting * changed strings
- Loading branch information
Showing
65 changed files
with
482 additions
and
163 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 40 additions & 0 deletions
40
cmd/documentation/currency_templates/fx_exchangeratesapi.tmpl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
{{define "currency forexprovider exchangeratesapi.io" -}} | ||
{{template "header" .}} | ||
## Current Features for {{.Name}} | ||
|
||
+ Fetches up to date curency data from [Exchange rates API]("http://exchangeratesapi.io") | ||
|
||
### How to enable | ||
|
||
+ [Enable via configuration](https://github.com/thrasher-corp/gocryptotrader/tree/master/config#enable-currency-via-config-example) | ||
|
||
+ Individual package example below: | ||
```go | ||
import ( | ||
"github.com/thrasher-corp/gocryptotrader/currency/forexprovider/base" | ||
"github.com/thrasher-corp/gocryptotrader/currency/forexprovider/exchangerates" | ||
) | ||
|
||
c := exchangerates.ExchangeRates{} | ||
|
||
// Define configuration | ||
newSettings := base.Settings{ | ||
Name: "ExchangeRates", | ||
Enabled: true, | ||
Verbose: false, | ||
RESTPollingDelay: time.Duration, | ||
APIKey: "key", | ||
APIKeyLvl: "keylvl", | ||
PrimaryProvider: true, | ||
} | ||
|
||
c.Setup(newSettings) | ||
|
||
mapstringfloat, err := c.GetRates("USD", "EUR,CHY") | ||
// Handle error | ||
``` | ||
|
||
### Please click GoDocs chevron above to view current GoDoc information for this package | ||
{{template "contributions"}} | ||
{{template "donations"}} | ||
{{- end}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.