Javascript bot programming using Gemini API, NodeJS and CryptoCompare - DISCUSSION

Hey, one of my friend john is using gemini exchange he suggest me to use gemini exchange. I have read the various gemini review in order to avoid any loss of my cryptos.

Hello Guys, I keep getting this error message when executing the buy order:

error

My code is:

code

Does someone know what the problem might be? Cheers! @ivan

Found the error! :wink:

HI @ivan

The quiz, question 1 does not allow me to select multiple answers.

I didn’t understand the question therefore.

HI @ivan

Im using Mac book pro. Any information on how to install everything?

Im not sure if I installed everything correctly… Is Powershell the Windows pendant to Terminal right? Or do you discuss how to use everything in the Javascript course? I have not done it yet. What is your recommendation for proceeding with Mac?

So far output on Terminal:

1 Like

@ivan @filip or anyone else here

Guys, I cannot continue from this point but I want to finish the 2 courses before my subscribtiion expires. Pls let me know.

  1. powershell … ?

  2. how to proceed the following lessons with windows.

Im doing the Javascript course meanwhile… but not sure if I will understand what you mean afterwards…

Sorry about the lack of answers from Ivans part. We will fix the quiz.

You are correct in that you should use the terminal if you are on mac. And it looks like you are set up correctly with node. You don’t have to care about Powershell, it’s the terminal Windows users will use.

What’s the issue you are having with node?

Thanks for the answer Filip. So far I wasn’t able to continue with the classes. I first need to finish the Javascript course before I return to the last bit in the TA course. Challenge is that your classes are always referring to Windows. But I was able to install Atom and now working on the JavaScript.

If I have more questions at a later stage, I will post here again.

Great! Just tag me if you need further help :slight_smile:

1 Like

Running scripts is disabled on my
system. How to install gamini-api?

1 Like

OK, I solved this problem, if any of the benefits, should be approved scripts by tiping in PowerShell set-executionpolicy remotesigned

6 Likes

cannot continue here as the commands are different. I was planing to finish the course before my access at the academy runs out.

“module not found”

I then was unable to install the package and neither yarn. … unable to continue at this stage.
@filip

There are some errors in your commands. When you use the cd command, the directory you want to use need to be on the same line. Not on 2 separate lines like you had it. You should do it like this.

cd /Users/tanja/Desktop/Academy

Also, for simplicity, your file name cannot have any spaces inside it. You can rename the file to first_step.js for example, and then run node first_step.js.

But before you do that you need to make sure that the cd command actually positions you in the right directory.

Great, I’m glad you solved it :slight_smile:

Hi.
The syntax for newOrder has changed.
I checked in the exchange API documentation.

restClient.newOrder({
“symbol”: “btcusd”,
“amount”: “5”,
“price”: “3633.00”,
“side”: “buy”,
})
.then(response => console.log(response))
.catch(console.error);

1 Like

At first I could not install the Gemini API code because Powershell gave me an error which stated that my system is not allowing me to run scripts. To fix this problem I had to go to
( https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_execution_policies?view=powershell-7)

which has all the execution policy codes. It have instructions to run POWERSHELL as an admin and then run “ExecutionPolicy Bypass” which then allowed me to install the gemini api.

1 Like

I am having problems making the sandbox order, lease assist.
Error Code:
"
(node:12592) UnhandledPromiseRejectionWarning: #
(node:12592) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 3)
(node:12592) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
"

I fixed it by making sure my key and secret are correctly copied and the key part contains “account-”

3 Likes