Exemplo n.º 1
0
async def get_candlesticks(baseTokenAddress: str, quoteTokenAddress: str,
                           startTime: int, endTime: int,
                           interval: int) -> Response:
    return await get(
        get_endpoint('/order_book',
                     params={
                         baseTokenAddress, quoteTokenAddress, startTime,
                         endTime, interval
                     }))
Exemplo n.º 2
0
async def get_ticker(baseTokenAddress: str,
                     quoteTokenAddress: str) -> Response:
    return await get(
        get_endpoint('/ticker', params={baseTokenAddress, quoteTokenAddress}))
Exemplo n.º 3
0
async def get_fee_components() -> Response:
    return await get(get_endpoint('/fee_components'))
Exemplo n.º 4
0
async def get_committed_amounts(tokenAddress: str,
                                walletAddress: str) -> Response:
    return await get(
        get_endpoint('/committed_amounts',
                     params={tokenAddress, walletAddress}))
Exemplo n.º 5
0
async def get_available_balance(tokenAddress: str,
                                userAddress: str) -> Response:
    return await get(
        get_endpoint('/available_balance', params={tokenAddress, userAddress}))
Exemplo n.º 6
0
async def get_order_info(orderHash: str):
    return await get(get_endpoint('/order', params={orderHash}))
Exemplo n.º 7
0
async def get_candlesticks_intervals() -> Response:
    return await get(get_endpoint('/candlesticks/intervals'))
Exemplo n.º 8
0
async def get_pairs():
    return await get(get_endpoint('/token_pairs'))
Exemplo n.º 9
0
async def get_trade_history(baseTokenAddress: str,
                            quoteTokenAddress: str) -> Response:
    return await get(
        get_endpoint('/trade_history',
                     params={baseTokenAddress, quoteTokenAddress}))
Exemplo n.º 10
0
async def get_order_book(baseTokenAddress: str, quoteTokenAddress: str,
                         depth: int) -> Response:
    return await get(
        get_endpoint('/order_book',
                     params={baseTokenAddress, quoteTokenAddress, depth}))
Exemplo n.º 11
0
async def get_tickers() -> Response:
    return await get(get_endpoint('/tickers'))