Skip to content

Commit bb585f5

Browse files
authored
Merge pull request #4 from SaintPepsi/patch-2
Update README.md
2 parents fdb36e9 + ca78e24 commit bb585f5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,15 +60,15 @@ You can easily connect to the websockets
6060
You can use annotations.
6161

6262
import three_commas
63-
from three_commas.models import DealEntity, SmartTradeV2Entity
63+
from three_commas.model import DealEntity, SmartTradeV2Entity
6464

65-
@three_commas.streams.smart_trades()
65+
@three_commas.stream.smart_trades()
6666
def handle_smart_trades(smart_trade: SmartTradeV2Entity):
6767
# Do here something with the smart trade
6868
# Every new smart trade is passed to this function
6969
print(smart_trade)
7070

71-
@three_commas.streams.deals()
71+
@three_commas.stream.deals()
7272
def handle_deals(deal: DealEntity):
7373
# do your awesome stuff with the deal
7474
print(deal) # {'id': 1311811868, 'type': 'Deal', 'bot_id': 6313165, 'max_safety_orders': 6, 'deal_has_error': False ....
@@ -231,4 +231,4 @@ You can also set the api key and secret directly in the code. This method is les
231231
error, smart_trade = api.v2.smart_trades.get_by_id(13819196)
232232
if not error:
233233
# Do your awesome stuff with the smart trade
234-
print(smart_trade.profit)
234+
print(smart_trade.profit)

0 commit comments

Comments
 (0)