1)I am preparing to calculate the average spread of a certain currency pair. I need to query the historical and current latest bid and ask prices for this currency pair. Which API should I call? What will be the request input and the response return?
2)I need to query the total buy and sell amounts of a certain currency pair within the historical and recent one-minute time ranges. Which API should I call? What will the request parameters and response return look like?