Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assert Exception: _sell_asset->options.whitelist_markets.find #1018

Closed
litepresence opened this issue Jun 4, 2018 · 3 comments

Comments

@litepresence
Copy link

commented Jun 4, 2018

litepresence, [04.06.18 09:50]
can you help understand what this assertion means in human terms? occurring during pybitshares market buy/sell grapheneapi.exceptions.

RPCError: Assert Exception: _sell_asset->options.whitelist_markets.find(_receive_asset->id) != _sell_asset->options.whitelist_markets.end()

Stefan Schießl, [04.06.18 09:50]
The issuer of the asset has closed down trading for this market

It would be helpful if the exception arguments included the above statement

@ryanRfox ryanRfox added this to New -Awaiting Core Team Evaluation in Project Backlog via automation Jun 4, 2018

@litepresence

This comment has been minimized.

Copy link
Author

commented Jun 5, 2018

re: user story

I had botscript algo trading on the dex for several days, then suddenly it stopped working and I was getting this error repeatedly whenever algo was attempting buy/sell ops. I spent 2 days searching for a bug in my code (or pybitshares) that might have caused it, and the error argument given via the RPC call was not very discernible or helpful. Eventually, I found out that trading was disabled on all openledger; ie OPEN.* assets via telegram dev chat room. Hence the blue chip market OPEN.BTC/BTS was no longer whitelisted; randomly it didn't exist; it was a "black swan" event of sorts from my perspective, and there was indeed nothing wrong with my code; I just didn't realize that, in human speak:

The issuer of the asset has closed down trading for this market

@litepresence

This comment has been minimized.

Copy link
Author

commented Jun 5, 2018

related

Codaone/DEXBot#183

exceptions.RPCError: Assert Exception: is_authorized_asset( d, *_seller, *_receive_asset )

@abitmore

This comment has been minimized.

Copy link
Member

commented Feb 20, 2019

Fixed by #1531.

@abitmore abitmore closed this Feb 20, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.