DBOpenApiW.NET 1.0.1

There is a newer version of this package available.
See the version list below for details.
dotnet add package DBOpenApiW.NET --version 1.0.1
NuGet\Install-Package DBOpenApiW.NET -Version 1.0.1
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="DBOpenApiW.NET" Version="1.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add DBOpenApiW.NET --version 1.0.1
#r "nuget: DBOpenApiW.NET, 1.0.1"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install DBOpenApiW.NET as a Cake Addin
#addin nuget:?package=DBOpenApiW.NET&version=1.0.1

// Install DBOpenApiW.NET as a Cake Tool
#tool nuget:?package=DBOpenApiW.NET&version=1.0.1

NuGet version DBOpenApiW.NET (DB금융투자 해외파생 OCX버젼)

  • DB금융투자 해외파생 OpenApi OCX version C# wrapper class
  • 개발환경: Visual Studio 2022, netstandard2.0

using DBOpenApiW.NET;
...
    // 메인 윈도우 클래스 멤버로 선언
    private readonly AxDBOpenApiW _api;

    public ctor()
    {
        // nint Handle = new WindowInteropHelper(Application.Current.MainWindow).EnsureHandle(); // WPF 에서만 필요
        _api = new (Handle);

        // 이벤트 핸들러 등록
        _api.OnDBOAEventConnect += Api_OnDBOAEventConnect;
        ...

    }

    private void Api_OnDBOAEventConnect(object sender, _DDBOpenApiWEvents_OnDBOAEventConnectEvent e)
    {
        ...
    }

    // 비동기 요청
    private async Task TestAsync()
    {
        // 차트데이터 연속조회, 30분봉 종가 받을수 있을때까지 무한 반복
        List<string> price_list = []; // 종가 리스트
        string sPreNext = string.Empty;
        do
        {
            _api.DBOASetInputValue(UserId,"종목코드", "HSIG24");
            _api.DBOASetInputValue(UserId, "N분", "30");
            _api.DBOASetInputValue(UserId, "요청데이터건수", "400");
            _api.DBOASetInputValue(UserId, "조회종료일", "20240215");
            int result = await _api.DBOACommRqDataAsync(UserId, "차트요청", "pibg7302", sPreNext, "0010",
            (e) =>
            {
                sPreNext = e.sPreNext; // 연속조회 키값
                int repeatCount = _api.DBOAGetRepeatCnt(UserId, e.sTrCode, e.sRecordName);
                for (int i = 0; i < repeatCount; i++)
                {
                    price_list.Add(_api.DBOAGetCommData(UserId, e.sTrCode, e.sRecordName, i, "종가"));
                }
            });
            if (result < 0)
            {
                Debug.WriteLine($"returned DBOAGetCommData: {result}");
                break; // 요청 오류시 중단
            }

            Debug.WriteLine($"Data received: {price_list.Count}");
            await Task.Delay(1000); // 1초간 지연... 데이터 요청수 많을시 서버차단 가능성 있음, 지연시간 조절 필요
        } while (sPreNext.Length > 0);

        Debug.WriteLine($"all Data received: {price_list.Count}");

        ... // 수집된 종가 데이터 처리
    }


Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETStandard 2.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.2 117 2/18/2024
1.0.1 94 2/15/2024