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

Method parse_margin_modification

python/ccxt/lighter.py:3067–3080  ·  view source on GitHub ↗
(self, data: dict, market: Market = None)

Source from the content-addressed store, hash-verified

3065 return self.parse_margin_modification(response, market)
3066
3067 def parse_margin_modification(self, data: dict, market: Market = None) -> MarginModification:
3068 timestamp = self.safe_integer(data, 'predicted_execution_time_ms')
3069 return {
3070 'info': data,
3071 'symbol': self.safe_string(market, 'symbol'),
3072 'type': None,
3073 'marginMode': None,
3074 'amount': None,
3075 'total': None,
3076 'code': 'USDC',
3077 'status': None,
3078 'timestamp': timestamp,
3079 'datetime': self.iso8601(timestamp),
3080 }
3081
3082 def sign(self, path, api: Any = 'public', method='GET', params={}, headers: dict = None, body: Any = None):
3083 url = None

Callers 1

set_marginMethod · 0.95

Calls 3

safe_integerMethod · 0.80
safe_stringMethod · 0.80
iso8601Method · 0.45

Tested by

no test coverage detected