I'm not sure of the time limit on merchant refresh, but until they reset, you could try using some of their services (like repair or identify) to put some gold back into their inventories, then sell some of your items and get the gold back.