In [2]:
import requests
import urllib.parse
import json

url = 'http://example.co.uk:8009/api/v1/TCA?tradesJSON='

# Sample trades
trades = '''[
    {
        "Time":"2019-10-07T06:09:47.461645Z",
        "Symbol":"S",
        "Trade_Volume":100,
        "Trade_Price":6.1
    },
    {
        "Time":"2019-10-07T06:39:06.164499Z",
        "Symbol":"S",
        "Trade_Volume":50,
        "Trade_Price":6.23
    }
]'''

trades = urllib.parse.quote(trades) # Encode trades
tradesTCA = requests.post(url + trades) # Post request

# Optional formatting for printing
parsed = json.loads(tradesTCA.json())
print('\n',json.dumps(parsed, indent=4),'\n')
 [
    {
        "Time": "2019-10-07T06:09:47.461645Z",
        "Symbol": "S",
        "Trade_Volume": 100,
        "Trade_Price": 6.1,
        "Mid_Price": 3.05,
        "VWAP": 6.1
    },
    {
        "Time": "2019-10-07T06:39:06.164499Z",
        "Symbol": "S",
        "Trade_Volume": 50,
        "Trade_Price": 6.23,
        "Mid_Price": 3.05,
        "VWAP": 6.23
    }
]