我熟悉使用2行代码记录Python函数的参数:
def get_market_history(self, market, count):
"""
Used to retrieve the latest trades that have occured for a
specific market.
/market/getmarkethistory
:param market: String literal for the market (ex: BTC-LTC)
:type market: str
但我理解,对于简单类型,您可以在:param
行中包含类型,因此只需要一行而不是两行。但我忘了这个的语法,并希望得到一个例子。