def put(url, body = nil, api_version = API_V1)
      request(method: :put, url: url, body: body, api_version: api_version).fetch :body
    end
def put(url, body = nil, api_version = API_V1)
      request(method: :put, url: url, body: body, api_version: api_version).fetch :body
    end
Sends a PUT request to the IG Markets API. If an error occurs then an {IGMarketsError} will be raised.

 @param [String] url The URL to send the PUT request to.
 @param [Hash, nil] body The body to include with the PUT request, this will be encoded as JSON.
 @param [Integer] api_version The API version to target.

 @return [Hash] The response from the IG Markets API.