Guavy Logo GUAVY
Trades Get Recent Buys
GET
·
/api/v1/trades/get-recent-buys

Get Recent Buys

This endpoint returns recent buys made by the Guavy trade simulator.

Attributes

limit
integer
Specifies the maximum number of instruments to return (default is 10).
skip
integer
Specifies the number of results to skip (default is 0).
strategy
string
Specifies a risk profile to filter scorecards for. Either 'aggressive' or 'conservative'. Default is 'Any'.

API Request

Example Request with cURL

curl \
--request GET \
--url     'https://data.guavy.com/api/v1/trades/get-recent-buys?limit=<integer>&skip=0<integer>&strategy=<string>' \
--header 'Authorization: Bearer YOUR-GUAVY-ACCESS-TOKEN' \
--header 'Content-Type: application/json'

This request format works across all modern HTTP clients, including Python requests, JavaScript fetch, and other programming language libraries.

Example Response for /api/v1/trades/get-recent-buys?limit=4&skip=0&strategy=Any

{
  "trades": [
    {
      "action": "Buy",
      "days_in_trade": 2,
      "highest_price": 0.4008531161157666,
      "last_price": 0.4002031769729217,
      "lowest_price": 0.3905282721454789,
      "profit": 0.009674904827442763,
      "profit_percent": 2.48,
      "start_date": "2025-12-11",
      "start_price": 0.3905282721454789,
      "strategy": "conservative",
      "symbol": "GAL"
    },
    {
      "action": "Buy",
      "days_in_trade": 1,
      "highest_price": 6.41502404186174e-4,
      "last_price": 6.41374668925586e-4,
      "lowest_price": 6.41502404186174e-4,
      "profit": -1.2773526058792225e-7,
      "profit_percent": -0.019911891172094732,
      "start_date": "2025-12-11",
      "start_price": 6.41502404186174e-4,
      "strategy": "conservative",
      "symbol": "LOOM"
    }
  ]
}

Response Object

trades
array[object]
Array of buying trade history objects, with the following keys:
action
string
The trade action taken (Buy).
days_in_trade
integer
The number of days the instrument is in trade.
highest_price
float
The highest price during the trade.
last_price
float
The most recent price recorded during the trade.
lowest_price
float
The lowest price during the trade.
profit
float
The profit of the trade.
profit_percent
float
The profit percentage of the trade.
start_date
string
The start date of the trade.
start_price
float
The price of the instrument at the start date.
strategy
string
The risk profile used for the trade. Can be 'aggressive' or 'conservative'.
symbol
string
The symbol representing the instrument object.

API Limits

The Guavy API has a limit of 10 simultaneous connections. You'll receive a 429 error if you reach the limit. At exceptionally high volumes, you may receive an HTTP 429 or 403 without a JSON body.

We recommend that you cache frequently accessed values that do not change often in your application's data store. This will prevent your application from bumping up against the throttling limitations and will likely provide faster access to that data.

Account Limits

Your Guavy account will typically have a licensed limit of at least 100,000 API calls per month. In addition, there is a limit of 10,000 API calls per day. If you reach these limits, you will receive a 429 error.

Connection Timeouts

The Guavy API has a 120-second timeout on API calls. You may see this type of timeout after you've made a network socket connection and are already sending and receiving data. Response times are dependent on the complexity of your request and the general load across Guavy. Some endpoints in the Guavy API return values that are large and slow to calculate.

Was this helpful?
Feedback option #{picture.id}
Feedback option #{picture.id}
Feedback option #{picture.id}
Feedback option #{picture.id}

© 2025 Guavy Inc. All rights reserved.