forked from OndroS/python_coinbene_bot
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
4 changed files
with
179 additions
and
49 deletions.
There are no files selected for viewing
Submodule API-Demo-Python
deleted from
4e307e
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
#!/usr/bin/env python | ||
# coding: utf-8 | ||
|
||
# In[1]: | ||
|
||
|
||
import bot as bot | ||
|
||
print('UDST vs. BRL') | ||
print('BOT BY vitorgamer58') | ||
print(bot.get_ticker('USDTBRL')) | ||
|
||
|
||
# In[2]: | ||
|
||
|
||
USDTBRL = bot.get_ticker('USDTBRL') | ||
|
||
lastPrice = float(USDTBRL['last']) | ||
print(lastPrice) | ||
|
||
while lastPrice > 4.00: | ||
print('Não compre') | ||
lastPrice = lastPrice - 0.10 | ||
else: | ||
print('compre') | ||
|
||
|
||
# In[3]: | ||
|
||
|
||
print(bot.get_orderbook('USDTBRL')) | ||
|
||
|
||
# In[2]: | ||
|
||
|
||
bot.limit_order('sell', '1', '4.01', 'BTCUSDT') | ||
|
||
|
||
# In[2]: | ||
|
||
|
||
bot.get_balance() | ||
|
||
|
||
# In[10]: | ||
|
||
|
||
|
||
|
||
|
||
# In[ ]: | ||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters