Adding units to processed bids #10
-
Hi Nick! Great job on the NEMPY package! If I would like to add a unit to the 'price_bids' and 'volume_bids', how do I go about it? I tried appending a unit to the processed bids but I receive the following error 'The column unit can only contain the values 0' when trying to run the sample code you provided Cheers, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Apologies, the error message is as such 'The column unit can only contain the values' followed by a list of units- when trying to run the line: market.set_unit_volume_bids(volume_bids) |
Beta Was this translation helpful? Give feedback.
-
Hi @Raeggincom, Have you also added the unit to the unit_info table? Nempy checks that all the units provided in the bidding tables are also in the unit_info table, and throws the error you are getting if they're missing. |
Beta Was this translation helpful? Give feedback.
Hi @Raeggincom,
Have you also added the unit to the unit_info table? Nempy checks that all the units provided in the bidding tables are also in the unit_info table, and throws the error you are getting if they're missing.