open-index/open-npm huggingface dataset:
npm package: @0bsnetwork/assets-pairs-order
Description: ![Build Status](https://api.travis-ci.org/0bsnetwork/assets-pairs-order.svg?branch=master)
Latest version: 4.0.1

# Utility for ordering pair of assets in (amount_asset, price_asset)

![Build Status](https://api.travis-ci.org/0bsnetwork/assets-pairs-order.svg?branch=master)

## Example:

```
yarn add @0bsnetwork/assets-pairs-order
```

```javascript
import { createOrderPair, MAINNET_DATA } from '@0bsnetwork/assets-pairs-order'

const orderPair = createOrderPair(MAINNET_DATA);
orderPair(
  'DNhP2zAH5HM1kdUSmxcBqs8RP4vvUgRFc1YgAKkfPmPD',
  'FxSm86qcEw8wGfpX3T7X5fsnuK5XxYA6ZfVYJja29vMA'
)

/* [
    'FxSm86qcEw8wGfpX3T7X5fsnuK5XxYA6ZfVYJja29vMA',
    'DNhP2zAH5HM1kdUSmxcBqs8RP4vvUgRFc1YgAKkfPmPD',
  ]
*/

## Browser

For using in browser include dist/browser.js
```