Skip to content

Commit

Permalink
Merge branch 'release/4.1.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
straumat committed Mar 19, 2021
2 parents a665a43 + fdfbefa commit 43e013c
Show file tree
Hide file tree
Showing 160 changed files with 13,984 additions and 759 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ jobs:
-DartifactId=archetype-test-basic \
-Dversion=1.0-SNAPSHOT \
-Dpackage=com.example
mvn -f archetype-test-basic/pom.xml test
mvn -f archetype-test-basic/pom.xml compile
# ================================================================================================================
- name: Test Cassandre trading bot maven archetype - basic ta4j strategy
Expand All @@ -96,4 +96,4 @@ jobs:
-DartifactId=archetype-test-ta4j-basic \
-Dversion=1.0-SNAPSHOT \
-Dpackage=com.example
mvn -f archetype-test-ta4j-basic/pom.xml test
mvn -f archetype-test-ta4j-basic/pom.xml compile
52 changes: 51 additions & 1 deletion .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,18 @@ jobs:
with:
java-version: 11.0.x

# ================================================================================================================
- name: Creates a Qase run
id: qase
run: |
echo "::set-output name=qase_run_id::$( \
curl -s "https://api.qase.io/v1/run/CTB" \
-X POST \
-H "Token: ${{ secrets.QASE_TOKEN }}" \
-H "Content-Type: application/json" \
-d '{"title": "${{ github.event.head_commit.message }}","description": "Test run for ${{ steps.version.outputs.version }}","environment_id": null,"cases": []}' \
| jq -r -c ".result.id")"
# ================================================================================================================
- name: Build, run tests, package and deploy to Maven central
env: # Environment variables.
Expand All @@ -30,5 +42,43 @@ jobs:
KUCOIN_PASSPHRASE: ${{ secrets.KUCOIN_PASSPHRASE }}
KUCOIN_KEY: ${{ secrets.KUCOIN_KEY }}
KUCOIN_SECRET: ${{ secrets.KUCOIN_SECRET }}
# Gemini credentials.
GEMINI_NAME: ${{ secrets.GEMINI_NAME }}
GEMINI_USERNAME: ${{ secrets.GEMINI_USERNAME }}
GEMINI_PASSPHRASE: ${{ secrets.GEMINI_PASSPHRASE }}
GEMINI_KEY: ${{ secrets.GEMINI_KEY }}
GEMINI_SECRET: ${{ secrets.GEMINI_SECRET }}
run: |
mvn -Pintegration package \
-Dqase.enable=true \
-Dqase.project.code=CTB \
-Dqase.run.id=${{ steps.qase.outputs.qase_run_id }} \
-Dqase.api.token=${{ secrets.QASE_TOKEN }}
# ================================================================================================================
- name: Test Cassandre trading bot maven archetype - basic strategy
id: cassandre-trading-bot-spring-boot-starter-basic-archetype
run: |
mvn -B archetype:generate \
-DarchetypeGroupId=tech.cassandre.trading.bot \
-DarchetypeArtifactId=cassandre-trading-bot-spring-boot-starter-basic-archetype \
-DarchetypeVersion=${{ steps.version.outputs.version }} \
-DgroupId=com.example \
-DartifactId=archetype-test-basic \
-Dversion=1.0-SNAPSHOT \
-Dpackage=com.example
mvn -f archetype-test-basic/pom.xml test
# ================================================================================================================
- name: Test Cassandre trading bot maven archetype - basic ta4j strategy
id: cassandre-trading-bot-spring-boot-starter-basic-ta4j-archetype
run: |
mvn -Pintegration package
mvn -B archetype:generate \
-DarchetypeGroupId=tech.cassandre.trading.bot \
-DarchetypeArtifactId=cassandre-trading-bot-spring-boot-starter-basic-ta4j-archetype \
-DarchetypeVersion=${{ steps.version.outputs.version }} \
-DgroupId=com.example \
-DartifactId=archetype-test-ta4j-basic \
-Dversion=1.0-SNAPSHOT \
-Dpackage=com.example
mvn -f archetype-test-ta4j-basic/pom.xml test
2 changes: 2 additions & 0 deletions .github/workflows/release-creation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ jobs:
uses: mikepenz/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
commitMode: true

# ================================================================================================================
- name: Create the release
Expand Down
33 changes: 33 additions & 0 deletions .github/workflows/website-update.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Website update

on:
push:
branches:
- "development"

jobs:
build:
# ==================================================================================================================
# Configuration.
runs-on: ubuntu-latest

steps:
# ================================================================================================================
- name: Retrieve the sources
id: sources
uses: actions/checkout@v1

# ================================================================================================================
- name: Install vuepress and build the documentation website
run: |
yarn global add vuepress
yarn --cwd docs build
# ================================================================================================================
- name: Deploy the documentation website
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: docs/src/.vuepress/dist
commit-message: "Documentation website update"
clean: true
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,6 @@ output-*
/.idea/

# others
index.md
/_data/
/_site/
/pages/
Expand Down
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
<h3 align="center">
<a href="https://trading-bot.cassandre.tech">
<img src="https://github.com/cassandre-tech/cassandre-trading-bot-web-site/blob/master/.gitbook/assets/logo_with_text.png?raw=true"
<img src="https://trading-bot.cassandre.tech/assets/images/logo/cassandre-trading-bot-full.png"
alt="Cassandre trading bot"/>
</a>
<br>
Cassandre trading bot
</h3>

<p align="center">Cassandre makes it easy to create and run a Java crypto trading bot</p>
Expand Down
12 changes: 12 additions & 0 deletions docs/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
pids
logs
node_modules
npm-debug.log
coverage/
run
dist
.DS_Store
.nyc_output
.basement
config.local.js
basement_dist
20 changes: 20 additions & 0 deletions docs/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"name": "cassandre-trading-bot-documentation",
"version": "0.0.1",
"description": "Cassandre trading bot documentation",
"main": "index.js",
"authors": {
"name": "Stéphane Traumat",
"email": "[email protected]"
},
"repository": "https://github.com/cassandre-tech/cassandre-trading-bot-documentation/cassandre-trading-bot-documentation",
"scripts": {
"dev": "vuepress dev src",
"build": "vuepress build src"
},
"license": "MIT",
"devDependencies": {
"@vuepress/plugin-google-analytics": "^1.8.2",
"vuepress": "^1.5.3"
}
}
15 changes: 15 additions & 0 deletions docs/src/.vuepress/components/Foo/Bar.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<template>
<p class="demo">
{{ msg }}
</p>
</template>

<script>
export default {
data () {
return {
msg: 'Hello this is <Foo-Bar>'
}
}
}
</script>
3 changes: 3 additions & 0 deletions docs/src/.vuepress/components/OtherComponent.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<template>
<p class="demo">This is another component</p>
</template>
15 changes: 15 additions & 0 deletions docs/src/.vuepress/components/demo-component.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<template>
<p class="demo">
{{ msg }}
</p>
</template>

<script>
export default {
data() {
return {
msg: 'Hello this is <demo-component>'
}
}
}
</script>
142 changes: 142 additions & 0 deletions docs/src/.vuepress/config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,142 @@
const {description} = require('../../package')

module.exports = {
/**
* Ref:https://v1.vuepress.vuejs.org/config/#title
*/
title: 'Cassandre',
/**
* Ref:https://v1.vuepress.vuejs.org/config/#description
*/
description: 'Cassandre makes it easy to create your Java crypto trading bot. Our Spring boot starter takes care of exchange connections, accounts, orders, trades, and positions',

/**
* Extra tags to be injected to the page HTML `<head>`
*
* ref:https://v1.vuepress.vuejs.org/config/#head
*/
head: [
['meta', {name: 'theme-color', content: '#3eaf7c'}],
['meta', {name: 'apple-mobile-web-app-capable', content: 'yes'}],
['meta', {name: 'apple-mobile-web-app-status-bar-style', content: 'black'}],
// For social networks.
['meta', {property: 'og:url', content: 'https://trading-bot.cassandre.tech'}],
['meta', {property: 'og:title', content: 'Cassandre trading bot framework'}],
['meta', {
property: 'og:description',
content: 'Cassandre is an open-source framework that makes it easy to create your Java crypto trading bot'
}],
['meta', {
property: 'og:image',
content: 'https://trading-bot.cassandre.tech/assets/images/social/cassandre-trading-bot-open-graph.png'
}],
['meta', {property: 'og:site_name', content: 'Cassandre'}],
['meta', {name: 'twitter:title', content: 'Cassandre trading bot framework'}],
['meta', {name: 'twitter:card', content: 'summary_large_image'}],
['meta', {name: 'twitter:site', content: '@cassandretech'}],
['meta', {name: 'twitter:image:alt', content: 'Cassandre'}]
],

/**
* Theme configuration, here is the default theme configuration for VuePress.
*
* ref:https://v1.vuepress.vuejs.org/theme/default-theme-config.html
*/
themeConfig: {
repo: '',
editLinks: false,
docsDir: '',
editLinkText: '',
lastUpdated: false,
nav: [
{
text: 'Why Cassandre ?',
ariaLabel: 'Why Cassandre menu',
items: [
{text: 'Overview', link: '/why-cassandre/overview'},
{text: 'Architecture', link: '/why-cassandre/architecture'},
{text: 'Features & roadmap', link: '/why-cassandre/features-and-roadmap'}
]
},
{
text: 'Learn',
ariaLabel: 'Learn menu',
items: [
{text: 'Quickstart', link: '/learn/quickstart'},
{text: 'Position management', link: '/learn/position-management'},
{text: 'Dry mode & backtesting', link: '/learn/dry-mode-and-backtesting'},
{text: 'Database structure', link: '/learn/database-structure'},
{
text: 'Deploy & run', items: [
{text: 'Using docker', link: '/learn/deploy-and-run/docker'}
]
},
{
text: 'Technical analysis', items: [
{text: 'Overview', link: '/learn/technical-analysis/overview'},
{text: 'Create the project', link: '/learn/technical-analysis/create-the-project'},
{text: 'Create your strategy', link: '/learn/technical-analysis/create-your-strategy'},
{text: 'React to signals', link: '/learn/technical-analysis/react-to-signals'},
{
text: 'Backtest your strategy',
link: '/learn/technical-analysis/backtest-your-trading-strategy'
},
]
}
]
},
{
text: 'Ressources',
ariaLabel: 'Ressources menu',
items: [
{text: 'Trading basics', link: '/ressources/trading-basics'},
{text: 'Articles', link: '/ressources/articles'},
{text: 'Books', link: '/ressources/books'},
{
text: 'How-tos', items: [
{
text: 'Install development tools',
link: '/ressources/how-tos/how-to-install-development-tools'
},
{text: 'Build from sources', link: '/ressources/how-tos/how-to-build-from-sources'},
{text: 'Create a release', link: '/ressources/how-tos/how-to-create-a-release'},
{
text: 'Create a Kucoin account',
link: '/ressources/how-tos/how-to-create-a-kucoin-account'
},
]
},
],
},
{
text: 'Contact / help',
ariaLabel: 'Contact menu',
items: [
{text: 'Email', link: 'mailto:[email protected]'},
{text: 'Twitter', link: 'https://twitter.com/CassandreTech'},
{text: 'Discord', link: 'https://discord.gg/sv3VXuTgFS'},
{text: 'Newsletter', link: 'https://cassandre.substack.com/'},
],
},
{
text: 'Github',
link: 'https://github.com/cassandre-tech/cassandre-trading-bot'
}
],
sidebar: 'auto'
},

/**
* Apply plugins,ref:https://v1.vuepress.vuejs.org/zh/plugin/
*/
plugins: [
'@vuepress/plugin-back-to-top',
'@vuepress/plugin-medium-zoom',
[
'@vuepress/google-analytics',
{
'ga': 'UA-158255496-1'
}
]
]
}
14 changes: 14 additions & 0 deletions docs/src/.vuepress/enhanceApp.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/**
* Client app enhancement file.
*
* https://v1.vuepress.vuejs.org/guide/basic-config.html#app-level-enhancements
*/

export default ({
Vue, // the version of Vue being used in the VuePress app
options, // the options for the root Vue instance
router, // the router instance for the app
siteData // site metadata
}) => {
// ...apply enhancements for the site.
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 43e013c

Please sign in to comment.