mirror of
https://github.com/exchanges-lab/tradesync.git
synced 2026-08-07 22:04:43 +08:00
feat: implement Level and Order Type calculation and integrate with Notion writer
This commit is contained in:
@@ -161,6 +161,32 @@ impl NotionWriter {
|
||||
},
|
||||
);
|
||||
|
||||
// 9. Level (Select column)
|
||||
properties.insert(
|
||||
"Level".to_string(),
|
||||
PageProperty::Select {
|
||||
id: None,
|
||||
select: Some(SelectPropertyValue {
|
||||
id: None,
|
||||
name: Some(data.level),
|
||||
color: None,
|
||||
}),
|
||||
},
|
||||
);
|
||||
|
||||
// 10. Order Type (Select column)
|
||||
properties.insert(
|
||||
"Order Type".to_string(),
|
||||
PageProperty::Select {
|
||||
id: None,
|
||||
select: Some(SelectPropertyValue {
|
||||
id: None,
|
||||
name: Some(data.order_type),
|
||||
color: None,
|
||||
}),
|
||||
},
|
||||
);
|
||||
|
||||
// Build CreateAPageRequest and create page
|
||||
let request = CreateAPageRequestBuilder::default()
|
||||
.parent(Parent::DatabaseId {
|
||||
|
||||
Reference in New Issue
Block a user