You are viewing a single comment's thread from:

RE: Open Source PeakeCoin Trading Bot - Cancelling Orders Update

in Synergy Builderslast month

Are you pulling your txid from the chain or internal memory? I still don't really understand this stuff, but I do see a ton of failed tx still like this one. So if that order is later canceled it would fail. I am guessing all the magic of the json data is done in dependencies like beem or nectar.engine.

success, txid, error = cancel_order(account_name, order_id)

is that putting the correct order type in the json sent to chain? The Docs that below is the data needed to cancel an order.

{
"contractName": "market",
"contractAction": "cancel",
"contractPayload": {
    "type": "sell",
    "id": "1b7e32719b76f07e144d15c8d3045545b896e90b"
}

}

feel free to laugh at me because I know I am still missing a ton of knowledge to make stuff work. Anyway gl, thanks for sharing again.

Sort:  

Trying to either cancel oldest order or least likely to trade

are you able to print the json that it spits out to send to the chain?

Currently, no. I'm on my way to work unfortunately.

Entire bot here https://github.com/PaulMoon410/peakecoin_bots/commit/fcbfe58c7aeacae57aa39811381e525f7b9afed9

HAHA, ya I read the code, but still not smart enough to use it.

I'll set you up a bot to trade PeakeCoin