DYPMS 0.1__tar.gz → 0.3__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: DYPMS
3
- Version: 0.1
3
+ Version: 0.3
4
4
  Summary: 通联数据PMS系统数据SDK
5
5
  Author-email: songjiangduo <jiangduo.song@datayes.com>
6
6
  License-Expression: MIT
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "DYPMS"
7
- version = "0.1"
7
+ version = "0.3"
8
8
  authors = [
9
9
  { name = "songjiangduo", email = "jiangduo.song@datayes.com" }
10
10
  ]
@@ -10,8 +10,7 @@ field_mapping = {
10
10
  'reportingBenchmark': 'benchmark', # 参考基准
11
11
  'user': 'creator', # 用户作为创建人
12
12
  'netValueStartDate': 'NAV_start_date', # 净值开始日期
13
- 'netValueDate': 'latest_NAV_date', # 最新净值日期
14
- 'navFrequency': 'NAV_update_frequency' # 净值更新频率
13
+ 'netValueDate': 'latest_NAV_date' # 最新净值日期
15
14
  }
16
15
 
17
16
 
@@ -36,6 +35,7 @@ def get_simulate_portfolio_list(client,
36
35
  rows.append(row)
37
36
 
38
37
  df = pd.DataFrame(rows)
38
+ df = df.sort_values(by='establishment_date', ascending=False)
39
39
  return df
40
40
  except Exception as e:
41
41
  raise e
@@ -109,18 +109,6 @@ field_mapping = {
109
109
  'fxRate': 'valuation_exchange_rate',
110
110
  'positionTime': 'market_quotation_time',
111
111
  'holdDate': 'position_building_date',
112
- 'partyFullName': 'issuing_entity',
113
- 'yearToMaturity': 'remaining_maturity',
114
- 'nominalRatingInst': 'bond_rating_agency',
115
- 'nominalRating': 'bond_rating',
116
- 'margin': 'margin_requirement',
117
- 'city': 'city',
118
- 'province': 'province',
119
- 'instRatingYY': 'issuer_rating_(YY)',
120
- 'instRatingDate': 'issuer_rating_date',
121
- 'instRating': 'issuer_rating',
122
- 'nominalRatingDate': 'bond_rating_date',
123
- 'instRatingInst': 'issuer_rating_agency'
124
112
  }
125
113
 
126
114
 
@@ -6,7 +6,7 @@ def get_response_json_with_check(response):
6
6
  if r.get('code') == -403:
7
7
  raise Exception("token认证失败")
8
8
  if r.get('code') != 'S00000':
9
- raise Exception(r.get('message'))
9
+ raise Exception(r.get('msg'))
10
10
  return r
11
11
 
12
12
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: DYPMS
3
- Version: 0.1
3
+ Version: 0.3
4
4
  Summary: 通联数据PMS系统数据SDK
5
5
  Author-email: songjiangduo <jiangduo.song@datayes.com>
6
6
  License-Expression: MIT
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes