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

Method parse_order_time_in_force

python/ccxt/lighter.py:2274–2281  ·  view source on GitHub ↗
(self, tif)

Source from the content-addressed store, hash-verified

2272 return self.safe_string(types, str(typeInteger))
2273
2274 def parse_order_time_in_force(self, tif):
2275 timeInForces = {
2276 'immediate-or-cancel': 'IOC',
2277 'good-till-time': 'GTC',
2278 'post-only': 'PO',
2279 'Unknown': None,
2280 }
2281 return self.safe_string(timeInForces, tif, tif)
2282
2283 def parse_order_time_in_force_integer(self, tifInteger):
2284 timeInForces = {

Callers 1

parse_orderMethod · 0.95

Calls 1

safe_stringMethod · 0.80

Tested by

no test coverage detected