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

Method fetch_option_underlyings

python/ccxt/async_support/gate.py:1783–1800  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1781 return result
1782
1783 async def fetch_option_underlyings(self):
1784 underlyingsResponse = await self.publicOptionsGetUnderlyings()
1785 #
1786 # [
1787 # {
1788 # "index_time": "1646915796",
1789 # "name": "BTC_USDT",
1790 # "index_price": "39142.73"
1791 # }
1792 # ]
1793 #
1794 underlyings = []
1795 for i in range(0, len(underlyingsResponse)):
1796 underlying = underlyingsResponse[i]
1797 name = self.safe_string(underlying, 'name')
1798 if name is not None:
1799 underlyings.append(name)
1800 return underlyings
1801
1802 def prepare_request(self, market: Market = None, type: Str = None, params: dict = {}):
1803 """

Callers 1

fetch_option_marketsMethod · 0.95

Calls 4

safe_stringMethod · 0.80
rangeFunction · 0.50
appendMethod · 0.45

Tested by

no test coverage detected