Requests allow the purchase of Instruments and the sell of Assets. This document will guide you on how to create, update and get request details.Documentation Index
Fetch the complete documentation index at: https://docs.pipevest.com/llms.txt
Use this file to discover all available pages before exploring further.
Creating a Request
There are 2 types of requests:Purchase RequestSell Request
Purchase Request
Sell Request
Instead of
sellAmount, a sellPercentage can be provided.Recurring Requests
Optionally, requests can be set to recurring mode:Updating Requests
If you need to cancel a request:Retrieving Requests
When requesting account details you can do so either by getting:- A list of requests
- An account by a given Id
List of Requests
This endpoint can be paginated and sorted.
Request by Id
Entity Reference
| Property | Definition |
|---|---|
requestId | Unique request identifier |
customerId | Unique customer identifier |
symbol | The symbol associated by the instrument |
requestType | The type of request being made |
status | The status of the request |
currency | Associated currency |
isRecurring | Determines whether the request should be in recurring mode |
schedule | The recurring schedule in which the instrument should be purchased |
createdAt | Created at unix timestamp |
updatedAt | Updated at unix timestamp |
Purchase Request Entity
Includes the additional properties:
| Property | Definition |
|---|---|
instrumentId | Unique instrument identifier |
purchaseAmount | The total purchase amount for an asset or group of assets |
Sell Request Entity
Includes the additional properties:
| Property | Definition |
|---|---|
assetId | Unique asset identifier |
sellAmount | The total amount to sell from an asset or group of assets |
sellPercentage | The percentage amount to sell from an asset or group of assets |
Status
| Name | Definition |
|---|---|
PENDING | The request is currently in progress |
COMPLETED | The request has complete processing |
CANCELED | The request was cancelled |
ERROR | The request ended in an error |
Request Type
| Name | Definition |
|---|---|
PURCHASE | Sets the request to purchase mode |
SELL | Sets the request to sell mode |
Webhook Subscriptions
| Subscription | Definition | Domain |
|---|---|---|
REQUEST | Only events that deal with requests | Requests |
REQUEST.CREATED | Triggered when a request is created | Requests |
REQUEST.UPDATED | Triggered when a request is updated | Requests |