It looks like you're new here. If you want to get involved, click one of these buttons!
margins = kite.margins()print(margins)
You seem to be requesting margin data during the BOD run. You can go through this thread to know about this.