23 lines
440 B
Python
23 lines
440 B
Python
|
|
from __future__ import annotations
|
||
|
|
|
||
|
|
from enum import Enum
|
||
|
|
|
||
|
|
from nautilus_trader.model.identifiers import Venue
|
||
|
|
|
||
|
|
|
||
|
|
BINGX_VENUE = Venue("BINGX")
|
||
|
|
PINK_DEFAULT_ENV = None # resolved later
|
||
|
|
|
||
|
|
|
||
|
|
class BingxEnvironment(str, Enum):
|
||
|
|
LIVE = "prod-live"
|
||
|
|
VST = "prod-vst"
|
||
|
|
|
||
|
|
@property
|
||
|
|
def is_vst(self) -> bool:
|
||
|
|
return self is BingxEnvironment.VST
|
||
|
|
|
||
|
|
|
||
|
|
# Deferred assignment after enum definition
|
||
|
|
PINK_DEFAULT_ENV = BingxEnvironment.VST
|