Skip to content

Commit

Permalink
Merge branch 'master' into coinbase_api_revamp
Browse files Browse the repository at this point in the history
  • Loading branch information
cranktakular committed Nov 28, 2023
2 parents aa2efef + 0620ee0 commit 3560599
Show file tree
Hide file tree
Showing 198 changed files with 11,830 additions and 10,006 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/proto-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
go install google.golang.org/protobuf/cmd/protoc-gen-go
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc
- uses: bufbuild/buf-setup-action@v1.26.1
- uses: bufbuild/buf-setup-action@v1.28.1

- name: buf generate
working-directory: ./gctrpc
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:

steps:
- name: Cancel previous workflow runs
uses: styfle/cancel-workflow-action@0.11.0
uses: styfle/cancel-workflow-action@0.12.0
with:
access_token: ${{ github.token }}

Expand Down Expand Up @@ -76,7 +76,7 @@ jobs:

steps:
- name: Cancel previous workflow runs
uses: styfle/cancel-workflow-action@0.11.0
uses: styfle/cancel-workflow-action@0.12.0
with:
access_token: ${{ github.token }}

Expand Down Expand Up @@ -125,14 +125,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Cancel previous workflow runs
uses: styfle/cancel-workflow-action@0.11.0
uses: styfle/cancel-workflow-action@0.12.0
with:
access_token: ${{ github.token }}

- uses: actions/checkout@v4

- name: Use Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: '10.8.x'

Expand Down
6 changes: 3 additions & 3 deletions CONTRIBUTORS
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
Thanks to the following contributors:
thrasher- | https://github.com/thrasher-
shazbert | https://github.com/shazbert
gloriousCode | https://github.com/gloriousCode
dependabot[bot] | https://github.com/apps/dependabot
gloriousCode | https://github.com/gloriousCode
dependabot-preview[bot] | https://github.com/apps/dependabot-preview
xtda | https://github.com/xtda
gbjk | https://github.com/gbjk
Expand All @@ -13,13 +13,13 @@ vazha | https://github.com/vazha
ydm | https://github.com/ydm
ermalguni | https://github.com/ermalguni
MadCozBadd | https://github.com/MadCozBadd
Beadko | https://github.com/Beadko
vadimzhukck | https://github.com/vadimzhukck
140am | https://github.com/140am
marcofranssen | https://github.com/marcofranssen
geseq | https://github.com/geseq
Beadko | https://github.com/Beadko
TaltaM | https://github.com/TaltaM
samuael | https://github.com/samuael
TaltaM | https://github.com/TaltaM
dackroyd | https://github.com/dackroyd
cranktakular | https://github.com/cranktakular
khcchiu | https://github.com/khcchiu
Expand Down
13 changes: 6 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ Join our slack to discuss all things related to GoCryptoTrader! [GoCryptoTrader
| Bithumb | Yes | Yes | NA |
| BitMEX | Yes | Yes | NA |
| Bitstamp | Yes | Yes | No |
| Bittrex | Yes | Yes | NA |
| BTCMarkets | Yes | Yes | NA |
| BTSE | Yes | Yes | NA |
| Bybit | Yes | Yes | NA |
Expand Down Expand Up @@ -145,25 +144,25 @@ Binaries will be published once the codebase reaches a stable condition.
|User|Contribution Amount|
|--|--|
| [thrasher-](https://github.com/thrasher-) | 683 |
| [shazbert](https://github.com/shazbert) | 301 |
| [gloriousCode](https://github.com/gloriousCode) | 219 |
| [dependabot[bot]](https://github.com/apps/dependabot) | 207 |
| [shazbert](https://github.com/shazbert) | 313 |
| [dependabot[bot]](https://github.com/apps/dependabot) | 227 |
| [gloriousCode](https://github.com/gloriousCode) | 224 |
| [dependabot-preview[bot]](https://github.com/apps/dependabot-preview) | 88 |
| [xtda](https://github.com/xtda) | 47 |
| [gbjk](https://github.com/gbjk) | 35 |
| [gbjk](https://github.com/gbjk) | 40 |
| [lrascao](https://github.com/lrascao) | 27 |
| [Rots](https://github.com/Rots) | 15 |
| [vazha](https://github.com/vazha) | 15 |
| [ydm](https://github.com/ydm) | 15 |
| [ermalguni](https://github.com/ermalguni) | 14 |
| [MadCozBadd](https://github.com/MadCozBadd) | 13 |
| [Beadko](https://github.com/Beadko) | 10 |
| [vadimzhukck](https://github.com/vadimzhukck) | 10 |
| [140am](https://github.com/140am) | 8 |
| [marcofranssen](https://github.com/marcofranssen) | 8 |
| [geseq](https://github.com/geseq) | 8 |
| [Beadko](https://github.com/Beadko) | 6 |
| [samuael](https://github.com/samuael) | 7 |
| [TaltaM](https://github.com/TaltaM) | 6 |
| [samuael](https://github.com/samuael) | 6 |
| [dackroyd](https://github.com/dackroyd) | 5 |
| [cranktakular](https://github.com/cranktakular) | 5 |
| [khcchiu](https://github.com/khcchiu) | 5 |
Expand Down
4 changes: 1 addition & 3 deletions backtester/data/kline/live/live_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,7 @@ func TestLoadTrades(t *testing.T) {
ConfigFormat: pFormat,
}
var data *gctkline.Item
// start is 10 mins in the past to ensure there are some trades to pull from the exchange
start := time.Now().Add(-time.Minute * 10)
data, err = LoadData(context.Background(), start, exch, common.DataTrade, interval.Duration(), cp, currency.EMPTYPAIR, a, true)
data, err = LoadData(context.Background(), time.Now().Add(-interval.Duration()*60), exch, common.DataTrade, interval.Duration(), cp, currency.EMPTYPAIR, a, true)
if err != nil {
t.Fatal(err)
}
Expand Down
4 changes: 2 additions & 2 deletions backtester/report/report_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,11 +135,11 @@ func TestGenerateReport(t *testing.T) {
},
},
{
Exchange: "Bittrex",
Exchange: "Bitstamp",
Asset: a,
Pair: currency.NewPair(currency.BTC, currency.USD),
Interval: gctkline.OneDay,
Watermark: "BITTREX - SPOT - BTC-USD - 1d",
Watermark: "BITSTAMP - SPOT - BTC-USD - 1d",
Candles: []DetailedCandle{
{
UnixMilli: time.Date(2020, 12, 12, 0, 0, 0, 0, time.UTC).UnixMilli(),
Expand Down
11 changes: 0 additions & 11 deletions cmd/apichecker/testupdates.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,17 +72,6 @@
},
"Disabled": false
},
{
"Name": "Bittrex",
"CheckType": "GitHub Sha Check",
"Data": {
"GitHubData": {
"Repo": "Bittrex/bittrex.github.io",
"Sha": "fc1ea9c10c48aa82c4dc2c6be74887ef61b5b31b"
}
},
"Disabled": false
},
{
"Name": "Coinut",
"CheckType": "GitHub Sha Check",
Expand Down
11 changes: 0 additions & 11 deletions cmd/apichecker/updates.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,17 +72,6 @@
},
"Disabled": false
},
{
"Name": "Bittrex",
"CheckType": "GitHub Sha Check",
"Data": {
"GitHubData": {
"Repo": "Bittrex/bittrex.github.io",
"Sha": "fc1ea9c10c48aa82c4dc2c6be74887ef61b5b31b"
}
},
"Disabled": false
},
{
"Name": "Coinut",
"CheckType": "GitHub Sha Check",
Expand Down
1 change: 0 additions & 1 deletion cmd/documentation/currency_templates/fx.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
+ Exchange Rates support
+ Fixer.io support
+ Open Exchange Rates support
+ ExchangeRate.host support

### Please click GoDocs chevron above to view current GoDoc information for this package
{{template "contributions"}}
Expand Down
35 changes: 0 additions & 35 deletions cmd/documentation/currency_templates/fx_exchangeratehost.tmpl

This file was deleted.

103 changes: 0 additions & 103 deletions cmd/documentation/exchanges_templates/bittrex.tmpl

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ _b in this context is an `IBotExchange` implemented struct_
| Bithumb | Yes | Yes | No |
| BitMEX | Yes | Yes | Yes |
| Bitstamp | Yes | Yes | No |
| Bittrex | Yes | Yes | No |
| BTCMarkets | Yes | Yes | No |
| BTSE | Yes | Yes | No |
| Bybit | Yes | Yes | Yes |
Expand Down
1 change: 0 additions & 1 deletion cmd/documentation/root_templates/root_readme.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ Join our slack to discuss all things related to GoCryptoTrader! [GoCryptoTrader
| Bithumb | Yes | Yes | NA |
| BitMEX | Yes | Yes | NA |
| Bitstamp | Yes | Yes | No |
| Bittrex | Yes | Yes | NA |
| BTCMarkets | Yes | Yes | NA |
| BTSE | Yes | Yes | NA |
| Bybit | Yes | Yes | NA |
Expand Down
11 changes: 11 additions & 0 deletions cmd/exchange_template/wrapper_file.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import (
"github.com/thrasher-corp/gocryptotrader/exchanges/account"
"github.com/thrasher-corp/gocryptotrader/exchanges/asset"
"github.com/thrasher-corp/gocryptotrader/exchanges/deposit"
"github.com/thrasher-corp/gocryptotrader/exchanges/fundingrate"
"github.com/thrasher-corp/gocryptotrader/exchanges/futures"
"github.com/thrasher-corp/gocryptotrader/exchanges/kline"
"github.com/thrasher-corp/gocryptotrader/exchanges/order"
Expand Down Expand Up @@ -547,4 +548,14 @@ func ({{.Variable}} *{{.CapitalName}}) GetFuturesContractDetails(context.Context
return nil, common.ErrNotYetImplemented
}

// GetLatestFundingRates returns the latest funding rates data
func ({{.Variable}} *{{.CapitalName}}) GetLatestFundingRates(_ context.Context, _ *fundingrate.LatestRateRequest) ([]fundingrate.LatestRateResponse, error) {
return nil, common.ErrNotYetImplemented
}

// UpdateOrderExecutionLimits updates order execution limits
func ({{.Variable}} *{{.CapitalName}}) UpdateOrderExecutionLimits(_ context.Context, _ asset.Item) error {
return common.ErrNotYetImplemented
}

{{end}}
6 changes: 3 additions & 3 deletions cmd/exchange_wrapper_issues/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -515,14 +515,14 @@ func testWrappers(e exchange.IBotExchange, base *exchange.Base, config *Config)
Response: jsonifyInterface([]interface{}{""}),
})

fundingRateRequest := &fundingrate.RatesRequest{
fundingRateRequest := &fundingrate.HistoricalRatesRequest{
Asset: assetTypes[i],
Pair: p,
StartDate: time.Now().Add(-time.Hour),
EndDate: time.Now(),
}
var fundingRateResponse *fundingrate.Rates
fundingRateResponse, err = e.GetFundingRates(context.TODO(), fundingRateRequest)
var fundingRateResponse *fundingrate.HistoricalRates
fundingRateResponse, err = e.GetHistoricalFundingRates(context.TODO(), fundingRateRequest)
msg = ""
if err != nil {
msg = err.Error()
Expand Down
Loading

0 comments on commit 3560599

Please sign in to comment.