Skip to content

Commit

Permalink
fix versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
larscom committed Sep 1, 2024
1 parent 8be43eb commit c2b5669
Show file tree
Hide file tree
Showing 18 changed files with 33 additions and 33 deletions.
26 changes: 13 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ using websockets. With the HTTP client you can do things like placing orders or
## 🚀 Installation

```shell
go get github.com/larscom/bitvavo-go@latest
go get github.com/larscom/bitvavo-go/v2@latest
```

## 💡 Usage

```shell
import "github.com/larscom/bitvavo-go/pkg/bitvavo"
import "github.com/larscom/bitvavo-go/v2/pkg/bitvavo"
```

## 👂 WebSocket
Expand All @@ -53,7 +53,7 @@ reauthenticating when the connection has been lost.
```go
package main

import "github.com/larscom/bitvavo-go/pkg/bitvavo"
import "github.com/larscom/bitvavo-go/v2/pkg/bitvavo"

func main() {
// listen for candle (public) events
Expand Down Expand Up @@ -83,7 +83,7 @@ func main() {
```go
package main

import "github.com/larscom/bitvavo-go/pkg/bitvavo"
import "github.com/larscom/bitvavo-go/v2/pkg/bitvavo"

func main() {
// listen for order (private) events
Expand Down Expand Up @@ -113,7 +113,7 @@ also provide your own as long as it implements the `DebugPrinter` interface.
```go
package main

import "github.com/larscom/bitvavo-go/pkg/bitvavo"
import "github.com/larscom/bitvavo-go/v2/pkg/bitvavo"

func main() {
listener := bitvavo.NewCandlesListener(bitvavo.WithWebSocketDefaultDebugPrinter())
Expand All @@ -130,7 +130,7 @@ package main

import (
"net/http"
"github.com/larscom/bitvavo-go/pkg/bitvavo"
"github.com/larscom/bitvavo-go/pkg/bitvavo/v2"
)

func main() {
Expand All @@ -146,7 +146,7 @@ It's possible to create your own wrapper arround the websocket and listen to mul
```go
package main

import "github.com/larscom/bitvavo-go/pkg/bitvavo"
import "github.com/larscom/bitvavo-go/v2/pkg/bitvavo"

func main() {
onMessage := func(data bitvavo.WebSocketEventData, err error) {
Expand Down Expand Up @@ -185,7 +185,7 @@ private endpoints.
```go
package main

import "github.com/larscom/bitvavo-go/pkg/bitvavo"
import "github.com/larscom/bitvavo-go/v2/pkg/bitvavo"

func main() {
// private http client (includes public as well)
Expand All @@ -205,7 +205,7 @@ func main() {
```go
package main

import "github.com/larscom/bitvavo-go/pkg/bitvavo"
import "github.com/larscom/bitvavo-go/v2/pkg/bitvavo"

func main() {
// public http client
Expand All @@ -227,7 +227,7 @@ Some endpoints have additional params which you can provide.
```go
package main

import "github.com/larscom/bitvavo-go/pkg/bitvavo"
import "github.com/larscom/bitvavo-go/v2/pkg/bitvavo"

func main() {
client := bitvavo.NewPublicHTTPClient()
Expand All @@ -250,7 +250,7 @@ package main

import (
"net/http"
"github.com/larscom/bitvavo-go/pkg/bitvavo"
"github.com/larscom/bitvavo-go/pkg/bitvavo/v2"
)

func main() {
Expand All @@ -270,7 +270,7 @@ The default window time is: `10000` (10 seconds)
package main

import (
"github.com/larscom/bitvavo-go/pkg/bitvavo"
"github.com/larscom/bitvavo-go/pkg/bitvavo/v2"
)

func main() {
Expand All @@ -288,7 +288,7 @@ also provide your own as long as it implements the `DebugPrinter` interface.
package main

import (
"github.com/larscom/bitvavo-go/pkg/bitvavo"
"github.com/larscom/bitvavo-go/pkg/bitvavo/v2"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion example/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ package main

import (
"context"
"github.com/larscom/bitvavo-go/v2/pkg/bitvavo"
"log"
"os"
"time"

"github.com/joho/godotenv"
"github.com/larscom/bitvavo-go/pkg/bitvavo"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/larscom/bitvavo-go
module github.com/larscom/bitvavo-go/v2

go 1.22.4

Expand Down
2 changes: 1 addition & 1 deletion internal/crypto/crypto_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package crypto

import (
"github.com/larscom/bitvavo-go/internal/test"
"github.com/larscom/bitvavo-go/v2/internal/test"
"testing"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/bitvavo/asset.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package bitvavo

import (
"github.com/goccy/go-json"
"github.com/larscom/bitvavo-go/internal/util"
"github.com/larscom/bitvavo-go/v2/internal/util"
"github.com/orsinium-labs/enum"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/bitvavo/book.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package bitvavo

import (
"github.com/goccy/go-json"
"github.com/larscom/bitvavo-go/internal/util"
"github.com/larscom/bitvavo-go/v2/internal/util"
)

type Book struct {
Expand Down
2 changes: 1 addition & 1 deletion pkg/bitvavo/candle.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"time"

"github.com/goccy/go-json"
"github.com/larscom/bitvavo-go/internal/util"
"github.com/larscom/bitvavo-go/v2/internal/util"
)

var ErrExpectedCandleLenght = func(exp, act int) error { return fmt.Errorf("expected length '%d' for candle, but was: %d", exp, act) }
Expand Down
2 changes: 1 addition & 1 deletion pkg/bitvavo/deposit.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"time"

"github.com/goccy/go-json"
"github.com/larscom/bitvavo-go/internal/util"
"github.com/larscom/bitvavo-go/v2/internal/util"
)

type DepositAsset struct {
Expand Down
2 changes: 1 addition & 1 deletion pkg/bitvavo/error.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package bitvavo
import (
"fmt"

"github.com/larscom/bitvavo-go/internal/util"
"github.com/larscom/bitvavo-go/v2/internal/util"
)

// ApiError Complete list of errorCodes: https://docs.bitvavo.com/#tag/Error-messages
Expand Down
2 changes: 1 addition & 1 deletion pkg/bitvavo/fill.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package bitvavo

import (
"github.com/goccy/go-json"
"github.com/larscom/bitvavo-go/internal/util"
"github.com/larscom/bitvavo-go/v2/internal/util"
)

type Fill struct {
Expand Down
4 changes: 2 additions & 2 deletions pkg/bitvavo/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import (
"time"

"github.com/goccy/go-json"
"github.com/larscom/bitvavo-go/internal/crypto"
"github.com/larscom/bitvavo-go/internal/util"
"github.com/larscom/bitvavo-go/v2/internal/crypto"
"github.com/larscom/bitvavo-go/v2/internal/util"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion pkg/bitvavo/market.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package bitvavo

import (
"github.com/goccy/go-json"
"github.com/larscom/bitvavo-go/internal/util"
"github.com/larscom/bitvavo-go/v2/internal/util"
"github.com/orsinium-labs/enum"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/bitvavo/order.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"net/url"
"time"

"github.com/larscom/bitvavo-go/internal/util"
"github.com/larscom/bitvavo-go/v2/internal/util"
"github.com/orsinium-labs/enum"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/bitvavo/order_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package bitvavo

import (
"fmt"
"github.com/larscom/bitvavo-go/internal/test"
"github.com/larscom/bitvavo-go/v2/internal/test"
"testing"

"github.com/goccy/go-json"
Expand Down
2 changes: 1 addition & 1 deletion pkg/bitvavo/ticker24h.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package bitvavo

import (
"github.com/goccy/go-json"
"github.com/larscom/bitvavo-go/internal/util"
"github.com/larscom/bitvavo-go/v2/internal/util"
)

type Ticker24h struct {
Expand Down
2 changes: 1 addition & 1 deletion pkg/bitvavo/trade.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"time"

"github.com/goccy/go-json"
"github.com/larscom/bitvavo-go/internal/util"
"github.com/larscom/bitvavo-go/v2/internal/util"
)

type TradeParams struct {
Expand Down
6 changes: 3 additions & 3 deletions pkg/bitvavo/websocket.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ import (

"github.com/goccy/go-json"

"github.com/larscom/bitvavo-go/internal/crypto"
"github.com/larscom/bitvavo-go/internal/socket"
"github.com/larscom/bitvavo-go/internal/util"
"github.com/larscom/bitvavo-go/v2/internal/crypto"
"github.com/larscom/bitvavo-go/v2/internal/socket"
"github.com/larscom/bitvavo-go/v2/internal/util"
"github.com/orsinium-labs/enum"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/bitvavo/withdrawal.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"time"

"github.com/goccy/go-json"
"github.com/larscom/bitvavo-go/internal/util"
"github.com/larscom/bitvavo-go/v2/internal/util"
"github.com/orsinium-labs/enum"
)

Expand Down

0 comments on commit c2b5669

Please sign in to comment.