Python Forum
Thread Rating:
  • 1 Vote(s) - 1 Average
  • 1
  • 2
  • 3
  • 4
  • 5
binance script
#2
Try using code tags as described in BBCode to make any code you post easier for people to read.

Your error in line 9 is exactly what it sounds like, Python is expecting an indented block. When you define your function initialize(), all code you want included in that function should be indented (4 spaces is the standard).

def initialize(state):
    state.counter = 0
    # and so on...
Reply


Messages In This Thread
binance script - by torgny4 - May-30-2020, 05:00 PM
RE: binance script - by GOTO10 - May-30-2020, 07:38 PM
RE: binance script - by torgny4 - May-30-2020, 09:49 PM
RE: binance script - by GOTO10 - May-31-2020, 02:07 AM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020