-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ef55333
commit cccfc3d
Showing
7 changed files
with
124 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
strategies/cryptofeed_strategy/enums/cryptofeed_data_type_enum.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
from enum import Enum | ||
|
||
|
||
class CryptofeedDataTypeEnum(Enum): | ||
"""Cryptofeed data type enum""" | ||
|
||
LIQUIDATIONS = "liquidations" | ||
OPEN_INTEREST = "open_interest" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
from enum import Enum | ||
|
||
|
||
class CryptofeedSideEnum(Enum): | ||
"""Cryptofeed side enum""" | ||
|
||
BUY = "buy" | ||
SELL = "sell" |
15 changes: 15 additions & 0 deletions
15
strategies/cryptofeed_strategy/models/liquidation_data_dict.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
from typing import TypedDict | ||
|
||
from strategies.cryptofeed_strategy.enums.cryptofeed_side_enum import CryptofeedSideEnum | ||
|
||
|
||
class LiquidationDataDict(TypedDict): | ||
"""Liquidation data dict""" | ||
|
||
exchange: str | ||
price: float | ||
quantity: float | ||
side: CryptofeedSideEnum | ||
status: str | ||
symbol: str | ||
timestamp: float |
10 changes: 10 additions & 0 deletions
10
strategies/cryptofeed_strategy/models/open_interest_data_dict.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
from typing import TypedDict | ||
|
||
|
||
class OpenInterestDataDict(TypedDict): | ||
"""Open interest data dict""" | ||
|
||
exchange: str | ||
symbol: str | ||
open_interest: float | ||
timestamp: float |