Skip to content
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

feat(exchange-analytics): Binance Bybit Ftx #71

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

1marcghannam
Copy link
Member

No description provided.

@shortcut-integration
Copy link

This pull request has been linked to Shortcut Story #4859: Create and Deploy Integration for Rage Trade.

Copy link
Contributor

@vnavascues vnavascues left a comment

Choose a reason for hiding this comment

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

Excellent job

Important:

  • Rebase develop
  • Binance timestamp needs to be floored
  • Align it with kyc-adapter, e.g. config file (and its tests), payload types, etc.
  • asset: IMHO we should allow to request from (base) and to (quote). We are limiting ourselves lots by hard coding them. The 3 APIs make easy to request all the supported markets. What I suggest for the Rage Trade job is having the 3 quote assets hard coded in the TOML spec.

Also some food for thought:

  • Endpoint name: funding-rates or futures? I'm aware Bybit APi is very specific. Just wondering how much are we limiting our response by not adopting "futures".

packages/exchange-analytics/src/controllers/constants.ts Outdated Show resolved Hide resolved
description: 'The name of the asset.',
required: true,
type: 'string',
options: [Asset.ETH, Asset.BTC],
Copy link
Contributor

Choose a reason for hiding this comment

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

We need to chat about this, I think we are limiting the adapter by do not allowing <base/from><quote/to>. These APIs support lots of tickers for perpetual markets and we are hard coding the quote assets.

packages/exchange-analytics/src/models/funding-rate.ts Outdated Show resolved Hide resolved
packages/exchange-analytics/src/models/funding-rate.ts Outdated Show resolved Hide resolved
packages/exchange-analytics/src/models/funding-rate.ts Outdated Show resolved Hide resolved
packages/exchange-analytics/test/unit/models.test.ts Outdated Show resolved Hide resolved
packages/exchange-analytics/test/unit/models.test.ts Outdated Show resolved Hide resolved
@1marcghannam 1marcghannam force-pushed the feature/sc-4859/exchange-analytics branch from e1f248d to 70ef968 Compare October 17, 2022 14:24
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