Since this code was released, the Packet API has added a "spot market" feature. https://support.packet.com/kb/articles/spot-market https://www.packet.com/developers/changelog/persistent-spot-market-bid/