![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Typescript / Node wrapper for the Data and Trading APIs offered by Independent Reserve
Install the dependancies with npm / yarn.
npm install ir-client --save
In order to utilise the private()
method you'll need to generate an API Key.
The API wrapper exposes a Public and a Private method, which contain each of the endpoint functions.
public.ts
private.ts
Examples for usage of each function can be found within the examples folder.
They can be run by the command line with ts-node
.
npm install ts-node -g
ts-node examples/public/orderBook
A couple of simple examples are listed below.
import { IndependentReserve } from 'ir-client';
const ir = new IndependentReserve('public-key', 'private-key');
// Access Public API Methods
ir.public().GetMarketSummary('xbt', 'aud')
.then(resp => {
console.log(resp);
});
/*
{
DayHighestPrice: 10157.08,
DayLowestPrice: 9800.1,
DayAvgPrice: 9950.28,
DayVolumeXbt: 29.02665049,
DayVolumeXbtInSecondaryCurrrency: 28.29342014,
CurrentLowestOfferPrice: 9993.1,
CurrentHighestBidPrice: 9875.6,
LastPrice: 9958.18,
PrimaryCurrencyCode: 'Xbt',
SecondaryCurrencyCode: 'Aud',
CreatedTimestampUtc: '2018-05-26T07:10:09.6594524Z'
}
*/
// Access Private API Methods
ir.private().GetAccounts()
.then(resp => {
console.log(resp);
});
/*
[
{
AccountGuid: '0a0578ba-60b4-11e8-9c2d-fa7ae01bbebc',
AccountStatus: 'Active',
AvailableBalance: 0,
CurrencyCode: 'Aud',
TotalBalance: 0
},
{ AccountGuid: '0a057b62-60b4-11e8-9c2d-fa7ae01bbebc',
AccountStatus: 'Active',
AvailableBalance: 0,
CurrencyCode: 'Usd',
TotalBalance: 0
},
{ AccountGuid: '0a057fae-60b4-11e8-9c2d-fa7ae01bbebc',
AccountStatus: 'Active',
AvailableBalance: 0,
CurrencyCode: 'Nzd',
TotalBalance: 0
},
{ AccountGuid: '0a0581b6-60b4-11e8-9c2d-fa7ae01bbebc',
AccountStatus: 'Active',
AvailableBalance: 0,
CurrencyCode: 'Xbt',
TotalBalance: 0
},
{ AccountGuid: '0a058300-60b4-11e8-9c2d-fa7ae01bbebc',
AccountStatus: 'Active',
AvailableBalance: 0,
CurrencyCode: 'Eth',
TotalBalance: 0
},
{ AccountGuid: '20371896-60b4-11e8-9c2d-fa7ae01bbebc',
AccountStatus: 'Active',
AvailableBalance: 0,
CurrencyCode: 'Bch',
TotalBalance: 0
},
{
AccountGuid: '20371bde-60b4-11e8-9c2d-fa7ae01bbebc',
AccountStatus: 'Active',
AvailableBalance: 0,
CurrencyCode: 'Ltc',
TotalBalance: 0
}
]
*/
FAQs
Typescript wrapper for Independent Reserve Exchange
We found that ir-client demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.