add tick_interval to get_ticker_history as an optional parameter

This commit is contained in:
gcarq
2017-11-07 18:41:48 +01:00
parent ddc7c94a1d
commit a1388ef296
3 changed files with 19 additions and 14 deletions

View File

@@ -1,7 +1,7 @@
import enum
import logging
from random import randint
from typing import List, Dict, Any
from typing import List, Dict, Any, Optional
import arrow
@@ -122,8 +122,8 @@ def get_ticker(pair: str) -> dict:
return _API.get_ticker(pair)
def get_ticker_history(pair: str) -> List:
return _API.get_ticker_history(pair)
def get_ticker_history(pair: str, tick_interval: Optional[int] = 5) -> List:
return _API.get_ticker_history(pair, tick_interval)
def cancel_order(order_id: str) -> None: