Skip to content

Commit

Permalink
fixes #19
Browse files Browse the repository at this point in the history
  • Loading branch information
timkpaine committed May 27, 2019
1 parent d64c55b commit 26f9225
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions aat/exchanges/utils/gemini.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,18 @@ def tickToData(self, jsn: dict) -> MarketData:
type=typ,
instrument=instrument,
remaining=remaining_volume,

side=side,
exchange=self.exchange(),
sequence=sequence)
return ret

def strToTradeType(self, s: str) -> TickType:
return TickType(s.upper())
s = s.upper()
if s in ('BLOCK_TRADE', ):
return TickType.TRADE
elif s in ('AUCTION_INDICATIVE', 'AUCTION_OPEN'):
return TickType.OPEN
return TickType(s)

def reasonToTradeType(self, s: str) -> TickType:
s = s.upper()
Expand Down

0 comments on commit 26f9225

Please sign in to comment.