Gathering detailed insights and metrics for 1broker-client
Gathering detailed insights and metrics for 1broker-client
npm install 1broker-client
Typescript
Module System
Node Version
NPM Version
CoffeeScript (58.71%)
JavaScript (39.81%)
Makefile (1.48%)
Total Downloads
132,203
Last Day
25
Last Week
114
Last Month
702
Last Year
6,146
20 Stars
165 Commits
6 Forks
3 Watching
5 Branches
3 Contributors
Minified
Minified + Gzipped
Latest Version
2.11.1
Package Id
1broker-client@2.11.1
Unpacked Size
251.27 kB
Size
55.14 kB
File Count
97
NPM Version
5.3.0
Node Version
8.2.1
Cumulative downloads
Total Downloads
Last day
-72.2%
25
Compared to previous day
Last week
-46%
114
Compared to previous week
Last month
-12.5%
702
Compared to previous month
Last year
-41.2%
6,146
Compared to previous year
####This is a node.js wrapper for 1Broker's API, this package is mainly used and maintaned by @telebroker_bot an incredible bot to open orders and manage trades directly from Telegram !!!
This library implements all 1Broker API methods and also a couple extra features:
All this functionality from this library is available through @telebroker_bot for Telegram, this way you don't have to run commands from your command line, using the bot all the magic is worked out for you and you get some sort of neat REPL which is tons of fun!
I also created a Thread on reddit to speak about it, i'll hopefully keep improving the bot and keeping reddit up to date with the features.
Feel free to contact me there or open a new issue!
npm install --save 1broker-client
Unfortunately new versions might break backwards compatibility so please make sure you specify a version on your package.json file.
All functions take "callback" as last parameter:
1OneBroker = require( "1broker-client" ) 2 3client = OneBroker( "YOU_API_KEY" ) 4 5client.user.overview( function( error, overview ) { 6 if( error ) return console.error( error ); 7 8 console.log( overview ); 9} );
Functions which need parameters will take them as object, for instance:
1 2client.market.quotes({ 3 symbols: "BTCUSD,GOLD" 4}, function( error, quotes ) { 5 console.log( quotes ); 6}); 7
All methods from API V2 have been implemented
1client.user.details( callback ) 2client.user.overview( callback ) 3client.user.bitcoin_deposit_address( callback ) 4client.user.transaction_log( params, callback ) 5client.user.quota_status( callback ) 6 7client.order.cancel( params, callback ) 8client.order.create( params, callback ) 9client.order.open( callback ) 10 11client.position.open( callback ) 12client.position.edit( params, callback ) 13client.position.close( params, callback ) 14client.position.close_cancel( params, callback ) 15client.position.history( params, callback ) 16 17client.market.categories( callback ) 18client.market.list( params, callback ) 19client.market.details( params, callback ) 20client.market.quotes( params, callback ) 21client.market.bars( params, callback ) 22client.market.ticks( params, callback ) 23
For full API documentation please refer to the Official API
Simple examples are provided on the /examples folder, including the % Stop Loss and Take Profit syntax.
Before running the examples you will need:
Api Token ( Create one in Settings )
Coffee-Script npm install coffee-script --global
Download the example files
1$ git clone https://github.com/flyingunicorn222/1broker-client.git 2$ cd 1broker-client/ 3$ npm install 4$ cd examples
1# .env 2KEY=Ac17f4de5...................b69a
Now you can run examples, for instance:
1$coffee long_eurusd.coffee
or
1$coffee short_btcusd.coffee
Examples source code is pretty simple, please go ahead an explore!
===
I'm also developing more extra functions, called "helpers" which will hopefully simplify the implementation of mechanical tasks.
coding
The source code is also pretty simple and self explainatory so feel free to edit and submit a pull request.
At the moment more tests are needed, hopefully using sinon.js so all tests could run offline and without spending coins!
beta testing
Pretty much all features ( and even more ) are available through our bot, some of the more advanced features are still being beta tested if you think you are savy enough for some phun get in touch for some beta action!
reports and requests
Please open an issue!, it will be highly appreciated.
donate
You can donate to support this library and more freebies! a few happy users already donated and shown their love, the helped is much appreciated and needed as a lot of work is being invested on this library!
BTC: 1AsB6GtqUjHrLRXBzA19RMYyD7G9aVARbx
Feel free to send me a message on reddit, I'm flyingunicorn222 or open an issue!
meowgorithm / scarf / warren / flibbr / crypt / earth / cache for the hardcore beta test and support
patrick@1broker.com for the awesome support and endless tests and talks
Nick ( @Bitpie ) from 1Broker for the support on the 1Broker Trollbox
1Broker for the awesome platform, fingers crossed for even more success!
Altough this isn't an official 1Broker client, they provided great support and cleared all questions, very kind and great support!
The goal of this library is to not only implement all current API methods but also add extra features to help traders all around, most of the extras are on the /helpers folder
By default when creating an order this library will use my referral_id, that means I'll receive a small amount of BTC from 1Broker when you create an order! Please keep it this way so i can keep working on improving and keeping the code up to date, thanks to 1Broker for such a deal, without this i wouldn't be able to order late night pizzas.
1broker links on this documentation constains my referral link, in case you still don't have an account please use the links provided.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 0/30 approved changesets -- score normalized to 0
Reason
no SAST tool detected
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
65 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-01-27
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More