{ "cells": [ { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [], "source": [ "import sys\n", "\n", "sys.path.insert(0, \"../../\")\n", "from pyecharts import online\n", "\n", "online()\n", "# 演示必要的准备代码,使用该库时不需重复此单元格命令" ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [], "source": [ "import xalpha as xa\n", "import pandas as pd" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "# 同一基金的A类C类份额研究" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "一般来讲A和C份额的区别,就是A收申购费赎回费,C不收,不过每日净值中收取销售服务费,两者的持有平衡点在一年左右" ] }, { "cell_type": "code", "execution_count": 3, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "广发中证500ETF联接A" ] }, "execution_count": 3, "metadata": {}, "output_type": "execute_result" } ], "source": [ "gf500a = xa.fundinfo(\"162711\")\n", "gf500a" ] }, { "cell_type": "code", "execution_count": 4, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "广发中证500ETF联接C" ] }, "execution_count": 4, "metadata": {}, "output_type": "execute_result" } ], "source": [ "gf500c = xa.fundinfo(\"002903\")\n", "gf500c" ] }, { "cell_type": "code", "execution_count": 5, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "fund name: 广发中证500ETF联接A\n", "fund code: 162711\n", "fund purchase fee: 0.12%\n", "fund redemption fee info: ['小于7天', '1.50%', '大于等于7天,小于1年', '0.50%', '大于等于1年,小于2年', '0.30%', '大于等于2年', '0.00%']\n" ] } ], "source": [ "gf500a.info()" ] }, { "cell_type": "code", "execution_count": 6, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "fund name: 广发中证500ETF联接C\n", "fund code: 002903\n", "fund purchase fee: 0.0%\n", "fund redemption fee info: ['小于等于7天', '1.50%', '大于7天', '0.00%']\n" ] } ], "source": [ "gf500c.info() # 即使C类,由于国家新规,所有场外基金七天内报复性收取1.5%的赎回费是不可避免的" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "至于销售服务费的部分,直接反应在了净值的走势里,下面直接比较两者净值区别" ] }, { "cell_type": "code", "execution_count": 7, "metadata": {}, "outputs": [], "source": [ "gf500c.bcmkset(gf500a)" ] }, { "cell_type": "code", "execution_count": 8, "metadata": {}, "outputs": [ { "data": { "text/html": [ "\n", "
\n", "\n", "\n", "\n" ], "text/plain": [ "