MCPcopy Create free account
hub / github.com/ccxt/ccxt / map_time_in_force

Method map_time_in_force

python/ccxt/async_support/pacifica.py:2120–2133  ·  view source on GitHub ↗
(self, tifRaw: Str)

Source from the content-addressed store, hash-verified

2118 return self.safe_string(statuses, status, status)
2119
2120 def map_time_in_force(self, tifRaw: Str):
2121 tifMap = {
2122 'GTC': 'GTC',
2123 'IOC': 'IOC',
2124 'PO': 'ALO',
2125 'POST_ONLY': 'ALO',
2126 'PO_TOB': 'TOB',
2127 'TOB': 'TOB',
2128 'ALO': 'ALO',
2129 }
2130 tif = None
2131 if tifRaw is not None:
2132 tif = tifRaw.upper()
2133 return self.safe_string(tifMap, tif, None)
2134
2135 def map_side(self, sideRaw: str):
2136 sideMap = {

Callers 1

create_order_requestMethod · 0.95

Calls 1

safe_stringMethod · 0.80

Tested by

no test coverage detected