How to get the right element with json ,after Dolly get request?

import json
import requests
pair = 'BTC/UAH'
side = 'baying'
response = requests.get('',
 params= { 'pair' : pair,
 'side' : side,

data = response.json()
print (data)

concocted some kind of crutch.
and you need to otparit need a price on a stock exchange,based on a few parameters and bring it.
it is necessary to calculate the desired "unit_price" when the sum "sum" is greater than x
April 7th 20 at 15:35
2 answers
April 7th 20 at 15:37
Such elements can be several? Then you will receive a list of all objects with the right prices
//pricesArray - data
//priceToCompare - x
function pricesFilter(pricesArray, priceToCompare){
return pricesArray.filter(i=>parseFloat(i.sum) > priceToCompare);
April 7th 20 at 15:39
In the server response is a purchase requisition with keys - price "unit_price" and scrip purchases "sum",you need to know what will be the price "unit_price" if the sum "sum" will be more equal for example to 1000,while the need to filtrovat additional settings - one of the pairs ,'BTC/UAH','ETH/UAH'..... type 'baying' or "selling".
Of course I would like code in Python.
Thank you FRIENDS)))

Find more questions by tags Parsing