'source'
field (passed in the requests below) to prevent DDoS attacks. If you're adding a new taker, please reach out on Telegram or Discord and we can set up authentication. Otherwise, your requests will get rejected./marketMakers
<source>
use your identifier (e.g. 1inch
, zerion
, ...)<chainId>
use your network ID (e.g. 1
for mainnet, 137
for polygon).{marketMakers: ['mm1', 'mmXYZ']}
./pairs
baseTokenName
and quoteTokenName
are the short names for each token (e.g. ETH
, USDT
)./signedRfq
/priceLevels
, you'll also know their indicative order flow. Now, whenever you want to get a quote for a specific trade, send a request for each market maker which offers the requested pair on the requested chain.eoa
. EOA address. Set to eoa
, if set in your signed quote. Otherwise, use 0x0000000000000000000000000000000000000000
address.maxBaseTokenAmount
/ maxQuoteTokenAmount
. These are what you receive in the API as baseTokenAmount
/ quoteTokenAmount
. Sometimes you can receive a quote for higher than what you requested. It is essential that you use the requested amount in the effectiveBaseTokenAmount field.effectiveBaseTokenAmount
. The actual swapped amount. This has to be less than or equal to maxBaseTokenAmount
. We suggest to keep them equal unless there's a discrepancy with the requested amount.staging
version of Hashflow (which you have been calling all along), you can now connect to prod.https://api-staging.hashflow.com
in your request, you'll want to call https://api.hashflow.com
. That's all!