并购日历

浏览即将到来的并购(M&A)与合并事件。

Parameters

SDK 方法参数。

NameTypeRequiredDescription
startstringYES开始日期,格式 YYYY-MM-DD
endstringYES结束日期,格式 YYYY-MM-DD
marketstringNO市场筛选:US、HK、SH、SZ,不填则返回所有市场
countintegerNO每页最大事件数,省略时使用服务端默认值
offsetintegerNO从窗口起始跳过的事件数
nextCalendarPageDirectionNO从 next_date 游标翻页的方向:Later 或 Earlier

Request Example

from longbridge.openapi import CalendarContext, CalendarCategory, Config, OAuthBuilder

oauth = OAuthBuilder("your-client-id").build(lambda url: print("Visit:", url))
config = Config.from_oauth(oauth)
ctx = CalendarContext(config)

resp = ctx.finance_calendar(CalendarCategory.Merge, "2024-01-01", "2024-03-31")
print(resp)
import asyncio
from longbridge.openapi import AsyncCalendarContext, CalendarCategory, Config, OAuthBuilder

async def main() -> None:
    oauth = await OAuthBuilder("your-client-id").build_async(lambda url: print("Visit:", url))
    config = Config.from_oauth(oauth)
    ctx = AsyncCalendarContext.create(config)
    resp = await ctx.finance_calendar(CalendarCategory.Merge, "2024-01-01", "2024-03-31")
    print(resp)

if __name__ == "__main__":
    asyncio.run(main())
const { Config, CalendarContext, CalendarCategory, OAuth } = require('longbridge')

async function main() {
  const oauth = await OAuth.build('your-client-id', (_, url) => console.log('Open:', url))
  const config = Config.fromOAuth(oauth)
  const ctx = CalendarContext.new(config)
  const resp = await ctx.financeCalendar(CalendarCategory.Merge, '2024-01-01', '2024-03-31')
  console.log(resp)
}
main().catch(console.error)
import com.longbridge.*;
import com.longbridge.calendar.*;

class Main {
    public static void main(String[] args) throws Exception {
        try (OAuth oauth = new OAuthBuilder("your-client-id").build(url -> System.out.println("Open: " + url)).get();
             Config config = Config.fromOAuth(oauth);
             CalendarContext ctx = CalendarContext.create(config)) {
            var resp = ctx.financeCalendar(CalendarCategory.Merge, "2024-01-01", "2024-03-31", null).get();
            System.out.println(resp);
        }
    }
}
use std::sync::Arc;
use longbridge::{oauth::OAuthBuilder, calendar::{CalendarContext, CalendarCategory}, Config};

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
    let oauth = OAuthBuilder::new("your-client-id").build(|url| println!("Open: {url}")).await?;
    let config = Arc::new(Config::from_oauth(oauth));
    let ctx = CalendarContext::new(config);
    let resp = ctx.finance_calendar(CalendarCategory::Merge, "2024-01-01", "2024-03-31", None, None, None, None).await?;
    println!("{:?}", resp);
    Ok(())
}
package main

import (
    "context"
    "fmt"
    "log"

    "github.com/longbridge/openapi-go/calendar"
    "github.com/longbridge/openapi-go/config"
    "github.com/longbridge/openapi-go/oauth"
)

func main() {
    o := oauth.New("your-client-id").OnOpenURL(func(url string) { fmt.Println("Open:", url) })
    if err := o.Build(context.Background()); err != nil { log.Fatal(err) }
    conf, _ := config.New(config.WithOAuthClient(o))
    c, _ := calendar.NewFromCfg(conf)
    defer c.Close()
    resp, err := c.FinanceCalendar(context.Background(), "Merge", "2024-01-01", "2024-03-31", nil)
    if err != nil { log.Fatal(err) }
    fmt.Printf("%+v\n", resp)
}

Response

Response Status

StatusDescriptionSchema
200成功CalendarEventsResponse
400请求错误None
Markdown编辑最后更新: 2026年10月8日 05:46:22