create account

Programming your first Cryptobot by tstieff

View this thread on: hive.blogpeakd.comecency.com
· @tstieff ·
$4.91
Programming your first Cryptobot
Programming a crypto-trading bot is a great way to start trading algorithmically. This post will outline how to program your own simple bot by interfacing with the Bittrex API.

For this guide you will need Python 3 installed, and a competent text editor. This post will not cover the basics of programming, as there are hundreds of resources that already cover that angle. If you have any questions feel free to comment below.

To begin, you will need an API key from Bittrex. Login to your account, and then head to the settings page. Click on the API Keys section, and then create a new one. If you have 2FA enabled, you will need to enter your key before creating it.

![api_key.png](https://steemitimages.com/DQmddh2BvAr24W3G4jVZoKczKebGsU9bCdX24tErrWoyDSP/api_key.png)

Now that we have our key, let's create our bot. The architecture will be very simple. The bot will run indefinitely and query for markets every 30 seconds. Using our simple algorithm the bot will open buy / sell positions. The resulting bot will be extremely dumb, but this guide should serve as a base for you to develop your own trading algorithm.

Begin with a fresh Python file, and the contents from below. Make sure to adjust the API_KEY and API_SECRET_KEY values.

```python
import time
import requests
import hashlib
import hmac

TICK_INTERVAL = 60  # seconds
API_KEY = 'my-api-key'
API_SECRET_KEY = b'my-api-secret-key'


def main():
    print('Starting trader bot, ticking every ' + str(TICK_INTERVAL) + 'seconds')
    

def format_float(f):
    return "%.8f" % f


if __name__ == "__main__":
    main()
```

Running the program now won't do much. The print statement will execute, and we will see some text in the console, but the program will exit immediately after. Most bots run indefinitely until terminated by the operator. Let's setup our bot to do the same. Update the main() method with the following changes, and also add the new tick() method stub.

```python
def main():
    print('Starting trader bot, ticking every ' + str(TICK_INTERVAL) + 'seconds')

    while True:
        start = time.time()
        tick()
        end = time.time()

        # Sleep the thread if needed
        if end - start < TICK_INTERVAL:
            time.sleep(TICK_INTERVAL - (end - start))
            
def tick():
    pass
```

Now our bot will run it's tick method every 30 seconds while accounting for any latency in the tick method itself. Next we need to flesh out the tick method. This is where most of the program logic will live.

```python
def tick():
    print('Running routine')

    market_summaries = simple_reqest('https://bittrex.com/api/v1.1/public/getmarketsummaries')
    for summary in market_summaries['result']:
        market = summary['MarketName']
        day_close = summary['PrevDay']
        last = summary['Last']

        percent_chg = ((last / day_close) - 1) * 100
        print(market + ' changed ' + str(percent_chg))
        

def simple_reqest(url):
    r = requests.get(url)
    return r.json()
```

Now if you run the program you'll see that the bot queries all of the available markets on Bittrex and then prints the percentage the market has changed over the last 24 hours. We've also added the simple_request() method which dispatches an HTTP request and then converts the response to JSON.

Our bot is cool and all, but it doesn't actually trade any crypto yet. Let's flesh out our advanced algorithm to place buy and sell orders. We'll need a few things including a way to make signed requests which the Bittrex API expects when making trades.

```python
def tick():
    print('Running routine')

    market_summaries = simple_reqest('https://bittrex.com/api/v1.1/public/getmarketsummaries')
    for summary in market_summaries['result']:
        market = summary['MarketName']
        day_close = summary['PrevDay']
        last = summary['Last']

        percent_chg = ((last / day_close) - 1) * 100
        print(market + ' changed ' + str(percent_chg))

        if 40 < percent_chg < 60:
            # Fomo strikes! Let's buy some
            print('Purchasing 5 units of ' + market + ' for ' + str(format_float(last)))
            res = buy_limit(market, 5, last)
            print(res)

        if percent_chg < -20:
            # Ship is sinking, get out!
            sell_limit(market, 5, last)
            
def buy_limit(market, quantity, rate):
    url = 'https://bittrex.com/api/v1.1/market/buylimit?apikey=' + API_KEY + '&market=' + market + '&quantity=' + str(quantity) + '&rate=' + format_float(rate)
    return signed_request(url)


def sell_limit(market, quantity, rate):
    url = 'https://bittrex.com/api/v1.1/market/selllimit?apikey=' + API_KEY + '&market=' + market + '&quantity=' + str(quantity) + '&rate=' + format_float(rate)
    return signed_request(url)


def signed_request(url):
    now = time.time()
    url += '&nonce=' + str(now)
    signed = hmac.new(API_SECRET_KEY, url.encode('utf-8'), hashlib.sha512).hexdigest()
    headers = {'apisign': signed}
    r = requests.get(url, headers=headers)
    return r.json()
```

There's quite a bit going on here. Let's break it down. The new logic in our tick() method includes the meat of our algorithm.

```python
        if 40 < percent_chg < 60:
            # Fomo strikes! Let's buy some
            print('Purchasing 5 units of ' + market + ' for ' + str(format_float(last)))
            res = buy_limit(market, 5, last)
            print(res)

        if percent_chg < -20:
            # Ship is sinking, get out!
            sell_limit(market, 5, last)
```

As you can see, this algorithm is extremely stupid. This bot trades based only on the 24 hour change of a coin. Despite this silly example, it should serve as a gateway for you to begin fleshing out your own secret algorithm.

We've also added some new methods to handle placing buy and sell orders. These methods require an API key because they modify aspects of your account. The final method we added, signed_request(), is needed to send a valid request to Bittrex. The specifics of this are outlined in the Bittrex developer's guide online.

I hope this guide helps you on your way to riches! Feel free to ask for help in the comments if you get lost or stuck.
👍  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
properties (23)
authortstieff
permlinkprogramming-your-first-cryptobot
categorycryptocurrency
json_metadata{"tags":["cryptocurrency","programming","python"],"image":["https://steemitimages.com/DQmddh2BvAr24W3G4jVZoKczKebGsU9bCdX24tErrWoyDSP/api_key.png"],"app":"steemit/0.1","format":"markdown"}
created2017-07-14 23:55:21
last_update2017-07-14 23:55:21
depth0
children27
last_payout2017-07-21 23:55:21
cashout_time1969-12-31 23:59:59
total_payout_value4.690 HBD
curator_payout_value0.224 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length6,223
author_reputation474,755,008,115
root_title"Programming your first Cryptobot"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id8,513,611
net_rshares1,134,790,001,514
author_curate_reward""
vote details (42)
@allanpallan ·
Thank you. It is one of the most informative crypto API tutorials i have come across. Code is very clear and easy to follow. 
I tried to write it myself, but got myself lost in hmac. Your code resolved it brilliantly. 
One thing what could make this tutorial rock the world would be a function example what calls  wallet balances. I am trying to make it work, but I get no response back.
properties (22)
authorallanpallan
permlinkre-tstieff-programming-your-first-cryptobot-20170824t115527417z
categorycryptocurrency
json_metadata{"tags":["cryptocurrency"],"app":"steemit/0.1"}
created2017-08-24 11:55:30
last_update2017-08-24 11:55:30
depth1
children1
last_payout2017-08-31 11:55:30
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length387
author_reputation22,772,319
root_title"Programming your first Cryptobot"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id12,731,359
net_rshares0
@tstieff ·
I will cover more of the API calls in part two.
properties (22)
authortstieff
permlinkre-allanpallan-re-tstieff-programming-your-first-cryptobot-20170914t130540266z
categorycryptocurrency
json_metadata{"tags":["cryptocurrency"],"app":"steemit/0.1"}
created2017-09-14 13:05:39
last_update2017-09-14 13:05:39
depth2
children0
last_payout2017-09-21 13:05:39
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length47
author_reputation474,755,008,115
root_title"Programming your first Cryptobot"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id14,861,553
net_rshares0
@gniksivart · (edited)
Resteemed so i can test it later when i have more time. Thanks for sharing this information
properties (22)
authorgniksivart
permlinkre-tstieff-programming-your-first-cryptobot-20170715t010636357z
categorycryptocurrency
json_metadata{"tags":["cryptocurrency"],"app":"steemit/0.1"}
created2017-07-15 01:06:42
last_update2017-07-15 01:07:09
depth1
children0
last_payout2017-07-22 01:06:42
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length91
author_reputation74,197,147,678,652
root_title"Programming your first Cryptobot"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id8,518,266
net_rshares0
@hamzaoui ·
Well done post thanks for sharing
properties (22)
authorhamzaoui
permlinkre-tstieff-programming-your-first-cryptobot-20170715t000738850z
categorycryptocurrency
json_metadata{"tags":["cryptocurrency"],"app":"steemit/0.1"}
created2017-07-15 00:07:54
last_update2017-07-15 00:07:54
depth1
children0
last_payout2017-07-22 00:07:54
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length33
author_reputation2,667,249,998,202
root_title"Programming your first Cryptobot"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id8,514,413
net_rshares0
@jamescash ·
Nice break down! Seems simple enough.
properties (22)
authorjamescash
permlinkre-tstieff-2017715t03828643z
categorycryptocurrency
json_metadata{"tags":"cryptocurrency","app":"esteem/1.4.7","format":"markdown+html","community":"esteem"}
created2017-07-15 05:38:42
last_update2017-07-15 05:38:42
depth1
children0
last_payout2017-07-22 05:38:42
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length37
author_reputation158,876,890,827
root_title"Programming your first Cryptobot"
beneficiaries
0.
accountesteemapp
weight500
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id8,535,360
net_rshares0
@maheshmnj ·
thank you very much for your post actually  I am just trying to fetch the balance from bittrex using the api key but it doesnt seem to work
https://bittrex.com/api/v1.1/account/getbalance?apikey=key&currency=BTC   
this url returns a false response
![Capture.PNG](https://steemitimages.com/DQmahUZboyQPRaTpmudhdjcLxK4BsiPY21oBi16xTUZM4bz/Capture.PNG)
I researched a little bit more and I found something like we need to add nonce in the url so I appended  nonce=str(time.time()) to the url
but still it gives some kind of error.
and it seems like the url requires some kind of signature inplace of apikey where the signature is some hash value

well whatever it is, can you please help me fetch the balance from bittrex
this is my basic code I tried

from urllib.parse import urlencode
import urllib.request
import json
import time
import hmac
import hashlib

values={}
secret='xxxxxxxxxxxxxxxxxxxxxxxxx'
key='xxxxxxxxxxxxxxxxxxxxxxx'
url = 'https://bittrex.com/api/v1.1/account/'
url += 'getbalance' + '?' + urlencode(values)
url += '&apikey=' + key
url += '&nonce=' + str(int(time.time()))
signature = hmac.new(b'key', url, hashlib.sha512).hexdigest()
headers = {'apisign': signature}
print (url)

this code still gives some error
properties (22)
authormaheshmnj
permlinkre-tstieff-programming-your-first-cryptobot-20180307t151221547z
categorycryptocurrency
json_metadata{"tags":["cryptocurrency"],"image":["https://steemitimages.com/DQmahUZboyQPRaTpmudhdjcLxK4BsiPY21oBi16xTUZM4bz/Capture.PNG"],"links":["https://bittrex.com/api/v1.1/account/getbalance?apikey=key&amp;currency=BTC","https://bittrex.com/api/v1.1/account/"],"app":"steemit/0.1"}
created2018-03-07 15:12:27
last_update2018-03-07 15:12:27
depth1
children0
last_payout2018-03-14 15:12:27
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length1,232
author_reputation40,762,185,723
root_title"Programming your first Cryptobot"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id42,894,158
net_rshares0
@maryoush ·
Can we expect any follow up on this article with more updates?
properties (22)
authormaryoush
permlinkre-tstieff-programming-your-first-cryptobot-20170817t100257946z
categorycryptocurrency
json_metadata{"tags":["cryptocurrency"],"app":"busy/1.0.0"}
created2017-08-17 10:02:57
last_update2017-08-17 10:02:57
depth1
children1
last_payout2017-08-24 10:02:57
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length62
author_reputation2,525,621,633
root_title"Programming your first Cryptobot"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id12,070,144
net_rshares0
@tstieff ·
Yes, I plan on writing a follow up this week.
properties (22)
authortstieff
permlinkre-maryoush-re-tstieff-programming-your-first-cryptobot-20170914t130514688z
categorycryptocurrency
json_metadata{"tags":["cryptocurrency"],"app":"steemit/0.1"}
created2017-09-14 13:05:15
last_update2017-09-14 13:05:15
depth2
children0
last_payout2017-09-21 13:05:15
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length45
author_reputation474,755,008,115
root_title"Programming your first Cryptobot"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id14,861,515
net_rshares0
@peterokwara ·
A sample code on github would also be cool, such that one can download and review later :-)
properties (22)
authorpeterokwara
permlinkre-tstieff-programming-your-first-cryptobot-20170716t231346971z
categorycryptocurrency
json_metadata{"tags":["cryptocurrency"],"app":"steemit/0.1"}
created2017-07-16 23:13:51
last_update2017-07-16 23:13:51
depth1
children4
last_payout2017-07-23 23:13:51
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length91
author_reputation10,298,335,755
root_title"Programming your first Cryptobot"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id8,713,662
net_rshares0
@tstieff ·
$0.03
A great suggestion indeed. I've uploaded the final product to https://github.com/tmstieff/BittrexBot
👍  ,
properties (23)
authortstieff
permlinkre-peterokwara-re-tstieff-programming-your-first-cryptobot-20170716t233056059z
categorycryptocurrency
json_metadata{"tags":["cryptocurrency"],"links":["https://github.com/tmstieff/BittrexBot"],"app":"steemit/0.1"}
created2017-07-16 23:30:57
last_update2017-07-16 23:30:57
depth2
children3
last_payout2017-07-23 23:30:57
cashout_time1969-12-31 23:59:59
total_payout_value0.021 HBD
curator_payout_value0.007 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length100
author_reputation474,755,008,115
root_title"Programming your first Cryptobot"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id8,714,395
net_rshares6,061,934,339
author_curate_reward""
vote details (2)
@freefromchainz2 ·
Can this also apply to Poloniex's API?
properties (22)
authorfreefromchainz2
permlinkre-tstieff-re-peterokwara-re-tstieff-programming-your-first-cryptobot-20170806t032646110z
categorycryptocurrency
json_metadata{"tags":["cryptocurrency"],"app":"steemit/0.1"}
created2017-08-06 03:26:48
last_update2017-08-06 03:26:48
depth3
children1
last_payout2017-08-13 03:26:48
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length38
author_reputation3,011,488,720
root_title"Programming your first Cryptobot"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id10,906,328
net_rshares0
@peterokwara · (edited)
Awesome! Thanks :-)
properties (22)
authorpeterokwara
permlinkre-tstieff-re-peterokwara-re-tstieff-programming-your-first-cryptobot-20170718t093047060z
categorycryptocurrency
json_metadata{"tags":["cryptocurrency"],"app":"steemit/0.1"}
created2017-07-18 09:30:48
last_update2017-07-18 09:31:15
depth3
children0
last_payout2017-07-25 09:30:48
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length19
author_reputation10,298,335,755
root_title"Programming your first Cryptobot"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id8,856,603
net_rshares0
@podinatutorials ·
$0.05
Simple and clear!
👍  
properties (23)
authorpodinatutorials
permlinkre-tstieff-programming-your-first-cryptobot-20180505t134515072z
categorycryptocurrency
json_metadata{"tags":["cryptocurrency"],"app":"steemit/0.1"}
created2018-05-05 13:45:18
last_update2018-05-05 13:45:18
depth1
children0
last_payout2018-05-12 13:45:18
cashout_time1969-12-31 23:59:59
total_payout_value0.049 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length17
author_reputation1,246,112,992,923
root_title"Programming your first Cryptobot"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id54,025,690
net_rshares9,332,334,986
author_curate_reward""
vote details (1)
@realskilled ·
Hi @tstieff,

Thank you for sharing this info!

I'm looking for an API that allows me to create content (POSTs). I have been reading the documentation and it seems that we can only retrieve information or just create a comments or up-vote.

I wonder if you could point me to some API that allows creating POST in steemit.com.

Thanks,

@realskilled
properties (22)
authorrealskilled
permlinkre-tstieff-programming-your-first-cryptobot-20171008t201850079z
categorycryptocurrency
json_metadata{"tags":["cryptocurrency"],"users":["tstieff","realskilled"],"app":"steemit/0.1"}
created2017-10-08 20:18:48
last_update2017-10-08 20:18:48
depth1
children0
last_payout2017-10-15 20:18:48
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length348
author_reputation-65,196,368,224
root_title"Programming your first Cryptobot"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id17,135,957
net_rshares0
@scoobyxo ·
This will be very helpful.
properties (22)
authorscoobyxo
permlinkre-tstieff-programming-your-first-cryptobot-20180511t064446223z
categorycryptocurrency
json_metadata{"tags":["cryptocurrency"],"app":"steemit/0.1"}
created2018-05-11 06:45:00
last_update2018-05-11 06:45:00
depth1
children0
last_payout2018-05-18 06:45:00
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length26
author_reputation1,510,529,784
root_title"Programming your first Cryptobot"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id55,091,628
net_rshares0
@sp33dy ·
Thanks, I took inspiration from your post and have created a Godot Engine one:

https://steemit.com/utopian-io/@sp33dy/https-rest-calls-crypto-price-monitor for those that know Godot Engine. 

Demonstrates how to create a simple price checker for any currency (ok, its Bitcoin right now, but easy to change)
👍  
properties (23)
authorsp33dy
permlinkre-tstieff-programming-your-first-cryptobot-20180127t161841482z
categorycryptocurrency
json_metadata{"tags":["cryptocurrency"],"links":["https://steemit.com/utopian-io/@sp33dy/https-rest-calls-crypto-price-monitor"],"app":"steemit/0.1"}
created2018-01-27 16:18:42
last_update2018-01-27 16:18:42
depth1
children0
last_payout2018-02-03 16:18:42
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length307
author_reputation3,475,579,509,208
root_title"Programming your first Cryptobot"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id32,776,376
net_rshares0
author_curate_reward""
vote details (1)
@stefen ·
This is a C language right?
properties (22)
authorstefen
permlinkre-tstieff-programming-your-first-cryptobot-20170715t000417232z
categorycryptocurrency
json_metadata{"tags":["cryptocurrency"],"app":"steemit/0.1"}
created2017-07-15 00:04:21
last_update2017-07-15 00:04:21
depth1
children2
last_payout2017-07-22 00:04:21
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length27
author_reputation6,803,833,244,756
root_title"Programming your first Cryptobot"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id8,514,210
net_rshares0
@tstieff ·
This is written using Python, but you could easily translate it to whatever language you're comfortable with.
properties (22)
authortstieff
permlinkre-stefen-re-tstieff-programming-your-first-cryptobot-20170715t000831165z
categorycryptocurrency
json_metadata{"tags":["cryptocurrency"],"app":"steemit/0.1"}
created2017-07-15 00:08:30
last_update2017-07-15 00:08:30
depth2
children1
last_payout2017-07-22 00:08:30
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length109
author_reputation474,755,008,115
root_title"Programming your first Cryptobot"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id8,514,453
net_rshares0
@stefen ·
Cool. :-)
properties (22)
authorstefen
permlinkre-tstieff-re-stefen-re-tstieff-programming-your-first-cryptobot-20170715t001011467z
categorycryptocurrency
json_metadata{"tags":["cryptocurrency"],"app":"steemit/0.1"}
created2017-07-15 00:10:18
last_update2017-07-15 00:10:18
depth3
children0
last_payout2017-07-22 00:10:18
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length9
author_reputation6,803,833,244,756
root_title"Programming your first Cryptobot"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id8,514,570
net_rshares0
@theshortpencil · (edited)
Still working on this? There seem to be now a `V2.0` of the Bittrex API, have you tried it?
properties (22)
authortheshortpencil
permlinkre-tstieff-programming-your-first-cryptobot-20180222t160652255z
categorycryptocurrency
json_metadata{"tags":["cryptocurrency"],"app":"steemit/0.1"}
created2018-02-22 16:06:51
last_update2018-02-22 16:07:06
depth1
children0
last_payout2018-03-01 16:06:51
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length91
author_reputation28,802,403
root_title"Programming your first Cryptobot"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id39,642,252
net_rshares0
@vidallia ·
$0.10
Really informative, thank you. I've made my own price bot for steem, it displays the price changed from last, and percent changed. I have it updating every 5 seconds using the CryptoCompare API.
👍  ,
properties (23)
authorvidallia
permlinkre-tstieff-programming-your-first-cryptobot-20170721t004418047z
categorycryptocurrency
json_metadata{"tags":["cryptocurrency"],"app":"steemit/0.1"}
created2017-07-21 00:44:21
last_update2017-07-21 00:44:21
depth1
children1
last_payout2017-07-28 00:44:21
cashout_time1969-12-31 23:59:59
total_payout_value0.096 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length194
author_reputation252,226,177,161
root_title"Programming your first Cryptobot"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id9,137,022
net_rshares24,119,784,079
author_curate_reward""
vote details (2)
@freefromchainz2 ·
Did you do this using the same script?
properties (22)
authorfreefromchainz2
permlinkre-vidallia-re-tstieff-programming-your-first-cryptobot-20170806t032506895z
categorycryptocurrency
json_metadata{"tags":["cryptocurrency"],"app":"steemit/0.1"}
created2017-08-06 03:25:09
last_update2017-08-06 03:25:09
depth2
children0
last_payout2017-08-13 03:25:09
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length38
author_reputation3,011,488,720
root_title"Programming your first Cryptobot"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id10,906,237
net_rshares0
@xaero1 ·
Cool information.
👍  
properties (23)
authorxaero1
permlinkre-tstieff-programming-your-first-cryptobot-20170714t235926514z
categorycryptocurrency
json_metadata{"tags":["cryptocurrency"],"app":"steemit/0.1"}
created2017-07-14 23:59:27
last_update2017-07-14 23:59:27
depth1
children1
last_payout2017-07-21 23:59:27
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length17
author_reputation4,115,208,294,103
root_title"Programming your first Cryptobot"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id8,513,881
net_rshares1,131,656,499
author_curate_reward""
vote details (1)
@tstieff ·
Hope you found it useful!
properties (22)
authortstieff
permlinkre-xaero1-re-tstieff-programming-your-first-cryptobot-20170715t000054209z
categorycryptocurrency
json_metadata{"tags":["cryptocurrency"],"app":"steemit/0.1"}
created2017-07-15 00:00:54
last_update2017-07-15 00:00:54
depth2
children0
last_payout2017-07-22 00:00:54
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length25
author_reputation474,755,008,115
root_title"Programming your first Cryptobot"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id8,513,970
net_rshares0
@youngmetro ·
I keep getting an error saying ModuleNotFoundError: No module named 'requests'

 Any idea what I'm doing wrong?
properties (22)
authoryoungmetro
permlinkre-tstieff-programming-your-first-cryptobot-20170922t200139413z
categorycryptocurrency
json_metadata{"tags":["cryptocurrency"],"app":"steemit/0.1"}
created2017-09-22 20:01:36
last_update2017-09-22 20:01:36
depth1
children1
last_payout2017-09-29 20:01:36
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length111
author_reputation0
root_title"Programming your first Cryptobot"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id15,648,679
net_rshares0
@dexterdev ·
Can you see here : https://stackoverflow.com/questions/17309288/importerror-no-module-named-requests
properties (22)
authordexterdev
permlinkre-youngmetro-re-tstieff-programming-your-first-cryptobot-20180104t182537254z
categorycryptocurrency
json_metadata{"tags":["cryptocurrency"],"links":["https://stackoverflow.com/questions/17309288/importerror-no-module-named-requests"],"app":"steemit/0.1"}
created2018-01-04 18:27:00
last_update2018-01-04 18:27:00
depth2
children0
last_payout2018-01-11 18:27:00
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length100
author_reputation17,771,704,061,240
root_title"Programming your first Cryptobot"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id27,092,009
net_rshares0