offers-offers
offers-onboardapi
Get best offer for trade parameters
Changed onget/offers/best-offer
Request
- Base URLhttps://external.dev.onboardpay.co
- Authnone required
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
unitAmountnumber
fiatUnitAmountnumber
networkstring
Blockchain network identifier
tokenSymbolstring
fiatSymbolstring
offerType'ONRAMP' | 'OFFRAMP'
paymentChannelstring
exemptedMerchantsstring[]
prioritizeIpboolean
Response
Success
Example response
{
"tokenSymbol": "BNB",
"fiatSymbol": "USD, NGN",
"totalUnit": 5000,
"tradedUnit": 5000,
"lockedUnit": 5000,
"rate": 500,
"rateCap": 500,
"flexibleOfferMargin": 10,
"partnerRating": -1,
"partnerStats": {
"averageRating": 3,
"completionPercentage": 94,
"averageResponseTime": 5
},
"maxTimeout": {
"deposit": 1440,
"confirmation": 600
}
}Changes
- breaking
the
queryrequest parameterofferTypewas restricted to a list of enum values - warning
removed the optional property
from the response with the status - info
api operation id
getBestOfferremoved and replaced withgetBestOfferOffers - info
added the new enum value
OFFRAMPto thequeryrequest parameterofferType - info
added the new enum value
ONRAMPto thequeryrequest parameterofferType - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added to the
/response propertyallOflist for the response status - info
removed from the
/response propertyallOflist for the response status
- breaking