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

Method fetch_markets

python/ccxt/exmo.py:801–931  ·  view source on GitHub ↗

retrieves data on all markets for exmo https://documenter.getpostman.com/view/10287440/SzYXWKPi#7de7e75c-5833-45a8-b937-c2276d235aaa :param dict [params]: extra parameters specific to the exchange API endpoint :returns dict[]: an array of objects representing marke

(self, params={})

Source from the content-addressed store, hash-verified

799 })
800
801 def fetch_markets(self, params={}) -> List[Market]:
802 """
803 retrieves data on all markets for exmo
804
805 https://documenter.getpostman.com/view/10287440/SzYXWKPi#7de7e75c-5833-45a8-b937-c2276d235aaa
806
807 :param dict [params]: extra parameters specific to the exchange API endpoint
808 :returns dict[]: an array of objects representing market data
809 """
810 promises = []
811 promises.append(self.publicGetPairSettings(params))
812 #
813 # {
814 # "BTC_USD":{
815 # "min_quantity":"0.0001",
816 # "max_quantity":"1000",
817 # "min_price":"1",
818 # "max_price":"30000",
819 # "max_amount":"500000",
820 # "min_amount":"1",
821 # "price_precision":8,
822 # "commission_taker_percent":"0.4",
823 # "commission_maker_percent":"0.4"
824 # },
825 # }
826 #
827 marginPairsDict = {}
828 fetchMargin = self.check_required_credentials(False)
829 if fetchMargin:
830 promises.append(self.privatePostMarginPairList(params))
831 #
832 # {
833 # "pairs": [
834 # {
835 # "buy_price": "55978.85",
836 # "default_leverage": "3",
837 # "is_fair_price": True,
838 # "last_trade_price": "55999.23",
839 # "liquidation_fee": "2",
840 # "liquidation_level": "10",
841 # "margin_call_level": "15",
842 # "max_leverage": "3",
843 # "max_order_price": "150000",
844 # "max_order_quantity": "1",
845 # "max_position_quantity": "1",
846 # "max_price_precision": 2,
847 # "min_order_price": "1",
848 # "min_order_quantity": "0.00002",
849 # "name": "BTC_USD",
850 # "position": 1,
851 # "sell_price": "55985.51",
852 # "ticker_updated": "1619019818936107989",
853 # "trade_maker_fee": "0",
854 # "trade_taker_fee": "0.05",
855 # "updated": "1619008608955599013"
856 # }
857 # ]
858 # }

Callers

nothing calls this directly

Calls 15

safe_listMethod · 0.80
index_byMethod · 0.80
safe_dictMethod · 0.80
replaceMethod · 0.80
splitMethod · 0.80
safe_stringMethod · 0.80
parse_numberMethod · 0.80
string_divMethod · 0.80
parse_precisionMethod · 0.80
safe_numberMethod · 0.80
string_maxMethod · 0.80

Tested by

no test coverage detected