working on exchange api