Skip to content

Commit fe55c5a

Browse files
authored
Merge pull request #251 from Daniel1984/feature/remove-pulse
removing pulse
2 parents 9e0b26f + 335e74c commit fe55c5a

File tree

11 files changed

+4
-1296
lines changed

11 files changed

+4
-1296
lines changed

docs/rest_v2.md

Lines changed: 0 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,6 @@ type Client struct {
119119
Status StatusService
120120
Derivatives DerivativesService
121121
Funding FundingService
122-
Pulse PulseService
123122
Invoice InvoiceService
124123
Market MarketService
125124

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

711-
#### type PulseService
712-
713-
```go
714-
type PulseService struct {
715-
Synchronous
716-
}
717-
```
718-
719-
720-
#### func (*PulseService) AddComment
721-
722-
```go
723-
func (ps *PulseService) AddComment(p *pulse.Pulse) (*pulse.Pulse, error)
724-
```
725-
AddComment submits pulse comment see
726-
https://docs.bitfinex.com/reference#rest-auth-pulse-add
727-
728-
#### func (*PulseService) AddPulse
729-
730-
```go
731-
func (ps *PulseService) AddPulse(p *pulse.Pulse) (*pulse.Pulse, error)
732-
```
733-
AddPulse submits pulse message see
734-
https://docs.bitfinex.com/reference#rest-auth-pulse-add
735-
736-
#### func (*PulseService) DeletePulse
737-
738-
```go
739-
func (ps *PulseService) DeletePulse(pid string) (int, error)
740-
```
741-
DeletePulse removes your pulse message. Returns 0 if no pulse was deleted and 1
742-
if it was see https://docs.bitfinex.com/reference#rest-auth-pulse-del
743-
744-
#### func (*PulseService) PublicPulseHistory
745-
746-
```go
747-
func (ps *PulseService) PublicPulseHistory(limit int, end common.Mts) ([]*pulse.Pulse, error)
748-
```
749-
PublicPulseHistory returns latest pulse messages. You can specify an end
750-
timestamp to view older messages. see
751-
https://docs.bitfinex.com/reference#rest-public-pulse-hist
752-
753-
#### func (*PulseService) PublicPulseProfile
754-
755-
```go
756-
func (ps *PulseService) PublicPulseProfile(nickname Nickname) (*pulseprofile.PulseProfile, error)
757-
```
758-
PublicPulseProfile returns details for a specific Pulse profile
759-
https://docs.bitfinex.com/reference#rest-public-pulse-profile
760-
761-
#### func (*PulseService) PulseHistory
762-
763-
```go
764-
func (ps *PulseService) PulseHistory() ([]*pulse.Pulse, error)
765-
```
766-
PulseHistory allows you to retrieve your pulse history. see
767-
https://docs.bitfinex.com/reference#rest-auth-pulse-hist
768710

769711
#### type Request
770712

examples/v2/book-feed/main.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import (
77
_ "net/http/pprof"
88
"os"
99
"os/signal"
10+
"syscall"
1011

1112
"github.com/bitfinexcom/bitfinex-api-go/pkg/models/common"
1213
"github.com/bitfinexcom/bitfinex-api-go/v2/websocket"
@@ -31,13 +32,13 @@ func main() {
3132
}
3233
}()
3334
done := make(chan bool, 1)
34-
interrupt := make(chan os.Signal)
35-
signal.Notify(interrupt, os.Interrupt, os.Kill)
35+
sigs := make(chan os.Signal, 1)
36+
signal.Notify(sigs, syscall.SIGINT, syscall.SIGHUP, syscall.SIGTERM)
3637
go func() {
3738
log.Println(http.ListenAndServe("localhost:6060", nil))
3839
}()
3940
go func() {
40-
<-interrupt
41+
<-sigs
4142
client.Close()
4243
done <- true
4344
os.Exit(0)

examples/v2/rest-delete-pulse/main.go

Lines changed: 0 additions & 32 deletions
This file was deleted.

examples/v2/rest-pulse/main.go

Lines changed: 0 additions & 129 deletions
This file was deleted.

pkg/models/pulse/pulse.go

Lines changed: 0 additions & 121 deletions
This file was deleted.

0 commit comments

Comments
 (0)