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

Exchange: GEMINI #11

Open
gmanroney opened this issue Dec 29, 2017 · 4 comments
Open

Exchange: GEMINI #11

gmanroney opened this issue Dec 29, 2017 · 4 comments
Assignees

Comments

@gmanroney
Copy link
Owner

{
  "name": "gemini",
  "docurl": "https://docs.gemini.com/websocket-api/#market-data",
  "wssurl": "wss://api.gemini.com/v1/marketdata/:symbol",
  "pairs": "BTCUSD, LTCUSD, LTCBTC, ETHUSD, ETHBTC, ETCUSD, ETCBTC, BFXUSD, BFXBTC, RRTUSD, RRTBTC, ZECUSD, ZECBTC",
  "active": "N"
}
@gmanroney gmanroney self-assigned this Dec 29, 2017
@gmanroney
Copy link
Owner Author

Will integrate this exchange following same rule as earlier one and see what pattern emerges. Hopefully can start to refactor code relating to redis and transformation of data as well as the command line 'calling'

@gmanroney
Copy link
Owner Author

Found the record related to trade

xxxxxxxxx 0 { type: 'trade',
tid: 2596502061,
price: '12889.87',
amount: '0.00960975',
makerSide: 'ask' }
xxxxxxxxx 1 { type: 'change',
side: 'ask',
price: '12889.87',
remaining: '0.99039025',
delta: '-0.00960975',
reason: 'trade' }

I cannot seem to tell whether its a buy or a sell though.

@gmanroney
Copy link
Owner Author

gmanroney commented Dec 30, 2017

"A trade does not occur unless a buyer meets the ask or a seller meets the bid.

Read more: What do the bid and ask prices represent on a stock quote? | Investopedia https://www.investopedia.com/ask/answers/042215/what-do-bid-and-ask-prices-represent-stock-quote.asp#ixzz52n9RKDHI
Follow us: Investopedia on Facebook

IF BUYER MEETS ASK -> I AM A SELLER AND IT IS A SALE
IF SELLER MEETS BID -> I AM A BUYER AND IT IS A BUY

gmanroney pushed a commit that referenced this issue Dec 31, 2017
… default.config. And removed requirements folder since all covered in user stories now.
@gmanroney
Copy link
Owner Author

Refactoring functions into separate file enough for now; will do more refactoring in next exchange development

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

No branches or pull requests

1 participant