Skip to content

removing pulse #251

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 0 additions & 58 deletions docs/rest_v2.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,6 @@ type Client struct {
Status StatusService
Derivatives DerivativesService
Funding FundingService
Pulse PulseService
Invoice InvoiceService
Market MarketService

Expand Down Expand Up @@ -708,63 +707,6 @@ func (s *PositionService) Claim(cp *position.ClaimRequest) (*notification.Notifi
Claim - submits a request to claim an active position with the given id see
https://docs.bitfinex.com/reference#claim-position for more info

#### type PulseService

```go
type PulseService struct {
Synchronous
}
```


#### func (*PulseService) AddComment

```go
func (ps *PulseService) AddComment(p *pulse.Pulse) (*pulse.Pulse, error)
```
AddComment submits pulse comment see
https://docs.bitfinex.com/reference#rest-auth-pulse-add

#### func (*PulseService) AddPulse

```go
func (ps *PulseService) AddPulse(p *pulse.Pulse) (*pulse.Pulse, error)
```
AddPulse submits pulse message see
https://docs.bitfinex.com/reference#rest-auth-pulse-add

#### func (*PulseService) DeletePulse

```go
func (ps *PulseService) DeletePulse(pid string) (int, error)
```
DeletePulse removes your pulse message. Returns 0 if no pulse was deleted and 1
if it was see https://docs.bitfinex.com/reference#rest-auth-pulse-del

#### func (*PulseService) PublicPulseHistory

```go
func (ps *PulseService) PublicPulseHistory(limit int, end common.Mts) ([]*pulse.Pulse, error)
```
PublicPulseHistory returns latest pulse messages. You can specify an end
timestamp to view older messages. see
https://docs.bitfinex.com/reference#rest-public-pulse-hist

#### func (*PulseService) PublicPulseProfile

```go
func (ps *PulseService) PublicPulseProfile(nickname Nickname) (*pulseprofile.PulseProfile, error)
```
PublicPulseProfile returns details for a specific Pulse profile
https://docs.bitfinex.com/reference#rest-public-pulse-profile

#### func (*PulseService) PulseHistory

```go
func (ps *PulseService) PulseHistory() ([]*pulse.Pulse, error)
```
PulseHistory allows you to retrieve your pulse history. see
https://docs.bitfinex.com/reference#rest-auth-pulse-hist

#### type Request

Expand Down
7 changes: 4 additions & 3 deletions examples/v2/book-feed/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
_ "net/http/pprof"
"os"
"os/signal"
"syscall"

"github.com/bitfinexcom/bitfinex-api-go/pkg/models/common"
"github.com/bitfinexcom/bitfinex-api-go/v2/websocket"
Expand All @@ -31,13 +32,13 @@ func main() {
}
}()
done := make(chan bool, 1)
interrupt := make(chan os.Signal)
signal.Notify(interrupt, os.Interrupt, os.Kill)
sigs := make(chan os.Signal, 1)
signal.Notify(sigs, syscall.SIGINT, syscall.SIGHUP, syscall.SIGTERM)
go func() {
log.Println(http.ListenAndServe("localhost:6060", nil))
}()
go func() {
<-interrupt
<-sigs
client.Close()
done <- true
os.Exit(0)
Expand Down
32 changes: 0 additions & 32 deletions examples/v2/rest-delete-pulse/main.go

This file was deleted.

129 changes: 0 additions & 129 deletions examples/v2/rest-pulse/main.go

This file was deleted.

121 changes: 0 additions & 121 deletions pkg/models/pulse/pulse.go

This file was deleted.

Loading