Dollar near best monthly gains