get https://api.northstake.dk/v1/validatorMarketplace/sellers/documents
Endpoint for sellers (depositors) to list all RFQs posted by the seller with optional status filter in the validator marketplace.
import { NorthstakeApi } from '@northstake/northstakeapi';
const api = new NorthstakeApi('apiKey', 'privateKey')
const {body: allRfqs} = await api.validatorMarketplaceSellers.listRFQs('open')
for (const rfq of allRfqs) {
console.log(`
RFQ id: ${rfq.id}
best quote: ${rfq.best_quote}
status: ${rfq.status}
settlement: ${rfq.settlement_steps}
`)
}