agent0 icon indicating copy to clipboard operation
agent0 copied to clipboard

Freezable class function astype() does not work for Wallets

Open dpaiton opened this issue 2 years ago • 1 comments

Some attributes are dictionaries, e.g. wallet.balance, which can not be trivially cast to a new type (e.g. float(dict) results in a TypeError). We should use a recursive routine that finds the lowest level of container types and propagates the type casting up.

dpaiton avatar Apr 25 '23 14:04 dpaiton

possibly fixed by https://github.com/delvtech/agent0/pull/1442

dpaiton avatar May 01 '24 22:05 dpaiton

The new wallet & agent trade DFs resolve this feature request.

dpaiton avatar Jun 05 '24 17:06 dpaiton