https://www.tokocrypto.com/apidocs/#get-all-supported-trading-symbol retrieves data on all markets for tokocrypto :param dict [params]: extra parameters specific to the exchange API endpoint :returns dict[]: an array of objects representing market data
(self, params={})
| 746 | return self.safe_integer(response, 'timestamp') |
| 747 | |
| 748 | def fetch_markets(self, params={}) -> List[Market]: |
| 749 | """ |
| 750 | |
| 751 | https://www.tokocrypto.com/apidocs/#get-all-supported-trading-symbol |
| 752 | |
| 753 | retrieves data on all markets for tokocrypto |
| 754 | :param dict [params]: extra parameters specific to the exchange API endpoint |
| 755 | :returns dict[]: an array of objects representing market data |
| 756 | """ |
| 757 | response = self.publicGetOpenV1CommonSymbols(params) |
| 758 | # |
| 759 | # { |
| 760 | # "code":0, |
| 761 | # "msg":"Success", |
| 762 | # "data":{ |
| 763 | # "list":[ |
| 764 | # { |
| 765 | # "type":1, |
| 766 | # "symbol":"1INCH_BTC", |
| 767 | # "baseAsset":"1INCH", |
| 768 | # "basePrecision":8, |
| 769 | # "quoteAsset":"BTC", |
| 770 | # "quotePrecision":8, |
| 771 | # "filters":[ |
| 772 | # {"filterType":"PRICE_FILTER","minPrice":"0.00000001","maxPrice":"1000.00000000","tickSize":"0.00000001","applyToMarket":false}, |
| 773 | # {"filterType":"PERCENT_PRICE","multiplierUp":5,"multiplierDown":0.2,"avgPriceMins":"5","applyToMarket":false}, |
| 774 | # {"filterType":"LOT_SIZE","minQty":"0.10000000","maxQty":"90000000.00000000","stepSize":"0.10000000","applyToMarket":false}, |
| 775 | # {"filterType":"MIN_NOTIONAL","avgPriceMins":"5","minNotional":"0.00010000","applyToMarket":true}, |
| 776 | # {"filterType":"ICEBERG_PARTS","applyToMarket":false,"limit":"10"}, |
| 777 | # {"filterType":"MARKET_LOT_SIZE","minQty":"0.00000000","maxQty":"79460.14117231","stepSize":"0.00000000","applyToMarket":false}, |
| 778 | # {"filterType":"TRAILING_DELTA","applyToMarket":false}, |
| 779 | # {"filterType":"MAX_NUM_ORDERS","applyToMarket":false}, |
| 780 | # {"filterType":"MAX_NUM_ALGO_ORDERS","applyToMarket":false,"maxNumAlgoOrders":"5"} |
| 781 | # ], |
| 782 | # "orderTypes":["LIMIT","LIMIT_MAKER","MARKET","STOP_LOSS_LIMIT","TAKE_PROFIT_LIMIT"], |
| 783 | # "icebergEnable":1, |
| 784 | # "ocoEnable":1, |
| 785 | # "spotTradingEnable":1, |
| 786 | # "marginTradingEnable":1, |
| 787 | # "permissions":["SPOT","MARGIN"] |
| 788 | # }, |
| 789 | # ] |
| 790 | # }, |
| 791 | # "timestamp":1659492212507 |
| 792 | # } |
| 793 | # |
| 794 | if self.options['adjustForTimeDifference']: |
| 795 | self.load_time_difference() |
| 796 | data = self.safe_value(response, 'data', {}) |
| 797 | list = self.safe_value(data, 'list', []) |
| 798 | result = [] |
| 799 | for i in range(0, len(list)): |
| 800 | market = list[i] |
| 801 | baseId = self.safe_string(market, 'baseAsset') |
| 802 | quoteId = self.safe_string(market, 'quoteAsset') |
| 803 | id = self.safe_string(market, 'symbol') |
| 804 | lowercaseId = self.safe_string_lower(market, 'symbol') |
| 805 | settleId = self.safe_string(market, 'marginAsset') |
nothing calls this directly
no test coverage detected