(self, info: dict, market: Market = None)
| 13718 | return self.parse_long_short_ratio_history(response, market) |
| 13719 | |
| 13720 | def parse_long_short_ratio(self, info: dict, market: Market = None) -> LongShortRatio: |
| 13721 | # |
| 13722 | # linear |
| 13723 | # |
| 13724 | # { |
| 13725 | # "symbol": "BTCUSDT", |
| 13726 | # "longAccount": "0.4558", |
| 13727 | # "longShortRatio": "0.8376", |
| 13728 | # "shortAccount": "0.5442", |
| 13729 | # "timestamp": 1726790400000 |
| 13730 | # } |
| 13731 | # |
| 13732 | # inverse |
| 13733 | # |
| 13734 | # { |
| 13735 | # "longAccount": "0.7262", |
| 13736 | # "longShortRatio": "2.6523", |
| 13737 | # "shortAccount": "0.2738", |
| 13738 | # "pair": "BTCUSD", |
| 13739 | # "timestamp": 1726790400000 |
| 13740 | # } |
| 13741 | # |
| 13742 | marketId = self.safe_string(info, 'symbol') |
| 13743 | timestamp = self.safe_integer_omit_zero(info, 'timestamp') |
| 13744 | return { |
| 13745 | 'info': info, |
| 13746 | 'symbol': self.safe_symbol(marketId, market, None, 'contract'), |
| 13747 | 'timestamp': timestamp, |
| 13748 | 'datetime': self.iso8601(timestamp), |
| 13749 | 'timeframe': None, |
| 13750 | 'longShortRatio': self.safe_number(info, 'longShortRatio'), |
| 13751 | } |
| 13752 | |
| 13753 | def fetch_adl_rank(self, symbol: str, params={}) -> ADL: |
| 13754 | """ |
nothing calls this directly
no test coverage detected