get https://partners-staging.safegold.com/v1/gold/historical
This endpoint will let the Distributor fetch historical prices based on different frequencies i.e. daily, weekly etc.
Method Type | GET |
---|---|
Staging URL | https://partners-staging.safegold.com/v1/gold/historical |
Production URL | https://partners.safegold.com/v1/gold/historical |
Success 200 Response Parameters
Field | Description | Data Type |
---|---|---|
from_date | From Date to be passed | YY-MM-DD format |
to_date | To Date to be passed | YY-MM-DD format |
type | d = by day; w = by week; m = by month; q = by quarter; y = by year |
Failure Parameters
Status Code | Code | Code Description |
---|---|---|
HTTP Status 400 | ||
1 | Validation Error | |
HTTP Status 500 | ||
Service is not Functioning |