aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorfragosti <francesco.agosti93@gmail.com>2018-09-25 19:58:48 +0800
committerfragosti <francesco.agosti93@gmail.com>2018-09-25 19:58:48 +0800
commit49cdd85b1d0ca32eb650baecf2f148d807fefa77 (patch)
treebf2179d1d199ce3fca7732a457bf7f63c1ee5e5b /packages
parent47f8b5d6fc941b3f9c5cf8bb00c3be6123be629f (diff)
downloaddexon-0x-contracts-49cdd85b1d0ca32eb650baecf2f148d807fefa77.tar.gz
dexon-0x-contracts-49cdd85b1d0ca32eb650baecf2f148d807fefa77.tar.zst
dexon-0x-contracts-49cdd85b1d0ca32eb650baecf2f148d807fefa77.zip
Add AssetBuyerManager to README
Diffstat (limited to 'packages')
-rw-r--r--packages/asset-buyer/README.md14
1 files changed, 14 insertions, 0 deletions
diff --git a/packages/asset-buyer/README.md b/packages/asset-buyer/README.md
index 294653fc3..082d3e603 100644
--- a/packages/asset-buyer/README.md
+++ b/packages/asset-buyer/README.md
@@ -12,16 +12,30 @@ yarn add @0xproject/asset-buyer
**Import**
+For single-asset price estimation and purchase:
+
```typescript
import { AssetBuyer } from '@0xproject/asset-buyer';
```
+For multiple assets:
+
+```typescript
+import { AssetBuyerManager } from '@0xproject/asset-buyer';
+```
+
or
```javascript
var AssetBuyer = require('@0xproject/asset-buyer').AssetBuyer;
```
+and
+
+```javascript
+var AssetBuyerManager = require('@0xproject/asset-buyer').AssetBuyerManager;
+```
+
If your project is in [TypeScript](https://www.typescriptlang.org/), add the following to your `tsconfig.json`:
```json