Giter Site home page Giter Site logo

sanchitajmera / ethena Goto Github PK

View Code? Open in Web Editor NEW
32.0 4.0 15.0 78.69 MB

An algorithmic trading bot which executes trades using multiple strategies. This was a solution for the Spark Blockchain Hackathon's Luno trading challenge

Home Page: https://youtu.be/INVkpd85hOY

License: MIT License

Python 4.50% Go 94.49% Shell 1.01%
trading trading-bot trading-strategies trading-algorithms golang python cryptocurrency blockchain luno luno-api

ethena's People

Contributors

devam-savjani avatar luqmanl avatar manuj-mishra avatar sanchitajmera avatar shivamamratlalpatel avatar

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  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

ethena's Issues

Unable to find main.go file

Description:
When running the program via Pycharm, the program can't find the main.go file, even when I point it to it via the GUI:
image

Error:
image

To Reproduce
Steps to reproduce the behavior:
Just follow the documentation as specified in the README

Expected behavior
I expected it to run as it did in the demo on youtube

Desktop (please complete the following information):

  • OS: Windows 10
  • Browser: Chrome
  • Version: Version 88.0.4324.104 (Official Build) (64-bit)

Can anyone please tell me what I am doing wrong here?

sh: 1: go: not found

image

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Go to ATHena GUI
  2. Browse path to main.go file and select it
  3. click run
  4. See error "sh: 1: go: not found"

Expected behavior
expected the ETHena .

Screenshots
image

Desktop (please complete the following information):

  • OS: [Windows 11 WSL Terminal]
  • Browser n/a
  • Version: n/a

Additional context
just simply running the GUI.py and choosing main.go file and clicking run and it gives the error mentioned above

cannot find package

Describe the bug
after running the GUI.py file, i can select all features and direct to Main.go. Once I hit run I receive errors that certain .go files "package not found" When I search for the github.com/luno/luno-go/decimal which the .go files call for i get an error saying page not found

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • Device: [MACBOOK AIR]
  • OS: [macOS High Sierra 10.13.6]
  • Browser [Chrome]
  • Version [90.0.4430.93]

Additional context
Desktop/RTB/ETHena-master/src/go/utils/dataVisualisation.go:6:2: cannot find package
../../../../../../Desktop/RTB/ETHena-master/src/go/utils/apiutils.go:9:2: cannot find package
../../../../../../Desktop/RTB/ETHena-master/src/go/backtestingUtils/historical.go:4:2: cannot find package
../../../../../../Desktop/RTB/ETHena-master/src/go/utils/apiutils.go:10:2: no required module provides package github.com/luno/luno-go/decimal: go.mod file not found in current directory or any parent directory; see 'go help modules'
../../../../../../Desktop/RTB/ETHena-master/src/go/backtestingUtils/historical.go:5:2: cannot find package
../../../../../../Desktop/RTB/ETHena-master/src/go/utils/email.go:5:2: cannot find package

User does not exist error

User does not exist
┌──(code㉿DESKTOP)-[~/ETHena/src/python/GUI]
└─$ 

I'm getting this error despite editing the apiKeys.go file

package Utils

// Please replace <NAME>, <KEY_ID> and <SECRET> with your respective values
func InitialiseKeys() {
	ApiKeys = map[string]([]string){
		"RandomName": []string{
			"xxxxxxxxxxxxx",
			"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx_Jcdis",
		},
	}
}

Where do I get the name from? can it be a random name or is it the name that displays in Luno dashboard when you're logged in?

I have tried using;

the name in the dashboard
the label of the keyid

How to change the trading pair for the bot to run on

Hi,

How do you change which trading pair the bot should run on?

I changed the pair name in the main.go file but it still shows "ETHBTC".

Luno supports many pairs and keeps growing slowly so I am not sure which files need adjustments to include all their pairs.

Thank you

Can Run Cli Trade Mode

This error i get after run python3 GUI.py and select main.go file

root@jojoe:~/smartcrypto/ETHena/src/python/GUI# python3.8 GUI.py

github.com/360EntSecGroup-Skylar/excelize

/root/go/src/github.com/360EntSecGroup-Skylar/excelize/calc.go:1905:18: undefined: strconv.ParseComplex
/root/go/src/github.com/360EntSecGroup-Skylar/excelize/calc.go:1921:18: undefined: strconv.ParseComplex
/root/go/src/github.com/360EntSecGroup-Skylar/excelize/calc.go:1937:18: undefined: strconv.ParseComplex
/root/go/src/github.com/360EntSecGroup-Skylar/excelize/calc.go:1953:18: undefined: strconv.ParseComplex
/root/go/src/github.com/360EntSecGroup-Skylar/excelize/calc.go:1969:18: undefined: strconv.ParseComplex
/root/go/src/github.com/360EntSecGroup-Skylar/excelize/calc.go:1985:18: undefined: strconv.ParseComplex
/root/go/src/github.com/360EntSecGroup-Skylar/excelize/calc.go:2001:18: undefined: strconv.ParseComplex
/root/go/src/github.com/360EntSecGroup-Skylar/excelize/calc.go:2017:18: undefined: strconv.ParseComplex
/root/go/src/github.com/360EntSecGroup-Skylar/excelize/calc.go:2037:18: undefined: strconv.ParseComplex
/root/go/src/github.com/360EntSecGroup-Skylar/excelize/calc.go:2057:19: undefined: strconv.ParseComplex
/root/go/src/github.com/360EntSecGroup-Skylar/excelize/calc.go:2057:19: too many errors

github.com/tealeg/xlsx

/root/go/src/github.com/tealeg/xlsx/lib.go:1191:14: undefined: bytes.ReplaceAll
(base) root@mxcapital:/smartcrypto/ETHena/src/python/GUI# ls
GUI.py Logo.png
(base) root@mxcapital:
/smartcrypto/ETHena/src/python/GUI# python3.8 GUI.py

github.com/360EntSecGroup-Skylar/excelize

/root/go/src/github.com/360EntSecGroup-Skylar/excelize/calc.go:1905:18: undefined: strconv.ParseComplex
/root/go/src/github.com/360EntSecGroup-Skylar/excelize/calc.go:1921:18: undefined: strconv.ParseComplex
/root/go/src/github.com/360EntSecGroup-Skylar/excelize/calc.go:1937:18: undefined: strconv.ParseComplex
/root/go/src/github.com/360EntSecGroup-Skylar/excelize/calc.go:1953:18: undefined: strconv.ParseComplex
/root/go/src/github.com/360EntSecGroup-Skylar/excelize/calc.go:1969:18: undefined: strconv.ParseComplex
/root/go/src/github.com/360EntSecGroup-Skylar/excelize/calc.go:1985:18: undefined: strconv.ParseComplex
/root/go/src/github.com/360EntSecGroup-Skylar/excelize/calc.go:2001:18: undefined: strconv.ParseComplex
/root/go/src/github.com/360EntSecGroup-Skylar/excelize/calc.go:2017:18: undefined: strconv.ParseComplex
/root/go/src/github.com/360EntSecGroup-Skylar/excelize/calc.go:2037:18: undefined: strconv.ParseComplex
/root/go/src/github.com/360EntSecGroup-Skylar/excelize/calc.go:2057:19: undefined: strconv.ParseComplex
/root/go/src/github.com/360EntSecGroup-Skylar/excelize/calc.go:2057:19: too many errors

github.com/tealeg/xlsx

/root/go/src/github.com/tealeg/xlsx/lib.go:1191:14: undefined: bytes.ReplaceAll

GUI crashes

Describe the bug
All dependencies installed and still getting the error upon starting the bot after choosing main go file...

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'python/GUI'
  2. Click on 'python3 GUI.py'
  3. Scroll down to 'Run app'
  4. See error

Expected behavior
Bot runs and starts trading

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [ubuntu 21]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context

github.com/360EntSecGroup-Skylar/excelize

../../../../../.go/src/github.com/360EntSecGroup-Skylar/excelize/calc.go:1963:26: error: reference to undefined identifier ‘strconv.ParseComplex’
1963 | inumber, err := strconv.ParseComplex(str2cmplx(argsList.Front().Value.(formulaArg).Value()), 128)
| ^
../../../../../.go/src/github.com/360EntSecGroup-Skylar/excelize/calc.go:1979:26: error: reference to undefined identifier ‘strconv.ParseComplex’
1979 | inumber, err := strconv.ParseComplex(str2cmplx(argsList.Front().Value.(formulaArg).Value()), 128)
| ^
../../../../../.go/src/github.com/360EntSecGroup-Skylar/excelize/calc.go:1995:26: error: reference to undefined identifier ‘strconv.ParseComplex’
1995 | inumber, err := strconv.ParseComplex(str2cmplx(argsList.Front().Value.(formulaArg).Value()), 128)
| ^
../../../../../.go/src/github.com/360EntSecGroup-Skylar/excelize/calc.go:2011:26: error: reference to undefined identifier ‘strconv.ParseComplex’
2011 | inumber, err := strconv.ParseComplex(str2cmplx(argsList.Front().Value.(formulaArg).Value()), 128)
| ^
../../../../../.go/src/github.com/360EntSecGroup-Skylar/excelize/calc.go:2027:26: error: reference to undefined identifier ‘strconv.ParseComplex’
2027 | inumber, err := strconv.ParseComplex(str2cmplx(argsList.Front().Value.(formulaArg).Value()), 128)
| ^
../../../../../.go/src/github.com/360EntSecGroup-Skylar/excelize/calc.go:2043:26: error: reference to undefined identifier ‘strconv.ParseComplex’
2043 | inumber, err := strconv.ParseComplex(str2cmplx(argsList.Front().Value.(formulaArg).Value()), 128)
| ^
../../../../../.go/src/github.com/360EntSecGroup-Skylar/excelize/calc.go:2059:26: error: reference to undefined identifier ‘strconv.ParseComplex’
2059 | inumber, err := strconv.ParseComplex(str2cmplx(argsList.Front().Value.(formulaArg).Value()), 128)
| ^
../../../../../.go/src/github.com/360EntSecGroup-Skylar/excelize/calc.go:2075:26: error: reference to undefined identifier ‘strconv.ParseComplex’
2075 | inumber, err := strconv.ParseComplex(str2cmplx(argsList.Front().Value.(formulaArg).Value()), 128)
| ^
../../../../../.go/src/github.com/360EntSecGroup-Skylar/excelize/calc.go:2095:26: error: reference to undefined identifier ‘strconv.ParseComplex’
2095 | inumber, err := strconv.ParseComplex(str2cmplx(argsList.Front().Value.(formulaArg).Value()), 128)
| ^
../../../../../.go/src/github.com/360EntSecGroup-Skylar/excelize/calc.go:2115:27: error: reference to undefined identifier ‘strconv.ParseComplex’
2115 | inumber1, err := strconv.ParseComplex(str2cmplx(argsList.Front().Value.(formulaArg).Value()), 128)
| ^
../../../../../.go/src/github.com/360EntSecGroup-Skylar/excelize/calc.go:2119:27: error: reference to undefined identifier ‘strconv.ParseComplex’
2119 | inumber2, err := strconv.ParseComplex(str2cmplx(argsList.Back().Value.(formulaArg).Value()), 128)
| ^
../../../../../.go/src/github.com/360EntSecGroup-Skylar/excelize/calc.go:2139:26: error: reference to undefined identifier ‘strconv.ParseComplex’
2139 | inumber, err := strconv.ParseComplex(str2cmplx(argsList.Front().Value.(formulaArg).Value()), 128)
| ^
../../../../../.go/src/github.com/360EntSecGroup-Skylar/excelize/calc.go:2155:26: error: reference to undefined identifier ‘strconv.ParseComplex’
2155 | inumber, err := strconv.ParseComplex(str2cmplx(argsList.Front().Value.(formulaArg).Value()), 128)
| ^
../../../../../.go/src/github.com/360EntSecGroup-Skylar/excelize/calc.go:2175:26: error: reference to undefined identifier ‘strconv.ParseComplex’
2175 | inumber, err := strconv.ParseComplex(str2cmplx(argsList.Front().Value.(formulaArg).Value()), 128)
| ^
../../../../../.go/src/github.com/360EntSecGroup-Skylar/excelize/calc.go:2195:26: error: reference to undefined identifier ‘strconv.ParseComplex’
2195 | inumber, err := strconv.ParseComplex(str2cmplx(argsList.Front().Value.(formulaArg).Value()), 128)
| ^
../../../../../.go/src/github.com/360EntSecGroup-Skylar/excelize/calc.go:2215:26: error: reference to undefined identifier ‘strconv.ParseComplex’
2215 | inumber, err := strconv.ParseComplex(str2cmplx(argsList.Front().Value.(formulaArg).Value()), 128)
| ^
../../../../../.go/src/github.com/360EntSecGroup-Skylar/excelize/calc.go:2219:25: error: reference to undefined identifier ‘strconv.ParseComplex’
2219 | number, err := strconv.ParseComplex(str2cmplx(argsList.Back().Value.(formulaArg).Value()), 128)
| ^
../../../../../.go/src/github.com/360EntSecGroup-Skylar/excelize/calc.go:2247:24: error: reference to undefined identifier ‘strconv.ParseComplex’
2247 | val, err := strconv.ParseComplex(str2cmplx(token.Value()), 128)
| ^
../../../../../.go/src/github.com/360EntSecGroup-Skylar/excelize/calc.go:2260:26: error: reference to undefined identifier ‘strconv.ParseComplex’
2260 | val, err := strconv.ParseComplex(str2cmplx(value.Value()), 128)
| ^
../../../../../.go/src/github.com/360EntSecGroup-Skylar/excelize/calc.go:2281:26: error: reference to undefined identifier ‘strconv.ParseComplex’
2281 | inumber, err := strconv.ParseComplex(str2cmplx(argsList.Front().Value.(formulaArg).Value()), 128)
| ^
../../../../../.go/src/github.com/360EntSecGroup-Skylar/excelize/calc.go:2297:26: error: reference to undefined identifier ‘strconv.ParseComplex’
2297 | inumber, err := strconv.ParseComplex(str2cmplx(argsList.Front().Value.(formulaArg).Value()), 128)
| ^
../../../../../.go/src/github.com/360EntSecGroup-Skylar/excelize/calc.go:2313:26: error: reference to undefined identifier ‘strconv.ParseComplex’
2313 | inumber, err := strconv.ParseComplex(str2cmplx(argsList.Front().Value.(formulaArg).Value()), 128)
| ^
../../../../../.go/src/github.com/360EntSecGroup-Skylar/excelize/calc.go:2329:26: error: reference to undefined identifier ‘strconv.ParseComplex’
2329 | inumber, err := strconv.ParseComplex(str2cmplx(argsList.Front().Value.(formulaArg).Value()), 128)
| ^
../../../../../.go/src/github.com/360EntSecGroup-Skylar/excelize/calc.go:2345:26: error: reference to undefined identifier ‘strconv.ParseComplex’
2345 | inumber, err := strconv.ParseComplex(str2cmplx(argsList.Front().Value.(formulaArg).Value()), 128)
| ^
../../../../../.go/src/github.com/360EntSecGroup-Skylar/excelize/calc.go:2361:26: error: reference to undefined identifier ‘strconv.ParseComplex’
2361 | inumber, err := strconv.ParseComplex(str2cmplx(argsList.Front().Value.(formulaArg).Value()), 128)
| ^
../../../../../.go/src/github.com/360EntSecGroup-Skylar/excelize/calc.go:2378:21: error: reference to undefined identifier ‘strconv.ParseComplex’
2378 | i1, err := strconv.ParseComplex(str2cmplx(argsList.Front().Value.(formulaArg).Value()), 128)
| ^
../../../../../.go/src/github.com/360EntSecGroup-Skylar/excelize/calc.go:2382:21: error: reference to undefined identifier ‘strconv.ParseComplex’
2382 | i2, err := strconv.ParseComplex(str2cmplx(argsList.Back().Value.(formulaArg).Value()), 128)
| ^
../../../../../.go/src/github.com/360EntSecGroup-Skylar/excelize/calc.go:2401:23: error: reference to undefined identifier ‘strconv.ParseComplex’
2401 | num, err := strconv.ParseComplex(str2cmplx(token.Value()), 128)
| ^
../../../../../.go/src/github.com/360EntSecGroup-Skylar/excelize/calc.go:2419:26: error: reference to undefined identifier ‘strconv.ParseComplex’
2419 | inumber, err := strconv.ParseComplex(str2cmplx(argsList.Front().Value.(formulaArg).Value()), 128)

Offline mode historical data not found

Describe the bug
When running ETHena on offline mode, historical.go cannot find data.xlsx. 2 things here: 1) the data.xlsx is not included in the GitHub repository (what should the data columns look like?). 2) historical.go has a hardcoded data.xlsx to one of your directories (see screenshot - we might want to make this use relative paths instead?)

To Reproduce
Steps to reproduce the behavior:

  1. Git clone this repository onto a clean directory
  2. Install necessary dependancies and run GUI.py
  3. Select "offline" mode
  4. See error "panic: OpenFile: open C:\Users\Shivam Patel\GolandProjects\Trading_Hackathon\src\go\backtestingUtils\data.xlsx: no such file or directory"

Expected behavior
The offline mode should work like the Live mode, showing trades and prices, etc.

Screenshots
Screen Shot 2021-02-07 at 1 16 02 PM

Desktop (please complete the following information):

  • OS: MacOS Mojave

Go error

pool@z8na:/cryptobot/ETHena/src/python/GUI$ python3 GUI.py
package Click: cannot find package "Click" in any of:
/usr/lib/go-1.13/src/Click (from $GOROOT)
/home/pool/go/src/Click (from $GOPATH)
pool@z8na:
/cryptobot/ETHena/src/python/GUI$

Need windows x86 gui .exe

Describe the solution you'd like
I have no programming background
I need a windows x86 gui.exe please
Running windows 7
I have python 3 and pip3 installed
got stuck at how to use the setup file and .py files

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.