Git Product home page Git Product logo

gemini-api-node's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

gemini-api-node's Issues

CORS issue when running in browser

The API works great for my when running the js file directly in the console. However, when attempting to run via any browser, the private APIs are blocked by what appears to be a CORS issue. Any thoughts on bypassing this error in the browser?

Difficult to get up and running

I appreciate the wrapper. I will give it a go once I can get it working.

FYI the 'import' isn't standardized yet so Babel is required for set up from what I can see.

Seeing as I am new to babel getting this api up and running is very difficult as the babel documentation and community are littered with old/unusable advice.

I just thought it was worth mentioning as I am assuming other people ran into the same problem and gave up.

On Boot Constructor Error

When I import gemini-api like in the example:

import GeminiAPI from 'gemini-api';

packages/modules.js:377
W20170615-16:46:00.105(7)? (STDERR) constructor({ key, secret, sandbox = false } = { sandbox: false }) {
W20170615-16:46:00.106(7)? (STDERR) ^
W20170615-16:46:00.106(7)? (STDERR)
W20170615-16:46:00.107(7)? (STDERR) SyntaxError: Unexpected token {

.... Is there a way to fix this?

Is this not usable with expo and react-native?

I guess the package relies on the Node standard library which neither expo nor react-native include. Is there any way around this?

I'm new to the node world in general so any help would be appreciated.

Trouble Constructing WebSockets

I am trying to do a naive update based on the ReadMe, but I am having trouble moving it to consume updates from the initial open.

My code via a es6 module:

let ops = {
key:'',
secret:'',
sandbox: true
};

self.__geminiWebSocket = new GeminiAPI.WebsocketClient(ops);
self.__geminiWebSocket.openMarketSocket(symbol, () => 
      console.log('opened');
      this.__geminiWebSocket.addMarketMessageListener((data) => {          
       
        console.log(data); // works
       
      });

// doesn't work :(

                       self.__geminiWebSocket.addMarketListener('trade', (data) =>{
                                      var count =0;
                                     console.log('more stuff');
                                        console.log(data);
                                console.log(count++);
      });

Thank you!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.