@shapeshiftoss/market-service
TypeScript icon, indicating that this package has built-in type declarations

7.8.0 • Public • Published

@shapeshiftoss/market-service

Getting market data through multiple different APIs

Usage

import { getDefaultMarketService } from '@shapeshiftoss/market-service'

const getAssetData = async () => {
    const assetData = await getDefaultMarketService().getAssetData(network, contractAddress)
}

Hot Reloading

To enable hot reloading, you need to have WML and Watchman installed.

  • Once WML is installed, add link(s) from packages to corresponding node_modules in project, ie:

// TODO: update package name once lib is published

wml add ./Projects/lib/packages/market-service ./Projects/web/node_modules/@shapeshift/market-service
  • Check packages are linked correctly by running wml list, you should see a response similar to this:
Links:
enabled (0) /Users/userName/projectFolder/lib/packages/market-service -> /Users/userName/projectFolder/web/node_modules/@shapeshift/market-service
  • Start WML
wml start

Note: If you start wml and nothing happens, or you see an error, a common cause is watchman is not watching the linked directory. Try "watching" the directory that was linked

watchman watch [path-to-package]
  • In a different terminal window, run the typescript server inside the package.
yarn dev

/@shapeshiftoss/market-service/

    Package Sidebar

    Install

    npm i @shapeshiftoss/market-service

    Weekly Downloads

    2

    Version

    7.8.0

    License

    MIT

    Unpacked Size

    108 kB

    Total Files

    64

    Last publish

    Collaborators

    • 0xgomes
    • giantkin
    • 0xean
    • kmart13
    • shapeshift-ci-bot
    • tech-keepkey