> For the complete documentation index, see [llms.txt](https://docs.mangrove.exchange/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.mangrove.exchange/mangrove-js/guides/posting-bids-and-asks.md).

# Posting bids and asks

With a [`LiquidityProvider`](/mangrove-js/technical-references/api-classes-overview.md#liquidityprovider) `mgvLP` on a [Market](/mangrove-js/technical-references/api-classes-overview.md#market) instance, it is possible to post Bids and Asks with the following commands:

```javascript
// gives unlimited approval to Mangrove to transfer Base token from liquidity provider's logic/EOA
let tx = await mgvLP.approveMangroveForBase();
await tx.wait(); // waiting for tx confirmation

// querying mangrove to know the bounty for posting a new Ask on `market`
let prov = await mgvLP.computeAskProvision();
tx = await mgvLP.fundMangrove(prov);
await tx.wait();

// posting a new Ask on Mangrove
const {id:ofrId} = await mgvLP.newAsk({volume:1000, price:0.99});
const {id:ofrId_} = await mgvLP.newBid({volume:1000, price: 1.01});
```
