semvec/pypi-packages huggingface dataset:
kia-remarketing-supply 1.0.0
Custom modules for kia_remarketing_supply
Requires Python: >=3.6

# Kia Remarketing Supply

## People
- Supervisor: Jung Park (jungpark@kiausa.com)
- Data Scientist: Jason Kim (jasonkim@kiausa.com) 
- Business Analyst: Michael Bautista (mbautista@kiausa.com)


## PowerBI Dashboard for Fleet

[Dashboard](https://teams.microsoft.com/l/entity/1c4340de-2a85-40e5-8eb0-4f295368978b/_djb2_msteams_prefix_951923316?context=%7B%22subEntityId%22%3Anull%2C%22channelId%22%3A%2219%3Aa29e8dfe9f5f413785d6ae14e55f29b8%40thread.tacv2%22%7D&groupId=1796b789-568c-4dd4-aff2-66236d119c2a&tenantId=5fed94a0-4129-44a0-b507-a83a5c9e6dac)
![](screenshots/fleet_dashboard.png)

---

## Automation
- The bash scripts for running the ./clean_jupyter_notebooks is found in ./bash_scripts
- Scheduled runs using crontab
  - The current inventory fleet predition simulates sold dates from today + 45 days on a daily basis as 7:10 am PST
  - The fleet model is scheduled to retrain every week at 8:05 am PST on Sundays

### crontab -l
> CRON_TZ=UTC
> 
> \* \* \* \* \* /bin/bash /home/kma62139/python_projects/kia_remarketing_supply/bash_scripts/send_queued_email.sh
> 
> 0 14 * * * /bin/bash /home/kma62139/python_projects/kia_remarketing_supply/bash_scripts/fleet_ci_predict_sim_sale_price.sh ;  mail -s "Kia Remarketing Supply: 2.0-jmk-predict_fleet_ci.ipynb" jasonkim@kiausa.com < /home/kma62139/python_projects/kia_remarketing_supply/logs/2.0-jmk-predict_fleet_ci.log tail -10
> 
> 5 15 * * 0 /bin/bash /home/kma62139/python_projects/kia_remarketing_supply/bash_scripts/fleet_train_model.sh ; mail -s "Kia Remarketing Supply: 1.0-jmk-fleet_training.ipynb" jasonkim@kiausa.com < /home/kma62139/python_projects/kia_remarketing_supply/logs/1.0-jmk-fleet_training.log tail -10
axonbot-axonbtc 0.0.2
Axon is an artificially intelligent agent that trades bitcoin for now. This module aims to connect to Axon's websocket and allow for instantanous AI-based trading decisions.
Requires Python: >=3.6

# Axon | AI AutoTrader
##### Provided under MIT License by Axon Intellex.

> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

## Benefits
- A simple to use python wrapper for automatic trading based on Axon's websocket.
- Allows daily trades to happen on coinbase pro by leveraging coinbasepro-python.
- Enhance your trading decisions by leveraging Axon's reinforcement learning gathered from tons of features from the market.

## Under Development
- Integration to coinbasepro-python **Looking for assistance**
- real-time order book

## Background
- Axon is an artificially intelligent agent that trades bitcoin for now. This module aims to connect to Axon's websocket and allow for instantanous AI-based trading decisions. 
- Axon's decisions are based on daily candles, the most important decision is taken when a daily candle closes and a new daily candle opens. 
- Axon runs an analysis, (_which may take up to 5 mins_), that estimates what the next course of action is for the freshly created daily candle. 
- All timing is assumed to be in UTC. **important**

### Axon's 3 Decisions:
1. Long: Taking a long position or buying with an anticipation of a minimum_roi
2. Short: Taking a short position or shorting with an anticipation of a minimum_roi
3. STFO: Staying the Fuck out or not trading due to either a sideway movement or high volatility and randomness in the market.

While the newly created daily candle's decision is less likely to change, the conclusion of the day that follows fluctuates more often and is very much driven by how the current daily candle shall close. Axon's websocket API updates the client every 30 minutes about its daily trading decisions. 

### Script Under development
Currently the script requires python3 and websocket client. It should be enhanced to an AI agent class "Axon".

#### To run:
```python3 main.py```

*sample incomming message from Axon's websocket every 30 minutes on day 2021-09-26 00:00 UTC*

```
{
  "timestamp": 1632636034,
  "forecast": [{
      "period": "1D",
      "candle": "2021-09-26 00:00 UTC",
      "decision": "STFO",
      "confidence": 0.5625,
      "minimum_roi": 0,
      "info": "Axon is staying the FUCK OUT | Confidence: 56.72%"
    },
  {
      "period": "1D",
      "candle": "2021-09-27  00:00 UTC",
      "decision": "LONG",
      "confidence": 0.5625,
      "minimum_roi": 0.02,
      "info": "Axon is LONG | Confidence: 56.25%"
    }]
  }
```