API integration in algo