Skip to content

Fix V2 Rest book API return funding result error #205

Open
fshiori wants to merge 2 commits intobitfinexcom:masterfrom
fshiori:fix/book
Open

Fix V2 Rest book API return funding result error #205
fshiori wants to merge 2 commits intobitfinexcom:masterfrom
fshiori:fix/book

Conversation

@fshiori
Copy link
Copy Markdown
Contributor

@fshiori fshiori commented Dec 24, 2019

Description:

rest book api return different sort by trading and funding,
and now the SDK only support trading.

Breaking changes:

None

New features:

None

Fixes:

  • NewBookUpdateFromRaw func data comment error
  • process funding symbol corerectly

PR status:

  • Version bumped
  • Change-log updated

@harry830622
Copy link
Copy Markdown

@fshiori Really appreciate the PR, bump into the exact same problem here.
@JacobPlaster Would you please take a look and merge the PR? Or how can I help to merge this PR?
Thanks

Comment thread v2/types.go
}

func IsFunding(symbol string) bool {
return strings.HasPrefix(symbol, "f")
Copy link
Copy Markdown

@harry830622 harry830622 Aug 8, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
return strings.HasPrefix(symbol, "f")
return strings.HasPrefix(symbol, FundingPrefix)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants