OK, so to do something like this we want to think about what it is weāre trying to do. We want to change the way the ALP bot trades, right? So we go to github, find the lastest branch on nupool, and go to trading.py:
https://github.com/Cybnate/nu-pool/blob/master/python/trading.py
First, go down to pybot rather than nubot. Next, we look for the subroutine. Placeorder looks good, but it just calls the preceding subroutine āplaceā, so letās look there. Scanning the code, we quickly find a āresponse[balance]ā variable. By finding where that response is defined, we see that we can specify a side. If I werenāt worried about not counting nbt already in an order, Iād almost be done.
Anyway, Iāll keep looking at it, I just wanted to let everyone know my general approach.
Discuss.nubits Wonāt let me post unless I change it cause its dumbā¦