-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Refactor CandlesResolution out of websocket. * Add type annotation in Candles channel subscription funcs. * Format two files. * fix NewlyUndercollateralized error in test_order --------- Co-authored-by: samtin0x <[email protected]>
- Loading branch information
Showing
6 changed files
with
21 additions
and
16 deletions.
There are no files selected for viewing
11 changes: 11 additions & 0 deletions
11
v4-client-py-v2/dydx_v4_client/indexer/candles_resolution.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,11 @@ | ||
from enum import Enum | ||
|
||
|
||
class CandlesResolution(Enum): | ||
ONE_MINUTE = "1MIN" | ||
FIVE_MINUTES = "5MINS" | ||
FIFTEEN_MINUTES = "15MINS" | ||
THIRTY_MINUTES = "30MINS" | ||
ONE_HOUR = "1HOUR" | ||
FOUR_HOURS = "4HOURS" | ||
ONE_DAY = "1DAY" |
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 |
---|---|---|
@@ -1 +1,2 @@ | ||
from dydx_v4_client.indexer.socket.websocket import CandlesResolution, IndexerSocket | ||
from dydx_v4_client.indexer.socket.websocket import IndexerSocket | ||
from dydx_v4_client.indexer.candles_resolution import CandlesResolution |
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
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