Exemplo n.º 1
0
    def with_empty_args():

        with pytest.raises(ValueError) as excinfo:
            Client().day_avg()

        with pytest.raises(ValueError) as excinfo:
            Client().day_avg(fsym='BTC')

        with pytest.raises(ValueError) as excinfo:
            Client().day_avg(tsym='ETH')
Exemplo n.º 2
0
    def with_empty_args():

        with pytest.raises(ValueError) as excinfo:
            Client().generate_avg()

        with pytest.raises(ValueError) as excinfo:
            Client().generate_avg(fsym='BTC')

        with pytest.raises(ValueError) as excinfo:
            Client().generate_avg(markets='Coinbase', tsym='ETH')
Exemplo n.º 3
0
    def with_empty_args():

        with pytest.raises(ValueError) as excinfo:
            Client().subs_watchlist()

        with pytest.raises(ValueError) as excinfo:
            Client().subs_watchlist(fsyms='BTC')

        with pytest.raises(ValueError) as excinfo:
            Client().subs_watchlist(tsym='ETH')
Exemplo n.º 4
0
        def with_empty_args():
            
            with pytest.raises(ValueError) as excinfo:
                Client('test_key').histo_hour()

            with pytest.raises(ValueError) as excinfo:
                Client('test_key').histo_hour(fsym='BTC')

            with pytest.raises(ValueError) as excinfo:
                Client('test_key').histo_hour(tsym='ETH')
Exemplo n.º 5
0
    def with_empty_args():

        with pytest.raises(ValueError) as excinfo:
            Client().price()

        with pytest.raises(ValueError) as excinfo:
            Client().price(fsym='')

        with pytest.raises(ValueError) as excinfo:
            Client().price(tsyms='')
Exemplo n.º 6
0
        def with_empty_args():

            with pytest.raises(ValueError) as excinfo:
                Client('test_key').price_multi()

            with pytest.raises(ValueError) as excinfo:
                Client('test_key').price_multi(fsyms='')

            with pytest.raises(ValueError) as excinfo:
                Client('test_key').price_multi(tsyms='')
Exemplo n.º 7
0
        def with_empty_args():
            
            with pytest.raises(ValueError) as excinfo:
                Client().top_exchanges()

            with pytest.raises(ValueError) as excinfo:
                Client().top_exchanges(fsym='BTC')

            with pytest.raises(ValueError) as excinfo:
                Client().top_exchanges(tsym='ETH')
Exemplo n.º 8
0
        def with_empty_args():

            with pytest.raises(ValueError) as excinfo:
                Client('test_key').price_historical()

            with pytest.raises(ValueError) as excinfo:
                Client('test_key').price_historical(fsym='')

            with pytest.raises(ValueError) as excinfo:
                Client('test_key').price_historical(tsyms='')
Exemplo n.º 9
0
        def with_empty_args():
            
            with pytest.raises(ValueError) as excinfo:
                Client().histo_minute()

            with pytest.raises(ValueError) as excinfo:
                Client().histo_minute(fsym='BTC')

            with pytest.raises(ValueError) as excinfo:
                Client().histo_minute(tsym='ETH')
Exemplo n.º 10
0
        def with_empty_args():

            with pytest.raises(ValueError) as excinfo:
                Client().coin_snapshot('','')

            with pytest.raises(ValueError) as excinfo:
                Client().coin_snapshot('BTC','')

            with pytest.raises(ValueError) as excinfo:
                Client().coin_snapshot('','ETH')
Exemplo n.º 11
0
 def with_empty_args():
     
     with pytest.raises(ValueError) as excinfo:
         Client().social_stats('')
Exemplo n.º 12
0
 def with_success():
     response = Client().social_stats(1182)
     assert response['Response'] == "Success"
     assert response['Data'] != None
Exemplo n.º 13
0
 def with_success():
     response = Client().all_exchanges()
     response["Cryptsy"] != None
Exemplo n.º 14
0
 def with_success():
     _assert_success(Client().mining_equipment())
Exemplo n.º 15
0
 def with_success():
     _assert_success(Client().mining_contracts())
Exemplo n.º 16
0
        def with_success():

            _assert_success(Client().coin_snapshot_full_by_id(1182))
Exemplo n.º 17
0
    def with_success():

        response = Client().price(fsym='BTC', tsyms='ETH')
        assert response['USD'] != None
Exemplo n.º 18
0
        def with_invalid_args():

            with pytest.raises(ValueError) as excinfo:
                Client().top_pairs(fsym='DFG')
Exemplo n.º 19
0
    def with_invalid_args():

        response = Client().social_stats("abcdefg")
        assert response['Response'] == "Success"
        assert response['Data']['General']['Name'] == ''
Exemplo n.º 20
0
 def with_empty_args():
     
     with pytest.raises(ValueError) as excinfo:
         Client().top_pairs()
Exemplo n.º 21
0
 def with_success():
     response = Client().top_pairs(fsym='BTC')
     assert response['Response'] == "Success"
     assert response['Data'] != None
Exemplo n.º 22
0
 def without_coin_id():
     with pytest.raises(ValueError) as excinfo:
         Client().coin_snapshot_full_by_id('')
Exemplo n.º 23
0
        def with_invalid_args():

            with pytest.raises(ValueError) as excinfo:
                Client().top_volumes(tsym='PPH')
Exemplo n.º 24
0
        def with_invalid_args():

            with pytest.raises(ValueError) as excinfo:
                Client().top_exchanges(fsym='DFG', tsym='PPH')
Exemplo n.º 25
0
        def with_success():

            _assert_success(Client().coin_snapshot('BTC','ETH'))
Exemplo n.º 26
0
 def with_success():
     response = Client().histo_minute(fsym='BTC', tsym='ETH')
     assert response['Response'] == "Success"
     assert response['Data'] != None
Exemplo n.º 27
0
        def with_invalid_args():

            with pytest.raises(ValueError) as excinfo:
                Client().coin_snapshot('123', '456')
Exemplo n.º 28
0
        def with_invalid_args():

            with pytest.raises(ValueError) as excinfo:
                Client().histo_minute(fsym='DFG', tsym='PPH')
Exemplo n.º 29
0
        def with_invalid_coin_id():

            with pytest.raises(ValueError) as excinfo:
                Client().coin_snapshot_full_by_id(123456)
Exemplo n.º 30
0
 def with_success():
     response = Client().top_exchanges(fsym='BTC', tsym='ETH')
     assert response['Response'] == "Success"
     assert response['Data'] != None