API Response Times - Buy & Sell

Currently my setup when I call your API takes 2/3 seconds and last week when the giant green candle came it took 12 seconds. I want to try to lessen this slippage. Is it your API or is it the slowness of my Amazon Server.