API endpoint for positions and changing to query params

API endpoint for positions and changing to query params