Пример #1
0
def market_info():
    api = API(
        uri='http://dev.bitexen.com/'
    )  #api = API(uri='http://dev.bitexen.com/', key='', secret='', pass_phrase='', username='')
    results = api.get_ticker('BTCTRY')
    print(results)
    return results
Пример #2
0
def withdraw_request():
    api = API(uri='https://www.bitexen.com/',
              key=None,
              secret=None,
              pass_phrase=None,
              username=None)
    results = api.withdraw_request('XRP', 100.22, 'alias')
    print(results)
    return results
Пример #3
0
def cancel_order(order_number=None):
    api = api = API(uri='http://dev.bitexen.com/',
                    key=None,
                    secret=None,
                    pass_phrase=None,
                    username=None)
    results = api.cancel_order(order_number or 0)
    print(results)
    return results
Пример #4
0
def closed_orders():
    api = api = API(uri='http://dev.bitexen.com/',
                    key=None,
                    secret=None,
                    pass_phrase=None,
                    username=None)
    results = api.get_closed_orders()
    print(results)
    return results
Пример #5
0
def balance():
    api = api = API(uri='http://dev.bitexen.com/',
                    key=None,
                    secret=None,
                    pass_phrase=None,
                    username=None)
    results = api.get_balance()
    print(results)
    return results
Пример #6
0
def order_status(order_number=None):
    api = api = API(uri='https://www.bitexen.com/',
                    key=None,
                    secret=None,
                    pass_phrase=None,
                    username=None)
    results = api.get_order_status(order_number or 0)
    print(results)
    return results
Пример #7
0
def open_orders():
    api = api = API(uri='https://www.bitexen.com/',
                    key=None,
                    secret=None,
                    pass_phrase=None,
                    username=None)
    results = api.get_open_orders()
    print(results)
    return results
Пример #8
0
def create_order():
    api = api = API(uri='http://dev.bitexen.com/',
                    key=None,
                    secret=None,
                    pass_phrase=None,
                    username=None)
    results = api.create_order('BTCTRY',
                               OrderType.LIMIT_ORDER,
                               BuySellType.BUY,
                               0.001,
                               price='2000')
    print(results)
    return results
Пример #9
0
def order_book():
    api = API(uri='http://dev.bitexen.com/')
    results = api.get_order_book('BTCTRY')
    print(results)
    return results
Пример #10
0
def ticker():
    api = API(uri='http://dev.bitexen.com/')
    results = api.get_ticker('BTCTRY')
    print(results)
    return results