Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

orionx-sdk

Package Overview
Dependencies
Maintainers
1
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

orionx-sdk

Help developers with Orionx integrations

  • 0.1.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
38
decreased by-66.96%
Maintainers
1
Weekly downloads
 
Created
Source

babel

The official Orionx SDK for JavaScript


Circle CI Status Badge

Usage

First you need to install it via npm.

npm install orionx-sdk --save

Then you will need to get your credentials, follow this tutorial

After that we are ready to go

Code example

// App.js
import Orionx from 'orionx-sdk'

Orionx.setCredentials({
  apiKey: '<apiKey>',
  secretKey: '<secretKey>',
  apiUriL '<https://apiUri.com/graphql>'
})

// And then use this in any Component.js
Orionx.market({code: 'LTCBTC'})
      .then(function(market) {
        console.log(market)
      })
      .catch(function(err) {
        console.log(err)
      })

Methods

<<<<<<< HEAD

createPayment

The createPayment() creates a new payment and returns its data.

await Orionx.createPayment({
  acceptedCurrenciesCodes: ['LTC', 'BTC'],
  amount: 1000,
  description: 'Testing...',
  mainCurrencyCode: 'CLP',
  title: 'Test'
})
Params

acceptedCurrenciesCodes: The coin codes that the buyer will be able to use as payment amount The price in mainCurrencyCode units description Some descriptive text mainCurrencyCode The coin that you will recieve title Some descriptive title


=======

75632a256e507d46eb41d88181aba24c05e773f2

me

The me() method returns yours user data.

await Orionx.me()

market

The market() method returns the info of a specified market.

await Orionx.market({code: ':marketCode'})
Params

code: Market code


markets

The markets() method returns the info of all the markets.

await Orionx.markets()

Docs

For further information about, visit our Docs

Opening Issues

If you encounter a bug with the Orionx SDK for JavaScript we would like to hear about it. Search the existing issues and try to make sure your problem doesn’t already exist before opening a new issue. It’s helpful if you include the version of the SDK, Node.js and OS you’re using.

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Keywords

FAQs

Package last updated on 21 Sep 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc